diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-18 19:00:38 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-10-18 19:00:38 +0000 |
commit | 54ac35bc5a1484757efeae9b342469b9a00fe2a2 (patch) | |
tree | 73917e6a43f0a90a9f25aaaad24c214c37bf52c4 /src/resources/itemdb.cpp | |
parent | 03b2efa5973db10c3e6366aa0bd2990eee60d8b9 (diff) | |
download | mana-client-54ac35bc5a1484757efeae9b342469b9a00fe2a2.tar.gz mana-client-54ac35bc5a1484757efeae9b342469b9a00fe2a2.tar.bz2 mana-client-54ac35bc5a1484757efeae9b342469b9a00fe2a2.tar.xz mana-client-54ac35bc5a1484757efeae9b342469b9a00fe2a2.zip |
Removed player looks from generic beings. Prevented client termination on missing sprites. Merged weapon-type and attack-type fields for items.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 157e522c..4e978093 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -107,7 +107,7 @@ void ItemDB::load() std::string image = XML::getProperty(node, "image", ""); std::string description = XML::getProperty(node, "description", ""); std::string effect = XML::getProperty(node, "effect", ""); - std::string attackType = XML::getProperty(node, "attacktype", ""); + int weaponType = XML::getProperty(node, "weapon_type", 0); if (id) { @@ -120,7 +120,7 @@ void ItemDB::load() itemInfo->setView(view); itemInfo->setWeight(weight); itemInfo->setSlot(slot); - itemInfo->setAttackType(attackType); + itemInfo->setWeaponType(weaponType); for_each_xml_child_node(itemChild, node) { |