summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-22 02:46:55 +0100
committerHaru <haru@dotalux.com>2016-02-24 21:00:33 +0100
commitc1ab5a9db773d399c86eb59a3dded649387480c0 (patch)
tree2dda8a10f9c555c3cbeb29cf99de7f68706f2ba0 /src/map/npc.h
parenta3977169437e507b963a0abc2ede5478cc1be320 (diff)
downloadhercules-c1ab5a9db773d399c86eb59a3dded649387480c0.tar.gz
hercules-c1ab5a9db773d399c86eb59a3dded649387480c0.tar.bz2
hercules-c1ab5a9db773d399c86eb59a3dded649387480c0.tar.xz
hercules-c1ab5a9db773d399c86eb59a3dded649387480c0.zip
Edited npc->cashshop_buylist() to use the new struct itemlist
- The npc-side code no longer depends on the client packet data layout. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index be878933e..2731d51db 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -29,7 +29,9 @@
#include <pcre.h>
+/* Forward declarations */
struct hplugin_data_store;
+struct itemlist; // map/itemdb.h
struct view_data;
enum npc_parse_options {
@@ -230,7 +232,7 @@ struct npc_interface {
int (*click) (struct map_session_data *sd, struct npc_data *nd);
int (*scriptcont) (struct map_session_data *sd, int id, bool closing);
int (*buysellsel) (struct map_session_data *sd, int id, int type);
- int (*cashshop_buylist) (struct map_session_data *sd, int points, int count, unsigned short *item_list);
+ int (*cashshop_buylist) (struct map_session_data *sd, int points, struct itemlist *item_list);
int (*buylist_sub) (struct map_session_data *sd, int n, unsigned short *item_list, struct npc_data *nd);
int (*cashshop_buy) (struct map_session_data *sd, int nameid, int amount, int points);
int (*buylist) (struct map_session_data *sd, int n, unsigned short *item_list);