From 7eb49446c13bd786d305b96ca7529dac62daf5c8 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 14 Jan 2025 18:47:05 -0600 Subject: [PATCH] correct use of proper stat for ATR calculation --- src/engine/objects/PlayerCharacter.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 56d51555..d6be667c 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -3929,10 +3929,12 @@ public class PlayerCharacter extends AbstractCharacter { //(Primary Stat / 2) + (Weapon Skill * 4) + (Weapon Mastery * 3) + (ATR Enchantments) * 1.stance modifier float atr = 0; int primaryStat; - if(weaponBase != null && !weaponBase.isStrBased()){ - primaryStat = this.statDexCurrent; - }else{ + int dexMod = this.getDexMod(); + int strMod = this.getStrMod(); + if(weaponBase != null && weaponBase.isStrBased()){ primaryStat = this.statStrCurrent; + }else{ + primaryStat = this.statDexCurrent; } atr = (primaryStat * 0.5f) + (skillPercentage * 4) + (masteryPercentage * 3);