|
|
@ -348,9 +348,9 @@ public enum NPCManager { |
|
|
|
int strength = guard.getStatStrCurrent(); |
|
|
|
int strength = guard.getStatStrCurrent(); |
|
|
|
int baseAtr = guard.mobBase.getAttackRating(); |
|
|
|
int baseAtr = guard.mobBase.getAttackRating(); |
|
|
|
if (guard.equip.get(1) != null) |
|
|
|
if (guard.equip.get(1) != null) |
|
|
|
guard.atrHandOne = baseAtr + (int) ((strength * 0.5f) + (guard.equip.get(1).getItemBase().getPercentRequired() * 4) + (guard.equip.get(1).getItemBase().getPercentRequired() * 3)); |
|
|
|
guard.atrHandOne = baseAtr + (int) ((strength * 0.5f) + (guard.equip.get(Enum.EquipSlotType.RHELD).getItemBase().getPercentRequired() * 4) + (guard.equip.get(Enum.EquipSlotType.RHELD).getItemBase().getPercentRequired() * 3)); |
|
|
|
else if (guard.equip.get(2) != null && !ItemTemplate.isShield(guard.equip.get(2).template)) |
|
|
|
else if (guard.equip.get(2) != null && !ItemTemplate.isShield(guard.equip.get(Enum.EquipSlotType.LHELD).template)) |
|
|
|
guard.atrHandTwo = baseAtr + (int) ((strength * 0.5f) + (guard.equip.get(2).getItemBase().getPercentRequired() * 4) + (guard.equip.get(2).getItemBase().getPercentRequired() * 3)); |
|
|
|
guard.atrHandTwo = baseAtr + (int) ((strength * 0.5f) + (guard.equip.get(Enum.EquipSlotType.LHELD).getItemBase().getPercentRequired() * 4) + (guard.equip.get(Enum.EquipSlotType.LHELD).getItemBase().getPercentRequired() * 3)); |
|
|
|
else |
|
|
|
else |
|
|
|
guard.atrHandOne = baseAtr; |
|
|
|
guard.atrHandOne = baseAtr; |
|
|
|
} |
|
|
|
} |
|
|
|