From 1b94af7d48228ba637b4b0648ff7adabe521c2c5 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 15 Jan 2009 09:21:50 +0000 Subject: * Clean up duration handling some more. * Fix Xom confusing unconfusable monsters (plants!) - Xom may be Xom but even he has to follow some rules. * Add a message for shortlasting durations when cast since they miss out on the "transformation about to time out" message. * Add Eino's description for Death's Door. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8459 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/mutation.cc | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/mutation.cc') diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index ff31ad660b..cf14fe0572 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -1218,15 +1218,23 @@ formatted_string describe_mutations() break; case SP_VAMPIRE: + have_any = true; if (you.hunger_state == HS_STARVING) result += "You do not heal." EOL; + else if (you.hunger_state == HS_ENGORGED) + result += "Your natural rate of healing is extremely fast." EOL; else if (you.hunger_state <= HS_HUNGRY) result += "You heal slowly." EOL; else if (you.hunger_state >= HS_FULL) result += "Your natural rate of healing is unusually fast." EOL; - else if (you.hunger_state == HS_ENGORGED) - result += "Your natural rate of healing is extremely fast." EOL; - have_any = true; + else + have_any = false; + + if (you.experience_level >= 6) + { + result += "You can bottle blood from corpses with 'c'." EOL; + have_any = true; + } break; default: @@ -1257,17 +1265,17 @@ formatted_string describe_mutations() textcolor(LIGHTGREY); - // first add (non-removable) inborn abilities and demon powers + // First add (non-removable) inborn abilities and demon powers. for (int i = 0; i < NUM_MUTATIONS; i++) { - // mutation is actually a demonic power + // Mutation is actually a demonic power. if (you.mutation[i] != 0 && you.demon_pow[i]) { mutation_type mut_type = static_cast(i); have_any = true; - // these are already handled above: + // These are already handled above: if (you.species == SP_NAGA && (i == MUT_BREATHE_POISON || i == MUT_FAST || i == MUT_DEFORMED)) @@ -1288,13 +1296,13 @@ formatted_string describe_mutations() fully_inactive = _mutation_is_fully_inactive(mut_type); const char* colourname = ""; - if ( you.species == SP_DEMONSPAWN ) + if (you.species == SP_DEMONSPAWN) { if (fully_inactive) colourname = "darkgrey"; else if (!fully_active) colourname = "yellow"; - else if ( you.demon_pow[i] < you.mutation[i] ) + else if (you.demon_pow[i] < you.mutation[i]) colourname = "lightred"; else colourname = "red"; @@ -1305,7 +1313,7 @@ formatted_string describe_mutations() colourname = "darkgrey"; else if (!fully_active) colourname = "blue"; - else if ( you.demon_pow[i] < you.mutation[i] ) + else if (you.demon_pow[i] < you.mutation[i]) colourname = "cyan"; else colourname = "lightblue"; -- cgit v1.2.3-54-g00ecf