summaryrefslogtreecommitdiff
path: root/src/map/npc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-11-05 18:11:23 +0100
committerGitHub <noreply@github.com>2017-11-05 18:11:23 +0100
commitb236779fd1686d5f486eee3525d3368ac8680661 (patch)
tree1dd52678af736ede65b36b165b2032bac10b2954 /src/map/npc.h
parent41f3237e4537d7105fb47d56b455d31cf33c155c (diff)
parentff898b1d949aac48c9017e89d5f7ba5e18d65870 (diff)
downloadhercules-b236779fd1686d5f486eee3525d3368ac8680661.tar.gz
hercules-b236779fd1686d5f486eee3525d3368ac8680661.tar.bz2
hercules-b236779fd1686d5f486eee3525d3368ac8680661.tar.xz
hercules-b236779fd1686d5f486eee3525d3368ac8680661.zip
Merge pull request #1893 from 4144/npc_viewdata
Allow set equipment and other styles to npcs, use player sprites for npcs.
Diffstat (limited to 'src/map/npc.h')
-rw-r--r--src/map/npc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/npc.h b/src/map/npc.h
index 3bd11d536..8bb38f252 100644
--- a/src/map/npc.h
+++ b/src/map/npc.h
@@ -70,7 +70,7 @@ struct npc_parse;
struct npc_data {
struct block_list bl;
struct unit_data *ud;
- struct view_data *vd;
+ struct view_data vd;
unsigned int option;
struct npc_data *master_nd;
short class_;
@@ -309,6 +309,7 @@ struct npc_interface {
void (*market_delfromsql) (struct npc_data *nd, unsigned short index);
void (*market_delfromsql_sub) (const char *npcname, unsigned short index);
bool (*db_checkid) (const int id);
+ void (*refresh) (struct npc_data* nd);
/**
* For the Secure NPC Timeout option (check config/Secure.h) [RR]
**/