Unused method removed

combat-2
MagicBot 2024-03-23 19:11:29 -04:00
parent cef2a7c188
commit 6a0599a972
1 changed files with 0 additions and 22 deletions

View File

@ -2371,28 +2371,6 @@ public class CharacterItemManager {
}
//Damage a random piece of armor a specified amount
public void damageRandomArmor(int amount) {
ArrayList<Item> 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()) {