Resolved #2985 - fixed Embark/Disembark costs

This commit is contained in:
Yair Morgenstern 2020-08-14 10:19:01 +03:00
parent 5c0eaa18dd
commit 7a7fb57f56

View file

@ -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