AI great people will no longer try to raise great improvements on tiles with existing great improvements

This commit is contained in:
Yair Morgenstern 2020-04-24 13:47:10 +03:00
parent e3ed241b9d
commit 5ec9cc5f67

View file

@ -212,6 +212,7 @@ object SpecificUnitAutomation {
.filter {
it.isLand && it.resource == null && !it.isCityCenter()
&& (unit.currentTile == it || unit.movement.canMoveTo(it))
&& !it.containsGreatImprovement()
}.sortedByDescending { Automation.rankTile(it, unit.civInfo) }
.firstOrNull { unit.movement.canReach(it) } // to another city
if (chosenTile == null) continue