diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-26 11:38:12 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-26 11:38:12 -0700 |
commit | a1d19e32e1206e406409ca68db6f344535e16519 (patch) | |
tree | a9502376d859148a892b24ed8fa67990f1ac8a12 /src/resources/itemdb.cpp | |
parent | 7a618a7f4f7c2efe2a6973cc37bc8283025e4782 (diff) | |
download | mana-a1d19e32e1206e406409ca68db6f344535e16519.tar.gz mana-a1d19e32e1206e406409ca68db6f344535e16519.tar.bz2 mana-a1d19e32e1206e406409ca68db6f344535e16519.tar.xz mana-a1d19e32e1206e406409ca68db6f344535e16519.zip |
Modified item popups to show the weight of the item as well. TODO:
modify itemdb to pull the item weight information from the server
instead of the client, so as to always have the server and client in
sync.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index c32c3459..773febd7 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -84,7 +84,7 @@ void ItemDB::load() } int type = XML::getProperty(node, "type", 0); - //int weight = XML::getProperty(node, "weight", 0); + int weight = XML::getProperty(node, "weight", 0); int view = XML::getProperty(node, "view", 0); std::string name = XML::getProperty(node, "name", ""); @@ -103,7 +103,7 @@ void ItemDB::load() itemInfo->setEffect(effect); itemInfo->setType(type); itemInfo->setView(view); - //itemInfo->setWeight(weight); + itemInfo->setWeight(weight); itemInfo->setWeaponType(weaponType); for_each_xml_child_node(itemChild, node) @@ -158,7 +158,7 @@ void ItemDB::load() CHECK_PARAM(description, ""); // CHECK_PARAM(effect, ""); // CHECK_PARAM(type, 0); - // CHECK_PARAM(weight, 0); + CHECK_PARAM(weight, 0); // CHECK_PARAM(slot, 0); #undef CHECK_PARAM |