diff options
author | Haru <haru@dotalux.com> | 2013-09-19 17:12:27 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-09-19 17:12:27 +0200 |
commit | 556834d0508101b70660c5904b24adacacced3e0 (patch) | |
tree | ab9e552032ae4d9bccd8a2d66b6d0a388015098b /src/map/clif.h | |
parent | 257fd1a8f0aa0b26aa8331b390315567344f4e2b (diff) | |
download | hercules-556834d0508101b70660c5904b24adacacced3e0.tar.gz hercules-556834d0508101b70660c5904b24adacacced3e0.tar.bz2 hercules-556834d0508101b70660c5904b24adacacced3e0.tar.xz hercules-556834d0508101b70660c5904b24adacacced3e0.zip |
Cleaned up and de-duplicated ranklist-related code
Follow-up to 6cf032d. Special thanks to Ind.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.h')
-rw-r--r-- | src/map/clif.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/map/clif.h b/src/map/clif.h index b364765e5..4559e4209 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -339,13 +339,6 @@ typedef enum useskill_fail_cause { // clif_skill_fail USESKILL_FAIL_THERE_ARE_NPC_AROUND = 83, }useskill_fail_cause; -enum rank_type { - RANKTYPE_BLACKSMITH = 0, - RANKTYPE_ALCHEMIST = 1, - RANKTYPE_TAEKWON = 2, - RANKTYPE_PK = 3 //Not supported yet -}; - enum clif_messages { SKILL_CANT_USE_AREA = 0x536, ITEM_CANT_USE_AREA = 0x537, @@ -604,9 +597,9 @@ struct clif_interface { void (*fame_blacksmith) (struct map_session_data *sd, int points); void (*fame_alchemist) (struct map_session_data *sd, int points); void (*fame_taekwon) (struct map_session_data *sd, int points); - void (*ranklist) (struct map_session_data *sd, int16 rankingType); - void (*update_rankingpoint) (struct map_session_data *sd, int16 rankingtype, int point); - void (*parse_ranklist) (int fd,struct map_session_data *sd); + void (*ranklist) (struct map_session_data *sd, enum fame_list_type type); + void (*update_rankingpoint) (struct map_session_data *sd, enum fame_list_type type, int points); + void (*pRanklist) (int fd, struct map_session_data *sd); void (*hotkeys) (struct map_session_data *sd); int (*insight) (struct block_list *bl,va_list ap); int (*outsight) (struct block_list *bl,va_list ap); |