|
|
|
@ -337,7 +337,7 @@ public enum NPCManager {
@@ -337,7 +337,7 @@ public enum NPCManager {
|
|
|
|
|
int baseDef = guard.mobBase.getDefenseRating(); |
|
|
|
|
int armorDefense = 0; |
|
|
|
|
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(); |
|
|
|
|
guard.defenseRating = dexterity + baseDef + armorDefense; |
|
|
|
|
} |
|
|
|
|