mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-09 04:09:35 +07:00
Obvious mistake
This commit is contained in:
parent
c1ff2e4ba7
commit
a6041d670d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user