Update Automation.kt (#12471)

This commit is contained in:
EmperorPinguin 2024-11-14 12:47:31 +01:00 committed by GitHub
parent cf7b575329
commit 2812216f3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,7 +109,7 @@ object Automation {
// but setting such by default worsens AI civ citizen assignment,
// probably due to badly configured personalities not properly weighing food vs non-food yields
val growthFoodScaling = if (city.civ.getHappiness() > 0) foodBaseWeight * 2
else if (city.civ.getHappiness() < 8) foodBaseWeight * 0
else if (city.civ.getHappiness() < -8) foodBaseWeight * 0
else foodBaseWeight / 4
yieldStats.food += growthFood * growthFoodScaling
}