From 9497c17b8de4cd6fbd7f5c8e8b7664a339b7ca59 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Sun, 20 Oct 2024 15:28:12 +0300 Subject: [PATCH] Resolved #12311 - Cities reduce tile movement cost to 1, per Civ V --- core/src/com/unciv/logic/map/mapunit/movement/MovementCost.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/mapunit/movement/MovementCost.kt b/core/src/com/unciv/logic/map/mapunit/movement/MovementCost.kt index 47c78b6a64..3c197cf67b 100644 --- a/core/src/com/unciv/logic/map/mapunit/movement/MovementCost.kt +++ b/core/src/com/unciv/logic/map/mapunit/movement/MovementCost.kt @@ -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