Browse Source

irekei movepseed

lakebane2
FatBoy-DOTC 2 weeks ago
parent
commit
f282504896
  1. 12
      src/engine/objects/PlayerCharacter.java

12
src/engine/objects/PlayerCharacter.java

@ -3162,8 +3162,6 @@ public class PlayerCharacter extends AbstractCharacter {
// TODO get equip bonus // TODO get equip bonus
this.update(false); this.update(false);
if(this.getRaceID() == 2013 || this.getRaceID() == 2014)
bonus -= 0.1f;
this.speedMod = bonus; this.speedMod = bonus;
} }
@ -3396,11 +3394,11 @@ public class PlayerCharacter extends AbstractCharacter {
public void recalculatePlayerStats(boolean initialized) { public void recalculatePlayerStats(boolean initialized) {
//calculate base stats //calculate base stats
calculateBaseStats(); this.calculateBaseStats();
//calculate base skills //calculate base skills
CharacterSkill.updateAllBaseAmounts(this); CharacterSkill.updateAllBaseAmounts(this);
calculateModifiedStats(); this.calculateModifiedStats();
//calculate modified skills //calculate modified skills
CharacterSkill.updateAllModifiedAmounts(this); CharacterSkill.updateAllModifiedAmounts(this);
@ -3410,13 +3408,13 @@ public class PlayerCharacter extends AbstractCharacter {
//calculate ATR, damage and defense //calculate ATR, damage and defense
calculateAtrDefenseDamage(); this.calculateAtrDefenseDamage();
//calculate movement bonus //calculate movement bonus
calculateSpeedMod(); this.calculateSpeedMod();
// recalculate Max Health/Mana/Stamina // recalculate Max Health/Mana/Stamina
calculateMaxHealthManaStamina(); this.calculateMaxHealthManaStamina();
// recalculate Resists // recalculate Resists
Resists.calculateResists(this); Resists.calculateResists(this);

Loading…
Cancel
Save