summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-01-14 00:42:29 +0300
committerAndrei Karas <akaras@inbox.ru>2020-02-09 21:30:37 +0300
commit92bcd85116ff374bca68e77ac1dd68ba29bf61e2 (patch)
treef0fa5760fe758cedc8f72c0f967a2112972507b8
parent3d9ee62e21d538a739ad773640a6e05e97991d58 (diff)
downloadhercules-92bcd85116ff374bca68e77ac1dd68ba29bf61e2.tar.gz
hercules-92bcd85116ff374bca68e77ac1dd68ba29bf61e2.tar.bz2
hercules-92bcd85116ff374bca68e77ac1dd68ba29bf61e2.tar.xz
hercules-92bcd85116ff374bca68e77ac1dd68ba29bf61e2.zip
Add expanded barter shop constant
-rw-r--r--src/map/npc.h1
-rw-r--r--src/map/script.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index c5f44f0e0..64c0e37e9 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -48,6 +48,7 @@ enum npc_shop_types {
NST_MARKET, /* official npc market type */
NST_CUSTOM,
NST_BARTER, /* official npc barter type */
+ NST_EXPANDED_BARTER, /* official npc expanded barter type */
/* */
NST_MAX,
};
diff --git a/src/map/script.c b/src/map/script.c
index 26bd678fe..4fb00e8b8 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -27364,6 +27364,7 @@ static void script_hardcoded_constants(void)
script->set_constant("NST_MARKET", NST_MARKET, false, false);
script->set_constant("NST_CUSTOM", NST_CUSTOM, false, false);
script->set_constant("NST_BARTER", NST_BARTER, false, false);
+ script->set_constant("NST_EXPANDED_BARTER", NST_EXPANDED_BARTER, false, false);
script->constdb_comment("script unit data types");
script->set_constant("UDT_TYPE", UDT_TYPE, false, false);