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