From 5c30a24b51538c8a0656977caeeced94277aa5b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Jul 2012 22:15:48 +0300 Subject: Add option to items.xml to set max floor item pixel offset. --- src/resources/iteminfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/iteminfo.h') 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 -- cgit v1.2.3-60-g2f50