summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mutation.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-15 09:21:50 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-15 09:21:50 +0000
commit1b94af7d48228ba637b4b0648ff7adabe521c2c5 (patch)
treef4ba25db86e7d2521f5367beaa1059adeae01ce7 /crawl-ref/source/mutation.cc
parent6e5f05d27bd0f6cc12028f970d79f9fc3d2b6ff9 (diff)
downloadcrawl-ref-1b94af7d48228ba637b4b0648ff7adabe521c2c5.tar.gz
crawl-ref-1b94af7d48228ba637b4b0648ff7adabe521c2c5.zip
* 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
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r--crawl-ref/source/mutation.cc26
1 files changed, 17 insertions, 9 deletions
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 += "<green>You do not heal.</green>" EOL;
+ else if (you.hunger_state == HS_ENGORGED)
+ result += "<green>Your natural rate of healing is extremely fast.</green>" EOL;
else if (you.hunger_state <= HS_HUNGRY)
result += "<green>You heal slowly.</green>" EOL;
else if (you.hunger_state >= HS_FULL)
result += "<green>Your natural rate of healing is unusually fast.</green>" EOL;
- else if (you.hunger_state == HS_ENGORGED)
- result += "<green>Your natural rate of healing is extremely fast.</green>" 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<mutation_type>(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";