|
|
|
@ -427,9 +427,9 @@ public enum NPCManager {
@@ -427,9 +427,9 @@ public enum NPCManager {
|
|
|
|
|
|
|
|
|
|
for (MobEquipment equipped : mob.equip.values()) { |
|
|
|
|
if (equipped.template.item_type.equals(Enum.ItemType.ARMOR)) { |
|
|
|
|
mob.resists.setResist(Enum.SourceType.SLASHING, mob.resists.getResist(Enum.SourceType.SLASHING, 0) + equipped.template.combat_attack_resist.get("Slashing")); |
|
|
|
|
mob.resists.setResist(Enum.SourceType.CRUSHING, mob.resists.getResist(Enum.SourceType.CRUSHING, 0) + equipped.template.combat_attack_resist.get("Crushing")); |
|
|
|
|
mob.resists.setResist(Enum.SourceType.PIERCING, mob.resists.getResist(Enum.SourceType.PIERCING, 0) + equipped.template.combat_attack_resist.get("Piercing")); |
|
|
|
|
mob.resists.setResist(Enum.SourceType.SLASHING, mob.resists.getResist(Enum.SourceType.SLASHING, 0) + equipped.template.combat_attack_resist.get("SLASHING")); |
|
|
|
|
mob.resists.setResist(Enum.SourceType.CRUSHING, mob.resists.getResist(Enum.SourceType.CRUSHING, 0) + equipped.template.combat_attack_resist.get("CRUSHING")); |
|
|
|
|
mob.resists.setResist(Enum.SourceType.PIERCING, mob.resists.getResist(Enum.SourceType.PIERCING, 0) + equipped.template.combat_attack_resist.get("PIERCING")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|