mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04:00
parent
208ad1aa27
commit
b43257cea8
@ -40,11 +40,13 @@ class UnitMovementAlgorithms(val unit:MapUnit) {
|
||||
if (unit.doubleMovementInForestAndJungle &&
|
||||
(to.terrainFeatures.contains(Constants.forest) || to.terrainFeatures.contains(Constants.jungle)))
|
||||
return 1f + extraCost // usually forest and jungle take 2 movements, so here it is 1
|
||||
if (civInfo.nation.ignoreHillMovementCost && to.isHill())
|
||||
return 1f + extraCost // usually hills take 2 movements, so here it is 1
|
||||
|
||||
if (unit.roughTerrainPenalty && to.isRoughTerrain())
|
||||
return 4f + extraCost
|
||||
return 100f // units that have to sped all movement in rough terrain, have to spend all movement in rough terrain
|
||||
// Placement of this 'if' based on testing, see #4232
|
||||
|
||||
if (civInfo.nation.ignoreHillMovementCost && to.isHill())
|
||||
return 1f + extraCost // usually hills take 2 movements, so here it is 1
|
||||
|
||||
if (unit.doubleMovementInCoast && to.baseTerrain == Constants.coast)
|
||||
return 1 / 2f + extraCost
|
||||
|
Loading…
x
Reference in New Issue
Block a user