mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 23:44:24 +07:00
Update Automation.kt (#12471)
This commit is contained in:
parent
cf7b575329
commit
2812216f3c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user