summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/itemdb.cpp2
-rw-r--r--src/resources/iteminfo.h7
2 files changed, 9 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)
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 25a30407a..fe07d016a 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -207,6 +207,12 @@ class ItemInfo
void setDrawPriority(int n)
{ mDrawPriority = n; }
+ int getRemoveSprite() const
+ { return mRemoveSprite; }
+
+ void setRemoveSprite(int n)
+ { mRemoveSprite = n; }
+
std::map<int, int> getTags() const
{ return mTags; }
@@ -226,6 +232,7 @@ class ItemInfo
int mDrawBefore;
int mDrawAfter;
int mDrawPriority;
+ int mRemoveSprite;
// Equipment related members.
/** Attack type, in case of weapon.