Fixed bug - credit to @SomeTroglodyte

This commit is contained in:
Yair Morgenstern 2023-11-29 20:09:07 +02:00
parent dfd8d5cbc9
commit 34dce70142

View File

@ -367,7 +367,7 @@ class WorkerAutomation(
val isResourceTileWithoutResourceProvider = !tile.containsGreatImprovement()
&& tile.hasViewableResource(civInfo)
&& !tile.tileResource.isImprovedBy(tile.improvement!!)
&& (tile.improvement == null || !tile.tileResource.isImprovedBy(tile.improvement!!))
if (anyImprovementIsOk || isResourceTileWithoutResourceProvider) {
val chosenImprovement = chooseImprovement(unit, tile)