Browse Source

weapon speed

lakebane-dex-penalty
FatBoy-DOTC 1 week ago
parent
commit
5761e313fd
  1. 16
      src/engine/objects/PlayerCharacter.java

16
src/engine/objects/PlayerCharacter.java

@ -4264,9 +4264,21 @@ public class PlayerCharacter extends AbstractCharacter {
// } // }
// } // }
//} //}
if(weapon != null){
for(Effect eff : weapon.effects.values()){
for (AbstractEffectModifier mod : eff.getEffectModifiers()){
if(mod.modType.equals(ModType.WeaponSpeed)){
speed *= 1 + (mod.getPercentMod() * 0.01f);
}
}
}
}
if(this.bonuses!= null){ if(this.bonuses!= null){
for (AbstractEffectModifier mod : this.bonuses.bonusFloats.keySet()) { for (AbstractEffectModifier mod : this.bonuses.bonusFloats.keySet()) {
if (mod.modType.equals(ModType.AttackDelay) || mod.modType.equals(ModType.WeaponSpeed)) { if (mod.modType.equals(ModType.AttackDelay)) {
float modValue = 1 + mod.getPercentMod() * 0.01f; float modValue = 1 + mod.getPercentMod() * 0.01f;
speed *= modValue; speed *= modValue;
} }
@ -4362,7 +4374,7 @@ public class PlayerCharacter extends AbstractCharacter {
this.speedHandTwo = speed; this.speedHandTwo = speed;
} }
this.calculateATR(); //this.calculateATR();
//this.calculateDamage(); //this.calculateDamage();
//this.calculateSpeed(); //this.calculateSpeed();
} }

Loading…
Cancel
Save