summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-10 03:02:56 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-13 04:53:29 +0200
commita271110b6c53cf268747ab74d1471452909c5272 (patch)
treed1023faba69fcb2506989427257ed64a1b7ed87e /src/map/pc.h
parent944d8489f1bcca93e6b2ff06a159084f064dce12 (diff)
downloadhercules-a271110b6c53cf268747ab74d1471452909c5272.tar.gz
hercules-a271110b6c53cf268747ab74d1471452909c5272.tar.bz2
hercules-a271110b6c53cf268747ab74d1471452909c5272.tar.xz
hercules-a271110b6c53cf268747ab74d1471452909c5272.zip
Extend item_enabled_npc battle flag with option for usable items
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index e560df549..01fd855b7 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -103,6 +103,13 @@ enum pc_checkitem_types {
PCCHECKITEM_GSTORAGE = 0x8
};
+/** Bit flags for allowed item actions while interacting with NPC. **/
+enum item_enabled_npc_flags {
+ ITEMENABLEDNPC_NONE = 0x0, //!< Don't allow any item actions while interacting with NPC.
+ ITEMENABLEDNPC_EQUIP = 0x1, //!< Allow changing equipment while interacting with NPC.
+ ITEMENABLEDNPC_CONSUME = 0x2, //!< Allow consuming usable items while interacting with NPC.
+};
+
struct weapon_data {
int atkmods[3];
BEGIN_ZEROED_BLOCK; // all the variables within this block get zero'ed in each call of status_calc_pc