From 7ca7be5d708b5354410e29aa24bf6c436f9e503b Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 29 May 2018 22:02:28 +0300 Subject: [PATCH] AI cities ressign population when there are better tiles that the population can work on --- core/src/com/unciv/logic/automation/Automation.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/com/unciv/logic/automation/Automation.kt b/core/src/com/unciv/logic/automation/Automation.kt index 411606a6e6..f9c953325d 100644 --- a/core/src/com/unciv/logic/automation/Automation.kt +++ b/core/src/com/unciv/logic/automation/Automation.kt @@ -57,6 +57,9 @@ class Automation { for (city in civInfo.cities) { if (city.health < city.getMaxHealth()) trainCombatUnit(city) + // reassign everyone from scratch + city.workedTiles.clear() + (0..city.population.population).forEach { city.population.autoAssignPopulation()} } }