diff --git a/src/engine/objects/ItemBase.java b/src/engine/objects/ItemBase.java index c2833448..6692525c 100644 --- a/src/engine/objects/ItemBase.java +++ b/src/engine/objects/ItemBase.java @@ -23,11 +23,8 @@ public class ItemBase { public static ItemBase GOLD_ITEM_BASE = null; public static HashMap _itemBaseByUUID = new HashMap<>(); - private static final HashMap itemHashIDMap = new HashMap<>(); - private static final HashMap _IDsByNames = new HashMap<>(); - private static final ArrayList _resourceList = new ArrayList<>(); - public final int uuid; + public final int uuid; private final int modTable; private final short percentRequired; private final short defense; @@ -67,15 +64,10 @@ public class ItemBase { _itemBaseByUUID.put(itemBase.uuid, itemBase); - if (ItemTemplate.templates.get(itemBase.uuid).item_type.equals(ItemType.RESOURCE)) - _resourceList.add(itemBase); - ItemTemplate template = ItemTemplate.templates.get(itemBase.uuid); if (template == null) Logger.error("Null template for: " + itemBase.uuid); - else - _IDsByNames.put(template.item_base_name.toLowerCase().replace(" ", "_"), itemBase.uuid); } public static ItemBase getItemBase(int uuid) {