Browse Source

Unused junk removed

combat-2
MagicBot 8 months ago
parent
commit
3e71cf4b45
  1. 10
      src/engine/objects/ItemBase.java

10
src/engine/objects/ItemBase.java

@ -23,11 +23,8 @@ public class ItemBase { @@ -23,11 +23,8 @@ public class ItemBase {
public static ItemBase GOLD_ITEM_BASE = null;
public static HashMap<Integer, ItemBase> _itemBaseByUUID = new HashMap<>();
private static final HashMap<Integer, Integer> itemHashIDMap = new HashMap<>();
private static final HashMap<String, Integer> _IDsByNames = new HashMap<>();
private static final ArrayList<ItemBase> _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 { @@ -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) {

Loading…
Cancel
Save