mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 10:54:19 -04:00
Resolved #12311 - Cities reduce tile movement cost to 1, per Civ V
This commit is contained in:
parent
9140acb432
commit
9497c17b8d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user