diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-05-18 19:50:01 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-05-18 19:50:01 -0400 |
commit | ddce04797bb75fef9909ccdea3b5818c9a4b6a44 (patch) | |
tree | 81281761570b55341df46881653dc170d109a68a /crawl-ref/source/mutation.cc | |
parent | 19c7863afd63d42bffcfd14290269aa5312ea619 (diff) | |
download | crawl-ref-ddce04797bb75fef9909ccdea3b5818c9a4b6a44.tar.gz crawl-ref-ddce04797bb75fef9909ccdea3b5818c9a4b6a44.zip |
Make cold-bloodedness go away in transformations (#8496).
This was accomplished by using a new mutation, MUT_COLD_BLOODED,
rather than a simple check for race. There's a bit of a hack to get
it to still be greyed out with rC but that's probably better than
the special case based on genus.
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 774c6bcb06..0295aa4539 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -645,7 +645,7 @@ string describe_mutations(bool center_title) num << 4 + you.experience_level / 3 + (you.species == SP_GREY_DRACONIAN ? 5 : 0); - string msg = "Your " + scale_type + " scales are " + const string msg = "Your " + scale_type + " scales are " + (you.species == SP_GREY_DRACONIAN ? "very " : "") + "hard" + " (AC +" + num.str() + ")."; @@ -654,12 +654,6 @@ string describe_mutations(bool center_title) result += "Your body does not fit into most forms of armour.\n"; - msg = "Your cold-blooded metabolism reacts poorly to cold."; - if (player_res_cold(false) <= 0) - result += msg + "\n"; - else - result += "<darkgrey>" + msg + "</darkgrey>\n"; - have_any = true; } @@ -2165,7 +2159,7 @@ string mutation_desc(mutation_type mut, int level, bool colour) const bool demonspawn = (you.species == SP_DEMONSPAWN); const bool extra = (you.mutation[mut] > you.innate_mutation[mut]); - if (fully_inactive) + if (fully_inactive || (mut == MUT_COLD_BLOODED && player_res_cold(false) > 0)) colourname = "darkgrey"; else if (partially_active) colourname = demonspawn ? "yellow" : "blue"; |