Resolved #7936 - automated workers no longer try to improve enemy tiles

This commit is contained in:
Yair Morgenstern
2022-11-15 18:54:36 +02:00
parent 6807efd870
commit 0c76ad7ddd

View File

@ -256,6 +256,7 @@ class WorkerAutomation(
val workableTiles = currentTile.getTilesInDistance(4)
.filter {
(it.civilianUnit == null || it == currentTile)
&& (it.owningCity == null || it.getOwner()==civInfo)
&& tileCanBeImproved(unit, it)
&& it.getTilesInDistance(2)
.none { tile -> tile.isCityCenter() && tile.getCity()!!.civInfo.isAtWarWith(civInfo) }