From 4b61cd451f6fc1a417749ccd89cc7fab88de57a0 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sun, 1 Jun 2008 04:51:22 +0000 Subject: 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 --- crawl-ref/source/chardump.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'crawl-ref') 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() -- cgit v1.2.3-54-g00ecf