mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Resolved #490 - AI doesn't train settlers when at war
This commit is contained in:
parent
c676d127dd
commit
2d1a044e29
@ -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" }
|
||||
|
Loading…
x
Reference in New Issue
Block a user