Avoid Growth blocks New Population (#12348)

This commit is contained in:
itanasi
2024-10-30 22:18:19 -07:00
committed by GitHub
parent cf93f81956
commit 0e7b9db766

View File

@ -109,6 +109,12 @@ class CityPopulationManager : IsPartOfGameInfoSerialization {
if (city.getMatchingUniques(UniqueType.NullifiesGrowth).any())
return
// Hard block growth when using Avoid Growth, cap stored food
if (city.avoidGrowth) {
foodStored = foodNeededToGrow
return
}
// growth!
foodStored -= foodNeededToGrow
val percentOfFoodCarriedOver =