diff options
author | Haru <haru@dotalux.com> | 2016-12-03 04:45:12 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-12-03 15:38:57 +0100 |
commit | a222f21b459eb6abc0862695526c1d15361a99e0 (patch) | |
tree | 52e1732a43ebd4dedca7aa2a9ccaf76add58f0c2 /src/common | |
parent | 8a9e589446058b33972aff2c054f8c300b3fd1b7 (diff) | |
download | hercules-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/common')
-rw-r--r-- | src/common/mmo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h index 6b886aa41..9c29b8a0e 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -779,6 +779,7 @@ struct fame_list { }; enum fame_list_type { + RANKTYPE_UNKNOWN = -1, RANKTYPE_BLACKSMITH = 0, RANKTYPE_ALCHEMIST = 1, RANKTYPE_TAEKWON = 2, |