summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-12 04:18:44 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-12 04:18:44 +0200
commit98731375f9a39319cf2c30274f2ee73a139ba4f0 (patch)
tree246fa29893ab465e970c331c07a8ffc8d818929a /src/resources/itemdb.cpp
parent689ff9aa487b706731b02e44d7c3f05d5f2e15fa (diff)
downloadManaVerse-98731375f9a39319cf2c30274f2ee73a139ba4f0.tar.gz
ManaVerse-98731375f9a39319cf2c30274f2ee73a139ba4f0.tar.bz2
ManaVerse-98731375f9a39319cf2c30274f2ee73a139ba4f0.tar.xz
ManaVerse-98731375f9a39319cf2c30274f2ee73a139ba4f0.zip
Add support for items attribute RemoveSprite.
Usefull for example for hiding hair if equiped helmet.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 826912b33..075104516 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -204,6 +204,7 @@ void ItemDB::load()
std::string attackAction = XML::getProperty(node, "attack-action", "");
std::string drawBefore = XML::getProperty(node, "drawBefore", "");
std::string drawAfter = XML::getProperty(node, "drawAfter", "");
+ std::string removeSprite = XML::getProperty(node, "removeSprite", "");
std::string tags[3];
tags[0] = XML::getProperty(node, "tag",
@@ -263,6 +264,7 @@ void ItemDB::load()
itemInfo->setDrawBefore(parseSpriteName(drawBefore));
itemInfo->setDrawAfter(parseSpriteName(drawAfter));
itemInfo->setDrawPriority(drawPriority);
+ itemInfo->setRemoveSprite(parseSpriteName(removeSprite));
std::string effect;
for (int i = 0; i < int(sizeof(fields) / sizeof(fields[0])); ++i)