summaryrefslogtreecommitdiff
path: root/src/map/script.c
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/script.c
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/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 45c954dc0..46b7ef8f5 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -27864,6 +27864,11 @@ static void script_hardcoded_constants(void)
script->set_constant("PCBLOCK_COMMANDS", PCBLOCK_COMMANDS, false, false);
script->set_constant("PCBLOCK_NPC", PCBLOCK_NPC, false, false);
+ script->constdb_comment("NPC item action constants");
+ script->set_constant("ITEMENABLEDNPC_NONE", ITEMENABLEDNPC_NONE, false, false);
+ script->set_constant("ITEMENABLEDNPC_EQUIP", ITEMENABLEDNPC_EQUIP, false, false);
+ script->set_constant("ITEMENABLEDNPC_CONSUME", ITEMENABLEDNPC_CONSUME, false, false);
+
script->constdb_comment("private airship responds");
script->set_constant("P_AIRSHIP_NONE", P_AIRSHIP_NONE, false, false);
script->set_constant("P_AIRSHIP_RETRY", P_AIRSHIP_RETRY, false, false);