summaryrefslogtreecommitdiff
path: root/src/emap/script.c
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2020-04-26 20:27:54 -0400
committergumi <git@gumi.ca>2020-04-26 20:27:54 -0400
commitb3f44a8e8ef767617c5e09ba689c16aa3c00d448 (patch)
treeb4b1076ca9f5f5cb3f36257de6ea7b6a46520ec4 /src/emap/script.c
parent229ddd2afb47cf2aeeae42f5ce6064d59e69ac42 (diff)
downloadevol-hercules-b3f44a8e8ef767617c5e09ba689c16aa3c00d448.tar.gz
evol-hercules-b3f44a8e8ef767617c5e09ba689c16aa3c00d448.tar.bz2
evol-hercules-b3f44a8e8ef767617c5e09ba689c16aa3c00d448.tar.xz
evol-hercules-b3f44a8e8ef767617c5e09ba689c16aa3c00d448.zip
add buildin getnpcsubtype() to get nd->subtype
Diffstat (limited to 'src/emap/script.c')
-rw-r--r--src/emap/script.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index 9e6add6..eec0df3 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -96,6 +96,13 @@ void escript_hardcoded_constants_pre(void)
script->set_constant("GENDER_FEMALE", GENDER_FEMALE, false, false);
script->set_constant("GENDER_MALE", GENDER_MALE, false, false);
script->set_constant("GENDER_HIDDEN", GENDER_HIDDEN, false, false);
+
+ // npc subtypes
+ script->set_constant("NPCSUBTYPE_WARP", WARP, false, false);
+ script->set_constant("NPCSUBTYPE_SHOP", SHOP, false, false);
+ script->set_constant("NPCSUBTYPE_SCRIPT", SCRIPT, false, false);
+ script->set_constant("NPCSUBTYPE_CASHSHOP", CASHSHOP, false, false);
+ script->set_constant("NPCSUBTYPE_TOMB", TOMB, false, false);
script->constdb_comment(NULL);
eskill_addskill_conststants();
}