Browse Source

equip slot usage update

combat-2
MagicBot 8 months ago
parent
commit
7848233396
  1. 8
      src/engine/gameManager/NPCManager.java

8
src/engine/gameManager/NPCManager.java

@ -298,9 +298,9 @@ public enum NPCManager {
guard.maxDamageHandOne = (int)((guard.mobBase.getDamageMax()) * rankModifier); guard.maxDamageHandOne = (int)((guard.mobBase.getDamageMax()) * rankModifier);
guard.speedHandOne = 30.0f; guard.speedHandOne = 30.0f;
}else{ }else{
if(guard.equip.containsKey(1)){ if (guard.equip.containsKey(Enum.EquipSlotType.RHELD)) {
//has main hand weapon //has main hand weapon
ItemBase weapon = guard.equip.get(1).getItemBase(); ItemBase weapon = guard.equip.get(Enum.EquipSlotType.RHELD).getItemBase();
if (weapon.isStrBased()) if (weapon.isStrBased())
primaryStat = guard.getStatStrCurrent(); primaryStat = guard.getStatStrCurrent();
else else
@ -309,9 +309,9 @@ public enum NPCManager {
guard.maxDamageHandOne = (int) ((guard.mobBase.getDamageMax() + weapon.getMaxDamage()) * rankModifier) + primaryStat; guard.maxDamageHandOne = (int) ((guard.mobBase.getDamageMax() + weapon.getMaxDamage()) * rankModifier) + primaryStat;
guard.speedHandOne = weapon.getSpeed(); guard.speedHandOne = weapon.getSpeed();
guard.rangeHandOne = weapon.getRange(); guard.rangeHandOne = weapon.getRange();
} else if (guard.equip.containsKey(2) && !ItemTemplate.isShield(guard.equip.get(2).template)) { } else if (guard.equip.containsKey(Enum.EquipSlotType.LHELD) && !ItemTemplate.isShield(guard.equip.get(Enum.EquipSlotType.LHELD).template)) {
//has off hand weapon //has off hand weapon
ItemBase weapon = guard.equip.get(2).getItemBase(); ItemBase weapon = guard.equip.get(Enum.EquipSlotType.LHELD).getItemBase();
if (weapon.isStrBased()) if (weapon.isStrBased())
primaryStat = guard.getStatStrCurrent(); primaryStat = guard.getStatStrCurrent();
else else

Loading…
Cancel
Save