Skip to content

Commit

Permalink
Set Avoid Growth=false on capture (#12828)
Browse files Browse the repository at this point in the history
  • Loading branch information
itanasi authored Jan 22, 2025
1 parent 05d246c commit 32856f9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class CityConquestFunctions(val city: City) {
Battle.destroyIfDefeated(conqueredCiv, conqueringCiv, city.location)

city.health = city.getMaxHealth() / 2 // I think that cities recover to half health when conquered?
city.avoidGrowth = false // reset settings
city.setCityFocus(CityFocus.NoFocus) // reset settings
if (city.population.population > 1)
city.population.addPopulation(-1 - city.population.population / 4) // so from 2-4 population, remove 1, from 5-8, remove 2, etc.
city.reassignAllPopulation()
Expand Down Expand Up @@ -136,6 +138,7 @@ class CityConquestFunctions(val city: City) {
fun annexCity() {
city.isPuppet = false
if (!city.isInResistance()) city.shouldReassignPopulation = true
city.avoidGrowth = false
city.setCityFocus(CityFocus.NoFocus)
city.cityStats.update()
GUI.setUpdateWorldOnNextRender()
Expand Down

0 comments on commit 32856f9

Please sign in to comment.