Browse Source

defense calc completed

lakebane-dex-penalty
FatBoy-DOTC 5 days ago
parent
commit
172dcfb6d8
  1. 3
      src/engine/objects/PlayerCombatStats.java

3
src/engine/objects/PlayerCombatStats.java

@ -290,12 +290,15 @@ public class PlayerCombatStats {
//Weapon Max DMG = BaseDMG * (0.0124*Primary Stat + 0.118*(Primary Stat -0.75)^0.5 //Weapon Max DMG = BaseDMG * (0.0124*Primary Stat + 0.118*(Primary Stat -0.75)^0.5
// + 0.0022*Secondary Stat + 0.028*(Secondary Stat-0.75)^0.5 + 0.0075*(Weapon Skill + Weapon Mastery)) // + 0.0022*Secondary Stat + 0.028*(Secondary Stat-0.75)^0.5 + 0.0075*(Weapon Skill + Weapon Mastery))
Item weapon; Item weapon;
float specialDex = this.owner.statDexBase;
specialDex += this.owner.bonuses.getFloat(Enum.ModType.Attr, Enum.SourceType.Dexterity);
double baseDMG = 5; double baseDMG = 5;
int primaryStat = getDexAfterPenalty(this.owner); int primaryStat = getDexAfterPenalty(this.owner);
int secondaryStat = this.owner.statStrCurrent; int secondaryStat = this.owner.statStrCurrent;
double weaponSkill = 5; double weaponSkill = 5;
double weaponMastery = 5; double weaponMastery = 5;
if (mainHand) { if (mainHand) {
weapon = this.owner.charItemManager.getEquipped(1); weapon = this.owner.charItemManager.getEquipped(1);
} else { } else {

Loading…
Cancel
Save