summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-28 23:41:36 -0700
committerIra Rice <irarice@gmail.com>2009-01-28 23:41:36 -0700
commit5a3c174a53ed90224dc4fc49744c656eb9d358fa (patch)
tree2ce68b58ba1f10d9b54d9f1de168a9a9c78ad5f4 /src/resources/itemdb.cpp
parent0e2a2f39a2137ea1caae96256431c7d35fc2e6ec (diff)
downloadmana-5a3c174a53ed90224dc4fc49744c656eb9d358fa.tar.gz
mana-5a3c174a53ed90224dc4fc49744c656eb9d358fa.tar.bz2
mana-5a3c174a53ed90224dc4fc49744c656eb9d358fa.tar.xz
mana-5a3c174a53ed90224dc4fc49744c656eb9d358fa.zip
Added coloring of item names by type. TODO: Allow this to be
customizable through the color interface so that if someone is colorblind to a certain color and it doesn't show up well, they can change it (or even people who just don't like the default color). Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 384efdf1..752ea38b 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -84,7 +84,7 @@ void ItemDB::load()
logger->log(_("ItemDB: Redefinition of item ID %d"), id);
}
- int type = XML::getProperty(node, "type", 0);
+ std::string type = XML::getProperty(node, "type", "other");
int weight = XML::getProperty(node, "weight", 0);
int view = XML::getProperty(node, "view", 0);
@@ -152,7 +152,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