mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04:00
Merge 67d8b91b4341f37d4b4cb298f2c97e226c59af68 into d51ef24c205b6b05330b3c4d7ce79c402db44447
This commit is contained in:
commit
f9ef71184e
@ -285,8 +285,12 @@ class WorkerAutomation(
|
||||
if (tile.providesYield()) priority += 2
|
||||
if (tile.isPillaged()) priority += 1
|
||||
if (tile.hasFalloutEquivalent()) priority += 1
|
||||
if (tile.terrainFeatures.isNotEmpty() && tile.lastTerrain.hasUnique(UniqueType.ProductionBonusWhenRemoved)) priority += 0.5f// removing our forests is good for tempo
|
||||
if (tile.terrainHasUnique(UniqueType.FreshWater)) priority += 1 // we want our farms up when unlocking Civil Service
|
||||
if (tile.terrainFeatures.isNotEmpty()) {
|
||||
if (tile.lastTerrain.hasUnique(UniqueType.ProductionBonusWhenRemoved)) priority += 0.5f
|
||||
else if (tile.lastTerrain.hasUnique(UniqueType.Vegetation)) priority -= 0.3f
|
||||
} // Removing our forests is good for tempo, jungles not as much
|
||||
if (tile.terrainHasUnique(UniqueType.FreshWater)) priority += 1
|
||||
// we want our farms up when unlocking Civil Service
|
||||
}
|
||||
// give a minor priority to tiles that we could expand onto
|
||||
else if (tile.getOwner() == null && tile.neighbors.any { it.getOwner() == civInfo })
|
||||
|
Loading…
x
Reference in New Issue
Block a user