|
|
|
@ -298,9 +298,9 @@ public enum NPCManager {
@@ -298,9 +298,9 @@ public enum NPCManager {
|
|
|
|
|
guard.maxDamageHandOne = (int)((guard.mobBase.getDamageMax()) * rankModifier); |
|
|
|
|
guard.speedHandOne = 30.0f; |
|
|
|
|
}else{ |
|
|
|
|
if(guard.equip.containsKey(1)){ |
|
|
|
|
if (guard.equip.containsKey(Enum.EquipSlotType.RHELD)) { |
|
|
|
|
//has main hand weapon
|
|
|
|
|
ItemBase weapon = guard.equip.get(1).getItemBase(); |
|
|
|
|
ItemBase weapon = guard.equip.get(Enum.EquipSlotType.RHELD).getItemBase(); |
|
|
|
|
if (weapon.isStrBased()) |
|
|
|
|
primaryStat = guard.getStatStrCurrent(); |
|
|
|
|
else |
|
|
|
@ -309,9 +309,9 @@ public enum NPCManager {
@@ -309,9 +309,9 @@ public enum NPCManager {
|
|
|
|
|
guard.maxDamageHandOne = (int) ((guard.mobBase.getDamageMax() + weapon.getMaxDamage()) * rankModifier) + primaryStat; |
|
|
|
|
guard.speedHandOne = weapon.getSpeed(); |
|
|
|
|
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
|
|
|
|
|
ItemBase weapon = guard.equip.get(2).getItemBase(); |
|
|
|
|
ItemBase weapon = guard.equip.get(Enum.EquipSlotType.LHELD).getItemBase(); |
|
|
|
|
if (weapon.isStrBased()) |
|
|
|
|
primaryStat = guard.getStatStrCurrent(); |
|
|
|
|
else |
|
|
|
|