mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 23:40:01 +07:00
Resolved #12311 - Cities reduce tile movement cost to 1, per Civ V
This commit is contained in:
@ -79,7 +79,9 @@ object MovementCost {
|
||||
if (unit.cache.ignoresTerrainCost) return 1f + extraCost
|
||||
if (areConnectedByRiver) return 100f // Rivers take the entire turn to cross
|
||||
|
||||
val terrainCost = to.lastTerrain.movementCost.toFloat()
|
||||
// Cities reduce terrain cost to 1
|
||||
val terrainCost = if (to.isCityCenter()) 1f
|
||||
else to.lastTerrain.movementCost.toFloat()
|
||||
|
||||
if (unit.cache.noTerrainMovementUniques)
|
||||
return terrainCost + extraCost
|
||||
|
Reference in New Issue
Block a user