glass items can only ever take 1 point of damage

This commit is contained in:
2025-02-25 20:07:53 -06:00
parent 1ef18490b5
commit a9ca96bf96
@@ -2448,6 +2448,9 @@ public class CharacterItemManager {
public void damageItem(Item item, int amount) {
if (item == null || amount < 1 || amount > 5)
return;
if(item.getItemBase().isGlass()){
amount = 1;
}
//verify the item is equipped by this player
int slot = item.getEquipSlot();