Browse Source

PlayerCombatStats damage calc

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

10
src/engine/objects/PlayerCombatStats.java

@ -155,6 +155,11 @@ public class PlayerCombatStats { @@ -155,6 +155,11 @@ public class PlayerCombatStats {
0.064 * Math.sqrt(secondaryStat - 0.75) +
0.01 * (weaponSkill + weaponMastery)
);
if(this.owner.bonuses != null){
minDMG += this.owner.bonuses.getFloat(Enum.ModType.MinDamage, Enum.SourceType.None);
minDMG *= 1+ this.owner.bonuses.getFloatPercentAll(Enum.ModType.MeleeDamageModifier, Enum.SourceType.None);
}
if (mainHand) {
this.minDamageHandOne = (int) minDMG;
@ -211,6 +216,11 @@ public class PlayerCombatStats { @@ -211,6 +216,11 @@ public class PlayerCombatStats {
0.0075 * (weaponSkill + weaponMastery)
);
if(this.owner.bonuses != null){
maxDMG += this.owner.bonuses.getFloat(Enum.ModType.MaxDamage, Enum.SourceType.None);
maxDMG *= 1+ this.owner.bonuses.getFloatPercentAll(Enum.ModType.MeleeDamageModifier, Enum.SourceType.None);
}
if(mainHand){
this.maxDamageHandOne = (int) maxDMG;
}else{

Loading…
Cancel
Save