From af2dd004e496145d57d265780ef1964c6f3854cf Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 25 Jan 2025 18:01:59 -0600 Subject: [PATCH] defense calc --- src/engine/objects/PlayerCombatStats.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCombatStats.java b/src/engine/objects/PlayerCombatStats.java index 77c31869..86a4d866 100644 --- a/src/engine/objects/PlayerCombatStats.java +++ b/src/engine/objects/PlayerCombatStats.java @@ -589,7 +589,7 @@ public class PlayerCombatStats { defense += (1 + blockSkill / 100) * shieldDefense; defense += (weaponSkill / 2); defense += (masterySkill / 2); - defense += dexterity * 2; + defense += dexterity;// * 2; defense += flatBonuses; defense *= luckyRune; defense *= stanceMod; @@ -699,6 +699,8 @@ public class PlayerCombatStats { float totalPenalty = dex * penaltyFactor; + dex *= 2; + float returnedDex = Math.round(dex - totalPenalty); return (int) returnedDex;