|
|
|
@ -304,16 +304,19 @@ public enum NPCManager {
@@ -304,16 +304,19 @@ public enum NPCManager {
|
|
|
|
|
guard.minDamageHandOne = (int)(guard.mobBase.getDamageMin() + weapon.getMinDamage()); |
|
|
|
|
guard.maxDamageHandOne = (int)(guard.mobBase.getDamageMax() + weapon.getMaxDamage()); |
|
|
|
|
guard.speedHandOne = weapon.getSpeed(); |
|
|
|
|
guard.rangeHandOne = weapon.getRange(); |
|
|
|
|
} else if(guard.equip.containsKey(2) && !guard.equip.get(2).getItemBase().isShield()){ |
|
|
|
|
//has off hand weapon
|
|
|
|
|
ItemBase weapon = guard.equip.get(2).getItemBase(); |
|
|
|
|
guard.minDamageHandTwo = (int)(guard.mobBase.getDamageMin() + weapon.getMinDamage()); |
|
|
|
|
guard.maxDamageHandTwo = (int)(guard.mobBase.getDamageMax() + weapon.getMaxDamage()); |
|
|
|
|
guard.speedHandTwo = weapon.getSpeed(); |
|
|
|
|
guard.rangeHandTwo = weapon.getRange(); |
|
|
|
|
} else { |
|
|
|
|
guard.minDamageHandOne = (int)(guard.mobBase.getDamageMin()); |
|
|
|
|
guard.maxDamageHandOne = (int)(guard.mobBase.getDamageMax()); |
|
|
|
|
guard.speedHandOne = 30.0f; |
|
|
|
|
guard.rangeHandOne = 3; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|