mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 05:41:11 +07:00
This commit is contained in:
@ -168,8 +168,9 @@ class WorkerAutomation(val unit: MapUnit) {
|
|||||||
priority += 2
|
priority += 2
|
||||||
if (tileInfo.isWorked()) priority += 3
|
if (tileInfo.isWorked()) priority += 3
|
||||||
}
|
}
|
||||||
else if (tileInfo.neighbors.any { it.getOwner() != null }) priority += 1
|
// give a minor priority to tiles that we could expand onto
|
||||||
if (tileInfo.hasViewableResource(civInfo)) priority += 1
|
else if (tileInfo.getOwner()==null && tileInfo.neighbors.any { it.getOwner() ==civInfo }) priority += 1
|
||||||
|
if (priority!=0 && tileInfo.hasViewableResource(civInfo)) priority += 1
|
||||||
return priority
|
return priority
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user