|
|
@ -337,7 +337,7 @@ public enum NPCManager { |
|
|
|
int baseDef = guard.mobBase.getDefenseRating(); |
|
|
|
int baseDef = guard.mobBase.getDefenseRating(); |
|
|
|
int armorDefense = 0; |
|
|
|
int armorDefense = 0; |
|
|
|
for(MobEquipment equipped : guard.equip.values()) |
|
|
|
for(MobEquipment equipped : guard.equip.values()) |
|
|
|
if (equipped.getItemBase().isArmor() || ItemTemplate.isShield(equipped.template)) |
|
|
|
if (equipped.template.item_type.equals(Enum.ItemType.ARMOR) || ItemTemplate.isShield(equipped.template)) |
|
|
|
armorDefense += equipped.getItemBase().getDefense(); |
|
|
|
armorDefense += equipped.getItemBase().getDefense(); |
|
|
|
guard.defenseRating = dexterity + baseDef + armorDefense; |
|
|
|
guard.defenseRating = dexterity + baseDef + armorDefense; |
|
|
|
} |
|
|
|
} |
|
|
|