|
|
|
@ -37,8 +37,8 @@ public class ItemBase {
@@ -37,8 +37,8 @@ public class ItemBase {
|
|
|
|
|
private static final HashMap<String, Integer> _IDsByNames = new HashMap<>(); |
|
|
|
|
private static final ArrayList<ItemBase> _resourceList = new ArrayList<>(); |
|
|
|
|
private final int uuid; |
|
|
|
|
private String name; |
|
|
|
|
//requirements/restrictions
|
|
|
|
|
// private String name;
|
|
|
|
|
//requirements/restrictions
|
|
|
|
|
public EnumSet<Enum.MonsterType> restrictedRaces; |
|
|
|
|
public EnumSet<Enum.MonsterType> requiredRaces; |
|
|
|
|
public EnumSet<Enum.ClassType> restrictedClasses; |
|
|
|
@ -179,7 +179,9 @@ public class ItemBase {
@@ -179,7 +179,9 @@ public class ItemBase {
|
|
|
|
|
if (itemBase.type.equals(ItemType.RESOURCE)) |
|
|
|
|
_resourceList.add(itemBase); |
|
|
|
|
|
|
|
|
|
_IDsByNames.put(itemBase.name.toLowerCase().replace(" ", "_"), itemBase.uuid); |
|
|
|
|
ItemTemplate template = ItemTemplate.itemTemplates.get(itemBase.uuid); |
|
|
|
|
|
|
|
|
|
_IDsByNames.put(template.item_base_name.toLowerCase().replace(" ", "_"), itemBase.uuid); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static HashMap<Integer, Integer> getItemHashIDMap() { |
|
|
|
@ -254,9 +256,6 @@ public class ItemBase {
@@ -254,9 +256,6 @@ public class ItemBase {
|
|
|
|
|
/* |
|
|
|
|
* Getters |
|
|
|
|
*/ |
|
|
|
|
public String getName() { |
|
|
|
|
return this.name; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public float getDurability() { |
|
|
|
|
return this.durability; |
|
|
|
|