mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Resolved #2985 - fixed Embark/Disembark costs
This commit is contained in:
parent
5c0eaa18dd
commit
7a7fb57f56
@ -10,7 +10,7 @@ class UnitMovementAlgorithms(val unit:MapUnit) {
|
|||||||
fun getMovementCostBetweenAdjacentTiles(from: TileInfo, to: TileInfo, civInfo: CivilizationInfo): Float {
|
fun getMovementCostBetweenAdjacentTiles(from: TileInfo, to: TileInfo, civInfo: CivilizationInfo): Float {
|
||||||
|
|
||||||
if ((from.isLand != to.isLand) && unit.type.isLandUnit() &&
|
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
|
return 100f // this is embarkment or disembarkment, and will take the entire turn
|
||||||
|
|
||||||
var extraCost = 0f
|
var extraCost = 0f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user