summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-16 22:19:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-16 22:22:11 +0300
commitae51c95555884dc5aba64c76648eeeb9a2bbb0c3 (patch)
tree4296036e12f5ee9067b17c6e5a8114d006480b9f /src/resources/db
parentc77971cb8dc2fcb4613f58d863e184d23a762519 (diff)
downloadmanaverse-ae51c95555884dc5aba64c76648eeeb9a2bbb0c3.tar.gz
manaverse-ae51c95555884dc5aba64c76648eeeb9a2bbb0c3.tar.bz2
manaverse-ae51c95555884dc5aba64c76648eeeb9a2bbb0c3.tar.xz
manaverse-ae51c95555884dc5aba64c76648eeeb9a2bbb0c3.zip
Add attribute cardColor to items in items.xml.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/itemdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 9cd687768..2f593e551 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -299,6 +299,7 @@ void ItemDB::loadXmlFile(const std::string &fileName, int &tagNum)
const std::string typeStr = XML::getProperty(node, "type", "other");
const int weight = XML::getProperty(node, "weight", 0);
const int view = XML::getProperty(node, "view", 0);
+ const int cardColor = XML::getProperty(node, "cardColor", -1);
std::string name = XML::langProperty(node, "name", "");
std::string image = XML::getProperty(node, "image", "");
@@ -366,6 +367,8 @@ void ItemDB::loadXmlFile(const std::string &fileName, int &tagNum)
itemInfo->setPet(pet);
itemInfo->setProtected(XML::getBoolProperty(
node, "sellProtected", false));
+ if (cardColor != -1)
+ itemInfo->setCardColor(fromInt(cardColor, ItemColor));
switch (itemInfo->getType())
{