mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-31 23:29:53 +07:00
Resolved #12528 - city construction progress is reset when puppeting, not when annexing
This commit is contained in:
@ -128,13 +128,13 @@ class CityConquestFunctions(val city: City) {
|
||||
city.cityStats.update()
|
||||
// The city could be producing something that puppets shouldn't, like units
|
||||
city.cityConstructions.currentConstructionIsUserSet = false
|
||||
city.cityConstructions.inProgressConstructions.clear() // undo all progress of the previous civ on units etc.
|
||||
city.cityConstructions.constructionQueue.clear()
|
||||
city.cityConstructions.chooseNextConstruction()
|
||||
}
|
||||
|
||||
fun annexCity() {
|
||||
city.isPuppet = false
|
||||
city.cityConstructions.inProgressConstructions.clear() // undo all progress of the previous civ on units etc.
|
||||
if (!city.isInResistance()) city.shouldReassignPopulation = true
|
||||
city.setCityFocus(CityFocus.NoFocus)
|
||||
city.cityStats.update()
|
||||
|
Reference in New Issue
Block a user