diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-01 04:51:22 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-01 04:51:22 +0000 |
commit | 4b61cd451f6fc1a417749ccd89cc7fab88de57a0 (patch) | |
tree | eba1369dcb8170f07a23c753acbcfe770ba790cb | |
parent | 308ec1ed6421bb24cfa90127e92f41ad09ae99bd (diff) | |
download | crawl-ref-4b61cd451f6fc1a417749ccd89cc7fab88de57a0.tar.gz crawl-ref-4b61cd451f6fc1a417749ccd89cc7fab88de57a0.zip |
Make character dumps take the extended hunger states, as well as
vampires' differing descriptions of them, into account.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5394 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/source/chardump.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/crawl-ref/source/chardump.cc b/crawl-ref/source/chardump.cc index 1f79d6c513..22198eef94 100644 --- a/crawl-ref/source/chardump.cc +++ b/crawl-ref/source/chardump.cc @@ -1120,11 +1120,16 @@ static void sdump_mutations(dump_params &par) const char *hunger_level(void) { - return ((you.hunger <= 1000) ? "starving" : - (you.hunger <= 2600) ? "hungry" : - (you.hunger < 7000) ? "not hungry" : - (you.hunger < 11000) ? "full" - : "completely stuffed"); + const bool vamp = (you.species == SP_VAMPIRE); + + return ((you.hunger <= 1000) ? (vamp ? "bloodless" : "starving") : + (you.hunger <= 1533) ? (vamp ? "near bloodless" : "near starving") : + (you.hunger <= 2066) ? (vamp ? "very thirsty" : "very hungry") : + (you.hunger <= 2600) ? (vamp ? "thirsty" : "hungry") : + (you.hunger < 7000) ? (vamp ? "not thirsty" : "not hungry") : + (you.hunger < 9000) ? "full" : + (you.hunger < 11000) ? "very full" + : (vamp ? "almost alive" : "completely stuffed")); } static std::string morgue_directory() |