From e424ec4a918300ed73bb3c3c80292d3608073c8e Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 14 Apr 2021 18:25:37 +0300 Subject: [PATCH] "+[]% combat bonus in []" -> "+[]% Strength in []" --- android/assets/jsons/Civ V - Vanilla/Units.json | 8 ++++---- core/src/com/unciv/logic/battle/BattleDamage.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/android/assets/jsons/Civ V - Vanilla/Units.json b/android/assets/jsons/Civ V - Vanilla/Units.json index e31619dcd3..bc25993bce 100644 --- a/android/assets/jsons/Civ V - Vanilla/Units.json +++ b/android/assets/jsons/Civ V - Vanilla/Units.json @@ -61,7 +61,7 @@ "strength": 8, "cost": 40, "obsoleteTech": "Metal Casting", - "uniques": ["+[33]% combat bonus in [Forest]", "+[33]% combat bonus in [Jungle]", "Heals [25] damage if it kills a unit"], + "uniques": ["+[33]% Strength in [Forest]", "+[33]% Strength in [Jungle]", "Heals [25] damage if it kills a unit"], "promotions": ["Woodsman"], "upgradesTo": "Swordsman", "attackSound": "nonmetalhit" @@ -361,7 +361,7 @@ "upgradesTo": "Longswordsman", "obsoleteTech": "Gunpowder", "hurryCostModifier": 20, - "uniques": ["+[33]% combat bonus in [Forest]", "+[33]% combat bonus in [Jungle]"], + "uniques": ["+[33]% Strength in [Forest]", "+[33]% Strength in [Jungle]"], "attackSound": "metalhit" }, /* @@ -917,7 +917,7 @@ "requiredTech": "Rifling", "obsoleteTech": "Replaceable Parts", "upgradesTo": "Great War Infantry", - "uniques": ["+[25]% combat bonus in [Snow]", "+[25]% combat bonus in [Tundra]", "+[25]% combat bonus in [Hill]", "Double movement in Snow, Tundra and Hills"], + "uniques": ["+[25]% Strength in [Snow]", "+[25]% Strength in [Tundra]", "+[25]% Strength in [Hill]", "Double movement in Snow, Tundra and Hills"], "attackSound": "shot" }, { @@ -1149,7 +1149,7 @@ "requiredTech": "Replaceable Parts", "upgradesTo": "Infantry", "obsoleteTech": "Plastics", - "uniques": ["+[20]% combat bonus in [Foreign Land]"], + "uniques": ["+[20]% Strength in [Foreign Land]"], "attackSound": "shot" }, /* diff --git a/core/src/com/unciv/logic/battle/BattleDamage.kt b/core/src/com/unciv/logic/battle/BattleDamage.kt index beead94539..60915989d7 100644 --- a/core/src/com/unciv/logic/battle/BattleDamage.kt +++ b/core/src/com/unciv/logic/battle/BattleDamage.kt @@ -201,7 +201,7 @@ object BattleDamage { private fun getTileSpecificModifiers(unit: MapUnitCombatant, tile: TileInfo): Counter { val modifiers = Counter() - for (unique in unit.unit.getMatchingUniques("+[]% combat bonus in []") + for (unique in unit.unit.getMatchingUniques("+[]% combat bonus in []") // deprecated as of 3.14.1 + unit.unit.getMatchingUniques("+[]% Strength in []") + unit.getCivInfo().getMatchingUniques("+[]% combat bonus for units fighting in []")) { val filter = unique.params[1]