mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
AI cities ressign population when there are better tiles that the population can work on
This commit is contained in:
parent
ba320552e2
commit
7ca7be5d70
@ -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()}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user