From a222f21b459eb6abc0862695526c1d15361a99e0 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 3 Dec 2016 04:45:12 +0100 Subject: 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 --- src/map/pc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/pc.h') 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); -- cgit v1.2.3-70-g09d2