summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-01-10 15:45:25 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-01-10 15:45:25 +0000
commit9c9c105cd26a0b8349cd529c31c2a0800da697ce (patch)
tree2e317e6063693574d484b63cbb6fc2b81d05fde7 /src/resources/iteminfo.h
parenta94476cd4ea9895949ddc2f8a70f6cf29b08bd2d (diff)
downloadmana-9c9c105cd26a0b8349cd529c31c2a0800da697ce.tar.gz
mana-9c9c105cd26a0b8349cd529c31c2a0800da697ce.tar.bz2
mana-9c9c105cd26a0b8349cd529c31c2a0800da697ce.tar.xz
mana-9c9c105cd26a0b8349cd529c31c2a0800da697ce.zip
Item types and weapon types are now identified by name instead of numbers in the items.xml. Removed entries for eAthena compatiblity from items.xml (the database isn't eAthena compatible anymore), added item type and weapon-type properties to all items. All healing items now have a healing effect.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h43
1 files changed, 42 insertions, 1 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 680c8d61..c637b010 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -37,6 +37,47 @@ enum EquipmentSoundEvent
};
/**
+ * Enumeration of available Item types.
+ */
+enum ItemType
+{
+ ITEM_UNUSABLE = 0,
+ ITEM_USABLE, // 1
+ ITEM_EQUIPMENT_ONE_HAND_WEAPON, // 2
+ ITEM_EQUIPMENT_TWO_HANDS_WEAPON,// 3
+ ITEM_EQUIPMENT_TORSO,// 4
+ ITEM_EQUIPMENT_ARMS,// 5
+ ITEM_EQUIPMENT_HEAD,// 6
+ ITEM_EQUIPMENT_LEGS,// 7
+ ITEM_EQUIPMENT_SHIELD,// 8
+ ITEM_EQUIPMENT_RING,// 9
+ ITEM_EQUIPMENT_NECKLACE,// 10
+ ITEM_EQUIPMENT_FEET,// 11
+ ITEM_EQUIPMENT_AMMO// 12
+};
+
+/**
+ * Enumeration of available weapon's types.
+ */
+enum WeaponType
+{
+ WPNTYPE_NONE = 0,
+ WPNTYPE_KNIFE,// 1
+ WPNTYPE_SWORD,// 2
+ WPNTYPE_POLEARM,// 3
+ WPNTYPE_JAVELIN,// 4
+ WPNTYPE_STAFF,// 5
+ WPNTYPE_WHIP,// 6
+ WPNTYPE_BOOMERANG,// 7
+ WPNTYPE_BOW,// 8
+ WPNTYPE_SICKLE,// 9
+ WPNTYPE_CROSSBOW,// 10
+ WPNTYPE_MACE,// 11
+ WPNTYPE_AXE,// 12
+ WPNTYPE_THROWN// 13
+};
+
+/**
* Defines a class for storing item infos. This includes information used when
* the item is equipped.
*/
@@ -47,7 +88,7 @@ class ItemInfo
* Constructor.
*/
ItemInfo():
- mType(0),
+ mType(ITEM_UNUSABLE),
mWeight(0),
mView(0),
mAttackType(ACTION_DEFAULT)