summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-12-03 04:45:12 +0100
committerHaru <haru@dotalux.com>2016-12-03 15:38:57 +0100
commita222f21b459eb6abc0862695526c1d15361a99e0 (patch)
tree52e1732a43ebd4dedca7aa2a9ccaf76add58f0c2 /src/map/pc.h
parent8a9e589446058b33972aff2c054f8c300b3fd1b7 (diff)
downloadhercules-a222f21b459eb6abc0862695526c1d15361a99e0.tar.gz
hercules-a222f21b459eb6abc0862695526c1d15361a99e0.tar.bz2
hercules-a222f21b459eb6abc0862695526c1d15361a99e0.tar.xz
hercules-a222f21b459eb6abc0862695526c1d15361a99e0.zip
Add function to retrieve the appropriate fame list type for a job mapid
This commit adds the function `pc->famelist_type()` to retrieve the appropriate fame list for a given job (common operation). When the given job ID doesn't have an appropriate fame list, the newly introduced value RANKTYPE_UNKNOWN is returned. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 5c9bec9f6..0e4f1affd 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -1005,6 +1005,7 @@ END_ZEROED_BLOCK; /* End */
int (*getmaxspiritball) (struct map_session_data *sd, int min);
void (*addfame) (struct map_session_data *sd, int ranktype, int count);
int (*fame_rank) (int char_id, int ranktype);
+ int (*famelist_type) (uint16 job_mapid);
int (*set_hate_mob) (struct map_session_data *sd, int pos, struct block_list *bl);
int (*readdb) (void);