diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-09-12 13:25:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-09-12 13:25:42 -0300 |
commit | 78200eab7c4020db84cab2bcdf57d4ffb86b4947 (patch) | |
tree | 3b338efab128300e35cbee355710ba3fa0e8db2e /src/emap/script.c | |
parent | 5ad77e97ee8079507d0bb8aa061cba2f013c1541 (diff) | |
download | evol-hercules-78200eab7c4020db84cab2bcdf57d4ffb86b4947.tar.gz evol-hercules-78200eab7c4020db84cab2bcdf57d4ffb86b4947.tar.bz2 evol-hercules-78200eab7c4020db84cab2bcdf57d4ffb86b4947.tar.xz evol-hercules-78200eab7c4020db84cab2bcdf57d4ffb86b4947.zip |
add buildin getnpcsubtype() to get nd->subtype
fix an incompatible assignment in buildin getnpcsubtype()
Patch by gumi
Diffstat (limited to 'src/emap/script.c')
-rw-r--r-- | src/emap/script.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emap/script.c b/src/emap/script.c index 236461b..991d8b8 100644 --- a/src/emap/script.c +++ b/src/emap/script.c @@ -88,6 +88,14 @@ void escript_hardcoded_constants_pre(void) { script->constdb_comment("Evol constants"); script->set_constant("MAX_SLOTS", MAX_SLOTS, 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(); } |