From 20a42ab3e5350fb266a9707ddb65bd240fbc02a7 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 14 Mar 2024 07:37:34 -0400 Subject: [PATCH] isConsumable not used as driven by switch. --- src/engine/objects/ItemBase.java | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/engine/objects/ItemBase.java b/src/engine/objects/ItemBase.java index 8edad6e3..34542771 100644 --- a/src/engine/objects/ItemBase.java +++ b/src/engine/objects/ItemBase.java @@ -39,14 +39,12 @@ public class ItemBase { private final short maxDamage; private final String mastery; private final engine.Enum.SourceType damageType; - private boolean isConsumable; private final boolean isStrBased; public ItemBase(ResultSet rs) throws SQLException { this.uuid = rs.getInt("ID"); this.modTable = rs.getInt("modTable"); - this.isConsumable = false; this.percentRequired = rs.getShort("percentRequired"); this.defense = rs.getShort("defense"); this.dexPenalty = rs.getFloat("dexPenalty"); @@ -63,22 +61,6 @@ public class ItemBase { if (template == null) Logger.error(this.getUUID() + " null template"); - else - switch (ItemTemplate.itemTemplates.get(this.getUUID()).item_type) { - case RUNE: - case SCROLL: - case WAND: - case POTION: - case CHARTER: - case DEED: - case EMPLOYMENTCONTRACT: - case BUCKET: - case REALMCHARTER: - case TREASURE: - case OFFERING: - this.isConsumable = true; - break; - } } @@ -130,10 +112,6 @@ public class ItemBase { DbManager.ItemBaseQueries.LOAD_ALL_ITEMBASES(); } - public boolean isConsumable() { - return this.isConsumable; - } - public boolean isDiscRune() { int ID = uuid; //class, discipline runes