chore: renamed MoveImmediatelyOnceBought -> CanMoveImmediatelyOnceBought

This commit is contained in:
yairm210 2024-09-18 14:27:12 +03:00
parent b722a62454
commit 9fe9ac3c4e
2 changed files with 2 additions and 2 deletions

View File

@ -414,7 +414,7 @@ enum class UniqueType(
NoMovementToPillage("No movement cost to pillage", UniqueTarget.Unit, UniqueTarget.Global),
CanMoveAfterAttacking("Can move after attacking", UniqueTarget.Unit),
TransferMovement("Transfer Movement to [mapUnitFilter]", UniqueTarget.Unit),
MoveImmediatelyOnceBought("Can move immediately once bought", UniqueTarget.Unit),
CanMoveImmediatelyOnceBought("Can move immediately once bought", UniqueTarget.Unit),
// Healing
HealsOutsideFriendlyTerritory("May heal outside of friendly territory", UniqueTarget.Unit, UniqueTarget.Global),

View File

@ -319,7 +319,7 @@ class BaseUnit : RulesetObject(), INonPerpetualConstruction {
?: return false // couldn't place the unit, so there's actually no unit =(
//movement penalty
if (boughtWith != null && !civInfo.gameInfo.gameParameters.godMode && !unit.hasUnique(UniqueType.MoveImmediatelyOnceBought))
if (boughtWith != null && !civInfo.gameInfo.gameParameters.godMode && !unit.hasUnique(UniqueType.CanMoveImmediatelyOnceBought))
unit.currentMovement = 0f
addConstructionBonuses(unit, cityConstructions)