mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-16 10:49:17 +07:00
Avoid Growth blocks New Population (#12348)
This commit is contained in:
@ -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 =
|
||||
|
Reference in New Issue
Block a user