mirror of
https://github.com/yairm210/Unciv.git
synced 2024-12-22 23:14:25 +07:00
Update Automation.kt
This commit is contained in:
parent
b68c564c98
commit
d22f0c5d9e
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user