summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index fbab5380..ad9eda01 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -90,8 +90,8 @@ void ItemDB::load()
std::string name = XML::getProperty(node, "name", "");
std::string image = XML::getProperty(node, "image", "");
std::string description = XML::getProperty(node, "description", "");
- //std::string effect = XML::getProperty(node, "effect", ""); // Not used by Aethyra
- //int weaponType = XML::getProperty(node, "weapon_type", 0);
+ std::string effect = XML::getProperty(node, "effect", "");
+ //int weaponType = XML::getProperty(node, "weapon_type", 0);// Not used by Aethyra
if (id)
{
@@ -99,7 +99,7 @@ void ItemDB::load()
itemInfo->setImageName(image);
itemInfo->setName((name == "") ? "Unnamed" : name);
itemInfo->setDescription(description);
- //itemInfo->setEffect(effect);
+ itemInfo->setEffect(effect);
itemInfo->setType(type);
itemInfo->setView(view);
//itemInfo->setWeight(weight);
@@ -127,7 +127,7 @@ void ItemDB::load()
CHECK_PARAM(name, "");
CHECK_PARAM(image, "");
CHECK_PARAM(description, "");
- //CHECK_PARAM(effect, "");
+ // CHECK_PARAM(effect, "");
// CHECK_PARAM(type, 0);
// CHECK_PARAM(weight, 0);
// CHECK_PARAM(slot, 0);