summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-05-01 21:00:06 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-05-01 21:01:54 -0300
commitc347ebacd8116b49e0e839abab1be35432ce0446 (patch)
treed2ce9350884fe69fdbdb78d8fa6aa133d007c6e5 /src/map/itemdb.h
parent7a625b95742b780622482dc5d4de2c6622aac9ae (diff)
downloadhercules-c347ebacd8116b49e0e839abab1be35432ce0446.tar.gz
hercules-c347ebacd8116b49e0e839abab1be35432ce0446.tar.bz2
hercules-c347ebacd8116b49e0e839abab1be35432ce0446.tar.xz
hercules-c347ebacd8116b49e0e839abab1be35432ce0446.zip
Implemented "item_nouse.txt" to prevent players from using items under certain flags (which are pre-determined).
Fixes issue:7064. Thanks to Muad_Dib for providing the item list for this db. Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index 362b42cff..c441de26a 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -68,6 +68,10 @@ enum {
ITEMID_SPECIAL_COOLER,
} mecha_item_list;
+enum {
+ NOUSE_SITTING = 0x01,
+} item_nouse_list;
+
//The only item group required by the code to be known. See const.txt for the full list.
#define IG_FINDINGORE 6
#define IG_POTION 37
@@ -136,6 +140,10 @@ struct item_data {
unsigned int storage:1;
unsigned int guildstorage:1;
} stack;
+ struct {// used by item_nouse.txt
+ unsigned int flag;
+ unsigned short override;
+ } item_usage;
short gm_lv_trade_override; //GM-level to override trade_restriction
/* bugreport:309 */
struct item_combo **combos;