Update Automation.kt

This commit is contained in:
EmperorPinguin 2024-12-13 08:30:17 +01:00 committed by GitHub
parent b68c564c98
commit d22f0c5d9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,7 +123,9 @@ object Automation {
// Zero out Growth if close to Unhappiness limit as well
val baseFocusWeight = if (city.civ.getHappiness() < -8) 0f else {
if (cityAIFocus in CityFocus.zeroFoodFocuses) 1f else 1.5f
if (cityAIFocus in CityFocus.zeroFoodFocuses) 1f
else if (city.population.population < 5) 2f //5 pop is best cutoff according to tests
else 1.5f
}
yieldStats.food += newGrowthFood * foodBaseWeight * baseFocusWeight
}