AI cities ressign population when there are better tiles that the population can work on

This commit is contained in:
Yair Morgenstern 2018-05-29 22:02:28 +03:00
parent ba320552e2
commit 7ca7be5d70

View file

@ -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()}
}
}