From 6a0599a97281cab8ae0ba6012fd57911f428d754 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 23 Mar 2024 19:11:29 -0400 Subject: [PATCH] Unused method removed --- src/engine/objects/CharacterItemManager.java | 22 -------------------- 1 file changed, 22 deletions(-) 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()) {