Browse Source

attack speed calculations

lakebane-dex-penalty
FatBoy-DOTC 1 week ago
parent
commit
e7d22717cd
  1. 6
      src/engine/objects/PlayerCharacter.java

6
src/engine/objects/PlayerCharacter.java

@ -3974,7 +3974,8 @@ public class PlayerCharacter extends AbstractCharacter {
for(Effect eff : this.effects.values()){ for(Effect eff : this.effects.values()){
for(AbstractEffectModifier mod : eff.getEffectModifiers()){ for(AbstractEffectModifier mod : eff.getEffectModifiers()){
if(mod.modType.equals(ModType.WeaponSpeed)){ if(mod.modType.equals(ModType.WeaponSpeed)){
speed *= 1 + mod.getPercentMod(); float modValue = 1 + mod.getPercentMod() * 0.01f;
speed *= modValue;
} }
} }
} }
@ -3984,7 +3985,8 @@ public class PlayerCharacter extends AbstractCharacter {
for(Effect eff : this.effects.values()){ for(Effect eff : this.effects.values()){
for(AbstractEffectModifier mod : eff.getEffectModifiers()){ for(AbstractEffectModifier mod : eff.getEffectModifiers()){
if(mod.modType.equals(ModType.AttackDelay)){ if(mod.modType.equals(ModType.AttackDelay)){
speed *= 1 + mod.getPercentMod(); float modValue = 1 + mod.getPercentMod() * 0.01f;
speed *= modValue;
} }
} }
} }

Loading…
Cancel
Save