diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-16 17:39:50 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-16 20:24:22 -0700 |
commit | f74bb73639c84ddaac5cee442cb169e6cc6eb89c (patch) | |
tree | 934f511beacff5178ec1230ff5ed3ef754528f8f /crawl-ref/source/hiscores.cc | |
parent | 307182f3a50d96af8ead8e9b5135e2e5e232ebaf (diff) | |
download | crawl-ref-f74bb73639c84ddaac5cee442cb169e6cc6eb89c.tar.gz crawl-ref-f74bb73639c84ddaac5cee442cb169e6cc6eb89c.zip |
Pull some functions into species.cc
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index 9ce4f08ac7..6e503f95d4 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -1897,11 +1897,6 @@ string scorefile_entry::death_place(death_desc_verbosity verbosity) const return place; } -static bool _species_is_undead(int sp) -{ - return sp == SP_MUMMY || sp == SP_GHOUL || sp == SP_VAMPIRE; -} - /** * Describes the cause of the player's death. * @@ -2113,7 +2108,7 @@ string scorefile_entry::death_description(death_desc_verbosity verbosity) const case KILLED_BY_STUPIDITY: if (terse) desc += "stupidity"; - else if (_species_is_undead(race) || race == SP_GREY_DRACONIAN || race == SP_GARGOYLE) + else if (species_is_unbreathing(race)) desc += "Forgot to exist"; else desc += "Forgot to breathe"; @@ -2146,7 +2141,7 @@ string scorefile_entry::death_description(death_desc_verbosity verbosity) const { if (num_runes > 0) desc += "Got out of the dungeon"; - else if (_species_is_undead(race)) + else if (species_is_undead(race)) desc += "Safely got out of the dungeon"; else desc += "Got out of the dungeon alive"; |