From a9144471b15de92072e8af06b29ce933fa6bdbcf Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 21 Jan 2025 20:24:15 -0600 Subject: [PATCH] PlayerCombatStats defense proper rounding --- src/engine/objects/PlayerCombatStats.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/PlayerCombatStats.java b/src/engine/objects/PlayerCombatStats.java index f5565de3..48732cdc 100644 --- a/src/engine/objects/PlayerCombatStats.java +++ b/src/engine/objects/PlayerCombatStats.java @@ -424,9 +424,9 @@ public class PlayerCombatStats { (weaponMastery / 2.0) + dexterity * 2.0 + bonusValues; - defense *= 1.0f + percentBonus; - defense *= 1.0f + stanceValue; - defense += 0.5f; + defense *= 1.0f + percentBonus + stanceValue; + //defense *= 1.0f + stanceValue; + defense = Math.round(defense); this.defense = (int) defense; } }