From 158dbf914199b386c4f9578eb520eb76027884d4 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 5 Mar 2025 17:58:32 -0600 Subject: [PATCH] remove ATR component form weapon powers --- src/engine/objects/PlayerCombatStats.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCombatStats.java b/src/engine/objects/PlayerCombatStats.java index 4216e73d..1e6a0051 100644 --- a/src/engine/objects/PlayerCombatStats.java +++ b/src/engine/objects/PlayerCombatStats.java @@ -443,7 +443,21 @@ public class PlayerCombatStats { modifier -= (stanceValue); } modifier -= healerDefStance; - atr *= modifier; + + float weaponMoveBonus = 0.0f; + if(this.owner.effects != null){ + if(this.owner.effects.containsKey("WeaponMove")){ + Effect eff = this.owner.effects.get("WeaponMove"); + for(AbstractEffectModifier mod : eff.getEffectModifiers()){ + if(mod.modType.equals(Enum.ModType.OCV)){ + float min = mod.getPercentMod(); + float ramp = mod.getRamp() * eff.getTrains(); + weaponMoveBonus += (min + ramp) * 0.01f; + } + } + } + } + atr *= modifier - weaponMoveBonus; } atr = (float) Math.round(atr);