mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
Annexed city from puppet status should not be in resistance.
This commit is contained in:
parent
751c33c609
commit
56f4d2d57b
@ -168,9 +168,13 @@ class CityScreen(internal val city: CityInfo) : CameraStageBaseScreen() {
|
|||||||
val annexCityButton = TextButton("Annex city".tr(), skin)
|
val annexCityButton = TextButton("Annex city".tr(), skin)
|
||||||
annexCityButton.labelCell.pad(10f)
|
annexCityButton.labelCell.pad(10f)
|
||||||
annexCityButton.onClick {
|
annexCityButton.onClick {
|
||||||
|
if(!city.civInfo.policies.isAdopted("Police State")) {
|
||||||
|
city.expansion.cultureStored = 0
|
||||||
|
city.expansion.reset()
|
||||||
|
}
|
||||||
|
|
||||||
city.isPuppet=false
|
city.isPuppet=false
|
||||||
city.isBeingRazed=false
|
city.isBeingRazed=false
|
||||||
city.resistanceCounter = city.population.population
|
|
||||||
update()
|
update()
|
||||||
}
|
}
|
||||||
razeCityButtonHolder.add(annexCityButton).colspan(cityPickerTable.columns)
|
razeCityButtonHolder.add(annexCityButton).colspan(cityPickerTable.columns)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user