diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-10 15:45:25 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-10 15:45:25 +0000 |
commit | 9c9c105cd26a0b8349cd529c31c2a0800da697ce (patch) | |
tree | 2e317e6063693574d484b63cbb6fc2b81d05fde7 /src/resources/iteminfo.cpp | |
parent | a94476cd4ea9895949ddc2f8a70f6cf29b08bd2d (diff) | |
download | mana-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.cpp')
-rw-r--r-- | src/resources/iteminfo.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index f1ebd0a9..ade7f685 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -45,23 +45,22 @@ ItemInfo::getSprite(int gender) const void ItemInfo::setWeaponType(int type) { - // See server item.hpp file for type values. switch (type) { - case 0: // none + case WPNTYPE_NONE: mAttackType = ACTION_DEFAULT; break; - case 1: // knife - case 2: // sword + case WPNTYPE_KNIFE: + case WPNTYPE_SWORD: mAttackType = ACTION_ATTACK_STAB; break; - case 8: // projectile + case WPNTYPE_THROWN: mAttackType = ACTION_ATTACK_THROW; break; - case 10: // bow + case WPNTYPE_BOW: mAttackType = ACTION_ATTACK_BOW; break; - case 11: // sickle + case WPNTYPE_SICKLE: mAttackType = ACTION_ATTACK_SWING; break; default: |