mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 13:49:54 +07:00
Resolved #490 - AI doesn't train settlers when at war
This commit is contained in:
@ -210,6 +210,7 @@ class NextTurnAutomation{
|
||||
}
|
||||
|
||||
private fun trainSettler(civInfo: CivilizationInfo) {
|
||||
if(civInfo.isAtWar()) return // don't train settlers when you could be training troops.
|
||||
if (civInfo.cities.any()
|
||||
&& civInfo.happiness > civInfo.cities.size + 5
|
||||
&& civInfo.getCivUnits().none { it.name == "Settler" }
|
||||
|
Reference in New Issue
Block a user