From 5f0677d6557689e1d6dc9ab5da65a9e407e31b97 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 31 May 2014 03:00:34 +0200 Subject: Added ItemNouseRestriction enum - To be used in a follow-up item_db.conf edit. Signed-off-by: Haru --- src/map/itemdb.h | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/map/itemdb.h') diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 5aabdc5c2..5c1628374 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -319,10 +319,6 @@ enum geneticist_item_list { ITEMID_BLACK_THING_TO_THROW, // 13290 }; -enum item_nouse_list { - NOUSE_SITTING = 0x01, -}; - // enum e_chain_cache { ECC_ORE, @@ -359,6 +355,16 @@ enum ItemTradeRestrictions { ITR_ALL = 0x1ff ///< Sum of all the above values }; +/** + * Iten No-use restrictions + */ +enum ItemNouseRestrictions { + INR_NONE = 0x0, ///< No restrictions + INR_SITTING = 0x1, ///< Item can't be used while sitting + + INR_ALL = 0x1 ///< Sum of all the above values +}; + struct item_data { uint16 nameid; char name[ITEM_NAME_LENGTH],jname[ITEM_NAME_LENGTH]; @@ -398,7 +404,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 (@see enum ItemTradeRestrictions) + unsigned trade_restriction : 9; ///< Item trade restrictions mask (@see enum ItemTradeRestrictions) unsigned autoequip: 1; unsigned buyingstore : 1; unsigned bindonequip : 1; @@ -410,8 +416,8 @@ struct item_data { unsigned int storage:1; unsigned int guildstorage:1; } stack; - struct {// used by item_nouse.txt - unsigned int flag; + struct { + unsigned int flag; ///< Item nouse restriction mask (@see enum ItemNouseRestrictions) unsigned short override; } item_usage; short gm_lv_trade_override; //GM-level to override trade_restriction -- cgit v1.2.3-70-g09d2