summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-04 22:15:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-04 22:15:48 +0300
commit5c30a24b51538c8a0656977caeeced94277aa5b8 (patch)
tree574a680074cf5f69522b79ef48430d57b8be0787 /src/resources/iteminfo.h
parent146e9182d8c930e62fbcc281615b96c95319a5ea (diff)
downloadmv-5c30a24b51538c8a0656977caeeced94277aa5b8.tar.gz
mv-5c30a24b51538c8a0656977caeeced94277aa5b8.tar.bz2
mv-5c30a24b51538c8a0656977caeeced94277aa5b8.tar.xz
mv-5c30a24b51538c8a0656977caeeced94277aa5b8.zip
Add option to items.xml to set max floor item pixel offset.
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 33727b136..1816b3bf5 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -233,6 +233,12 @@ class ItemInfo
bool isRemoveSprites() const
{ return mIsRemoveSprites; }
+ void setMaxFloorOffset(int i)
+ { maxFloorOffset = i; }
+
+ int getMaxFloorOffset() const
+ { return maxFloorOffset; }
+
bool isRemoveItemId(int id) const;
/** Effects to be shown when weapon attacks - see also effects.xml */
@@ -297,6 +303,7 @@ class ItemInfo
std::string mColorList;
int mHitEffectId;
int mCriticalHitEffectId;
+ int maxFloorOffset;
};
#endif