mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -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())
|
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 =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user