From 9fe9ac3c4ef14f7f971a49b00a73a82cdf5509d6 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Wed, 18 Sep 2024 14:27:12 +0300 Subject: [PATCH] chore: renamed MoveImmediatelyOnceBought -> CanMoveImmediatelyOnceBought --- core/src/com/unciv/models/ruleset/unique/UniqueType.kt | 2 +- core/src/com/unciv/models/ruleset/unit/BaseUnit.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/models/ruleset/unique/UniqueType.kt b/core/src/com/unciv/models/ruleset/unique/UniqueType.kt index 17a0c47e0d..8de66c70d2 100644 --- a/core/src/com/unciv/models/ruleset/unique/UniqueType.kt +++ b/core/src/com/unciv/models/ruleset/unique/UniqueType.kt @@ -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), diff --git a/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt b/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt index faf2841db8..e5ae14df21 100644 --- a/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt +++ b/core/src/com/unciv/models/ruleset/unit/BaseUnit.kt @@ -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)