PlayerCombatStats defense proper rounding

This commit is contained in:
2025-01-21 20:24:15 -06:00
parent 9f924da18b
commit a9144471b1
+3 -3
View File
@@ -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;
}
}