summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
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/iteminfo.h
parent689ff9aa487b706731b02e44d7c3f05d5f2e15fa (diff)
downloadmv-98731375f9a39319cf2c30274f2ee73a139ba4f0.tar.gz
mv-98731375f9a39319cf2c30274f2ee73a139ba4f0.tar.bz2
mv-98731375f9a39319cf2c30274f2ee73a139ba4f0.tar.xz
mv-98731375f9a39319cf2c30274f2ee73a139ba4f0.zip
Add support for items attribute RemoveSprite.
Usefull for example for hiding hair if equiped helmet.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h7
1 files changed, 7 insertions, 0 deletions
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.