From 2812216f3c356e0aa9eaf2a615e5acd6acd38c28 Mon Sep 17 00:00:00 2001 From: EmperorPinguin <99119424+EmperorPinguin@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:47:31 +0100 Subject: [PATCH] Update Automation.kt (#12471) --- core/src/com/unciv/logic/automation/Automation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/automation/Automation.kt b/core/src/com/unciv/logic/automation/Automation.kt index e9e85f2072..754f90a6f3 100644 --- a/core/src/com/unciv/logic/automation/Automation.kt +++ b/core/src/com/unciv/logic/automation/Automation.kt @@ -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 }