Thalassicus / cat

(Deprecated: now in "cep-bnw" project)
0 stars 4 forks source link

Razing cities #3

Closed Thalassicus closed 10 years ago

Thalassicus commented 10 years ago

"As it stands right now, it is impossible to raze a city after annexing it UNLESS you either immediately raze it, or choose to raze it then cancelling the raze right away-- only then will you have to option to raze cities at a later stage."

stackpoint commented 10 years ago

Would it be feasible to make it so that the annex buttons actually starts and stops city razing functions and then annexes the city afterwards? That would allow the cities to be razed later?

I'm not familiar with the razing code but it'd be something along the lines of:

    local OnCaptureClicked = function()
        Network.SendDoTask(cityID, TaskTypes.TASK_RAZE, -1, -1, false, false, false, false);
        Network.SendDoTask(cityID, TaskTypes.TASK_UNRAZE, -1, -1, false, false, false, false);
        Network.SendDoTask(cityID, TaskTypes.TASK_ANNEX_PUPPET, -1, -1, false, false, false, false);
        newCity:ChooseProduction();
    end
stackpoint commented 10 years ago

I couldn't replicate this problem after fixing the SetOccupied(true) bug. Any future problems should be reported to the current repo here: https://github.com/Thalassicus/cat/issues/3