diff options
author | Roderic Morris <roderic@ccs.neu.edu> | 2008-10-25 01:40:36 +0000 |
---|---|---|
committer | Roderic Morris <roderic@ccs.neu.edu> | 2008-10-25 01:40:36 +0000 |
commit | 796c2addfb17b57992d304667248873ee26088dc (patch) | |
tree | 8d3aaab2dd6abbc304eb9f8b70551b210894a7e2 /src/resources/itemdb.cpp | |
parent | f8f3e17f72d1216bacd5aaa975789b0b790068f6 (diff) | |
download | mana-796c2addfb17b57992d304667248873ee26088dc.tar.gz mana-796c2addfb17b57992d304667248873ee26088dc.tar.bz2 mana-796c2addfb17b57992d304667248873ee26088dc.tar.xz mana-796c2addfb17b57992d304667248873ee26088dc.zip |
attack range fixes, highlight monsters in range (by Chuck Miller)
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 0f89f444..306c0e5a 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -135,6 +135,7 @@ void ItemDB::load() std::string image = XML::getProperty(node, "image", ""); std::string description = XML::getProperty(node, "description", ""); int weaponType = weaponTypeFromString(XML::getProperty(node, "weapon-type", "")); + int attackRange = XML::getProperty(node, "attack-range", 0); ItemInfo *itemInfo = new ItemInfo; itemInfo->setImageName(image); @@ -144,6 +145,7 @@ void ItemDB::load() itemInfo->setView(view); itemInfo->setWeight(weight); itemInfo->setWeaponType(weaponType); + itemInfo->setAttackRange(attackRange); std::string effect; for (int i = 0; i < int(sizeof(fields) / sizeof(fields[0])); ++i) |