Browse Source

PlayerCombatStats defense proper rounding

lakebane-dex-penalty
FatBoy-DOTC 1 week ago
parent
commit
a9144471b1
  1. 6
      src/engine/objects/PlayerCombatStats.java

6
src/engine/objects/PlayerCombatStats.java

@ -424,9 +424,9 @@ public class PlayerCombatStats {
(weaponMastery / 2.0) + (weaponMastery / 2.0) +
dexterity * 2.0 + dexterity * 2.0 +
bonusValues; bonusValues;
defense *= 1.0f + percentBonus; defense *= 1.0f + percentBonus + stanceValue;
defense *= 1.0f + stanceValue; //defense *= 1.0f + stanceValue;
defense += 0.5f; defense = Math.round(defense);
this.defense = (int) defense; this.defense = (int) defense;
} }
} }

Loading…
Cancel
Save