summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-15 19:00:10 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-15 19:00:10 +0300
commit3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d (patch)
tree45a6fc90339ac63f4af1c282baa5875bf3d890cb /src/resources/iteminfo.h
parentf03dfb3f143ee10329a10d093d6d31c1ab480007 (diff)
downloadmanaplus-3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d.tar.gz
manaplus-3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d.tar.bz2
manaplus-3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d.tar.xz
manaplus-3216d6caf93ebdb24bee3d9a859ea9e562d8ff4d.zip
add item option what can prevent sell item to npc without confirmation.
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 64855bc0a..c1c9f9d27 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -286,6 +286,12 @@ class ItemInfo final
Cursor::Cursor getPickupCursor() const A_WARN_UNUSED
{ return mPickupCursor; }
+ void setProtected(bool b)
+ { mProtected = b; }
+
+ bool isProtected() const
+ { return mProtected; }
+
int mDrawBefore[10];
int mDrawAfter[10];
int mDrawPriority[10];
@@ -331,6 +337,7 @@ class ItemInfo final
int maxFloorOffset;
Cursor::Cursor mPickupCursor;
int mPet;
+ bool mProtected;
};
#endif