Obvious mistake

This commit is contained in:
Yair Morgenstern 2021-07-05 21:11:47 +03:00
parent c1ff2e4ba7
commit a6041d670d

View File

@ -11,7 +11,7 @@ class UnitMovementAlgorithms(val unit:MapUnit) {
fun getMovementCostBetweenAdjacentTiles(from: TileInfo, to: TileInfo, civInfo: CivilizationInfo): Float {
if (from.isLand != to.isLand && unit.type.isLandUnit())
if (!unit.civInfo.nation.disembarkCosts1 && from.isWater && to.isLand) return 1f
if (unit.civInfo.nation.disembarkCosts1 && from.isWater && to.isLand) return 1f
else return 100f // this is embarkment or disembarkment, and will take the entire turn
// land units will still spend all movement points to embark even with this unique