mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 12:48:56 +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())
|
if (city.getMatchingUniques(UniqueType.NullifiesGrowth).any())
|
||||||
return
|
return
|
||||||
|
|
||||||
|
// Hard block growth when using Avoid Growth, cap stored food
|
||||||
|
if (city.avoidGrowth) {
|
||||||
|
foodStored = foodNeededToGrow
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// growth!
|
// growth!
|
||||||
foodStored -= foodNeededToGrow
|
foodStored -= foodNeededToGrow
|
||||||
val percentOfFoodCarriedOver =
|
val percentOfFoodCarriedOver =
|
||||||
|
Reference in New Issue
Block a user