diff options
author | Neil Moore <neil@s-z.org> | 2013-01-03 22:17:12 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-01-03 22:17:12 -0500 |
commit | 3cb3d9b6fae3addb32a541cb65adb027a62c9353 (patch) | |
tree | 4d8cca09dc917025c4185f3cc5526bc70608dc9b /crawl-ref/source/skills2.cc | |
parent | 176c44117680ea419281bbba13d4bac3253b70c8 (diff) | |
download | crawl-ref-3cb3d9b6fae3addb32a541cb65adb027a62c9353.tar.gz crawl-ref-3cb3d9b6fae3addb32a541cb65adb027a62c9353.zip |
Display proper Invo title in high score menu (#6489).
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index ec4ecbcd0e..5277fde1bd 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -290,7 +290,7 @@ unsigned get_skill_rank(unsigned skill_lev) } string skill_title_by_rank(skill_type best_skill, uint8_t skill_rank, - int species, int str, int dex, int god) + int species, int str, int dex, int god, int piety) { // paranoia if (is_invalid_skill(best_skill)) @@ -333,7 +333,7 @@ string skill_title_by_rank(skill_type best_skill, uint8_t skill_rank, case SK_INVOCATIONS: if (god != GOD_NO_GOD) - result = god_title((god_type)god, (species_type)species); + result = god_title((god_type)god, (species_type)species, piety); break; case SK_BOWS: @@ -373,9 +373,10 @@ string skill_title_by_rank(skill_type best_skill, uint8_t skill_rank, } string skill_title(skill_type best_skill, uint8_t skill_lev, - int species, int str, int dex, int god) + int species, int str, int dex, int god, int piety) { - return skill_title_by_rank(best_skill, get_skill_rank(skill_lev), species, str, dex, god); + return skill_title_by_rank(best_skill, get_skill_rank(skill_lev), + species, str, dex, god, piety); } string player_title() |