Browse Source

defense calc

lakebane-dex-penalty
FatBoy-DOTC 5 days ago
parent
commit
af2dd004e4
  1. 4
      src/engine/objects/PlayerCombatStats.java

4
src/engine/objects/PlayerCombatStats.java

@ -589,7 +589,7 @@ public class PlayerCombatStats { @@ -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 { @@ -699,6 +699,8 @@ public class PlayerCombatStats {
float totalPenalty = dex * penaltyFactor;
dex *= 2;
float returnedDex = Math.round(dex - totalPenalty);
return (int) returnedDex;

Loading…
Cancel
Save