diff --git a/src/engine/objects/CharacterItemManager.java b/src/engine/objects/CharacterItemManager.java index 8cf58fad..7b41a1fc 100644 --- a/src/engine/objects/CharacterItemManager.java +++ b/src/engine/objects/CharacterItemManager.java @@ -2371,28 +2371,6 @@ public class CharacterItemManager { } - //Damage a random piece of armor a specified amount - public void damageRandomArmor(int amount) { - ArrayList armor = new ArrayList<>(); - - if (this.equipped.containsKey(Enum.EquipSlotType.LHELD)) { - Item item = this.equipped.get(Enum.EquipSlotType.LHELD); - - if (ItemTemplate.isShield(item)) - armor.add(item); - } - - for (Item equipment : this.equipped.values()) - if (equipment.template.item_type.equals(ItemType.ARMOR)) - armor.add(equipment); - - if (armor.isEmpty()) - return; //nothing to damage - - int roll = ThreadLocalRandom.current().nextInt(armor.size()); - damageItem(armor.get(roll), amount); - } - //Damage all equipped gear a random amount between 1 and 5 public void damageAllGear() { for (Item gear : this.equipped.values()) {