From 7a7fb57f56672f4ab8acb171bf26c3399ea381db Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Fri, 14 Aug 2020 10:19:01 +0300 Subject: [PATCH] Resolved #2985 - fixed Embark/Disembark costs --- core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt index 514fc59ef2..410545f980 100644 --- a/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt +++ b/core/src/com/unciv/logic/map/UnitMovementAlgorithms.kt @@ -10,7 +10,7 @@ class UnitMovementAlgorithms(val unit:MapUnit) { fun getMovementCostBetweenAdjacentTiles(from: TileInfo, to: TileInfo, civInfo: CivilizationInfo): Float { if ((from.isLand != to.isLand) && unit.type.isLandUnit() && - (unit.civInfo.nation.embarkDisembarkCosts1)) + !unit.civInfo.nation.embarkDisembarkCosts1) return 100f // this is embarkment or disembarkment, and will take the entire turn var extraCost = 0f