mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
Avoid Growth blocks New Population (#12348)
This commit is contained in:
parent
cf93f81956
commit
0e7b9db766
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user