Skip to content
Browse files

Add constant types to know which equipment type is which

  • Loading branch information...
1 parent 1885d2f commit 391efd655ee4cbe784b1a97bd4b59023cb45be34 @nhydock committed May 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/item/Item.java
View
4 src/item/Item.java
@@ -45,6 +45,9 @@ public boolean accept(File f, String s) {
add(s);
}
};
+ public static final int WEAPON_TYPE = 0;
+ public static final int ARMOR_TYPE = 1;
+ public static final int ACCESSORY_TYPE = 2;
private static HashMap<String, Item> cache = new HashMap<String, Item>();
@@ -153,7 +156,6 @@ public static Item loadItem(String s)
public Item(String s)
{
name = s;
- this.isEquipment = isEquipment;
Preferences p;
try {

0 comments on commit 391efd6

Please sign in to comment.
Something went wrong with that request. Please try again.