Browse Source

proper duel wield attack speed calc

lakebane
FatBoy-DOTC 2 days ago
parent
commit
0a827d2404
  1. 21
      src/engine/objects/PlayerCombatStats.java

21
src/engine/objects/PlayerCombatStats.java

@ -388,12 +388,33 @@ public class PlayerCombatStats {
int trains = eff.getTrains(); int trains = eff.getTrains();
float modValue = percent + (trains * mod.getRamp()); float modValue = percent + (trains * mod.getRamp());
speed *= 1 + (modValue * 0.01f); speed *= 1 + (modValue * 0.01f);
}
}
}
}
if(this.owner.charItemManager.getEquipped(1) != null){
for(Effect eff : this.owner.charItemManager.getEquipped(1).effects.values()){
for(AbstractEffectModifier mod : eff.getEffectModifiers()){
if(mod.modType.equals(Enum.ModType.AttackDelay)){ if(mod.modType.equals(Enum.ModType.AttackDelay)){
float percent = mod.getPercentMod();
int trains = eff.getTrains();
float modValue = percent + (trains * mod.getRamp());
delayExtra += modValue * 0.01f; delayExtra += modValue * 0.01f;
} }
} }
} }
} }
if(this.owner.charItemManager.getEquipped(2) != null){
for(Effect eff : this.owner.charItemManager.getEquipped(2).effects.values()){
for(AbstractEffectModifier mod : eff.getEffectModifiers()){
if(mod.modType.equals(Enum.ModType.AttackDelay)){
float percent = mod.getPercentMod();
int trains = eff.getTrains();
float modValue = percent + (trains * mod.getRamp());
delayExtra += modValue * 0.01f;
}
}
}
} }
float stanceValue = 0.0f; float stanceValue = 0.0f;

Loading…
Cancel
Save