summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-05-31 02:55:46 +0200
committerHaru <haru@dotalux.com>2014-05-31 02:55:46 +0200
commit3dccf7e300f9868a98075e1863c88c38d3211f33 (patch)
treef21e1cccc81a5fde15627bbcea45c817599cab06 /src/map/itemdb.h
parentcadd6115604d80158fc532eb23209975cebf334a (diff)
downloadhercules-3dccf7e300f9868a98075e1863c88c38d3211f33.tar.gz
hercules-3dccf7e300f9868a98075e1863c88c38d3211f33.tar.bz2
hercules-3dccf7e300f9868a98075e1863c88c38d3211f33.tar.xz
hercules-3dccf7e300f9868a98075e1863c88c38d3211f33.zip
Added ItemTradeRestriction enum
- To be used in a follow-up item_db.conf edit. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index 12766b288..5aabdc5c2 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -341,6 +341,24 @@ enum item_class_upper {
ITEMUPPER_ALL = 0x3f, // Sum of all the above
};
+/**
+ * Item Trade restrictions
+ */
+enum ItemTradeRestrictions {
+ ITR_NONE = 0x000, ///< No restrictions
+ ITR_NODROP = 0x001, ///< Item can't be dropped
+ ITR_NOTRADE = 0x002, ///< Item can't be traded (nor vended)
+ ITR_PARTNEROVERRIDE = 0x004, ///< Wedded partner can override ITR_NOTRADE restriction
+ ITR_NOSELLTONPC = 0x008, ///< Item can't be sold to NPCs
+ ITR_NOCART = 0x010, ///< Item can't be placed in the cart
+ ITR_NOSTORAGE = 0x020, ///< Item can't be placed in the storage
+ ITR_NOGSTORAGE = 0x040, ///< Item can't be placed in the guild storage
+ ITR_NOMAIL = 0x080, ///< Item can't be attached to mail messages
+ ITR_NOAUCTION = 0x100, ///< Item can't be auctioned
+
+ ITR_ALL = 0x1ff ///< Sum of all the above values
+};
+
struct item_data {
uint16 nameid;
char name[ITEM_NAME_LENGTH],jname[ITEM_NAME_LENGTH];
@@ -380,7 +398,7 @@ struct item_data {
unsigned available : 1;
unsigned no_refine : 1; // [celest]
unsigned delay_consume : 1; // Signifies items that are not consumed immediately upon double-click [Skotlex]
- unsigned trade_restriction : 9; //Item restrictions mask [Skotlex]
+ unsigned trade_restriction : 9; ///< Item restrictions mask (@see enum ItemTradeRestrictions)
unsigned autoequip: 1;
unsigned buyingstore : 1;
unsigned bindonequip : 1;