Browse Source

PlayerCombatStats weapon speed enchants applied separately

lakebane-dex-penalty
FatBoy-DOTC 7 days ago
parent
commit
f80ad61179
  1. 3
      src/engine/objects/PlayerCombatStats.java

3
src/engine/objects/PlayerCombatStats.java

@ -361,7 +361,6 @@ public class PlayerCombatStats {
weapon = this.owner.charItemManager.getEquipped(2); weapon = this.owner.charItemManager.getEquipped(2);
} }
float weaponSpecificValues = 0.0f;
if(weapon == null) { if(weapon == null) {
speed = 20.0f; speed = 20.0f;
}else{ }else{
@ -372,7 +371,6 @@ public class PlayerCombatStats {
float percent = mod.getPercentMod(); float percent = mod.getPercentMod();
int trains = eff.getTrains(); int trains = eff.getTrains();
float modValue = percent + (trains * mod.getRamp()); float modValue = percent + (trains * mod.getRamp());
weaponSpecificValues += modValue * 0.01f;
speed *= 1 + (modValue * 0.01f); speed *= 1 + (modValue * 0.01f);
} }
} }
@ -396,7 +394,6 @@ public class PlayerCombatStats {
} }
float bonusValues = 1 + this.owner.bonuses.getFloatPercentAll(Enum.ModType.AttackDelay,Enum.SourceType.None);//1.0f; float bonusValues = 1 + this.owner.bonuses.getFloatPercentAll(Enum.ModType.AttackDelay,Enum.SourceType.None);//1.0f;
//speed *= 1 + weaponSpecificValues;
bonusValues -= stanceValue; // take away stance modifier from alac bonus values bonusValues -= stanceValue; // take away stance modifier from alac bonus values
speed *= 1 + stanceValue; // apply stance bonus speed *= 1 + stanceValue; // apply stance bonus
speed *= bonusValues; // apply alac bonuses without stance mod speed *= bonusValues; // apply alac bonuses without stance mod

Loading…
Cancel
Save