diff options
author | Neil Moore <neil@s-z.org> | 2014-07-31 19:40:36 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-31 19:40:36 -0400 |
commit | 759c9e49c03e1462ebcf75ebfe0503563b575913 (patch) | |
tree | c627f7701b07876a5abc512e90b78e238094c101 /crawl-ref/source/mutation.cc | |
parent | aec5098ce35c6f07899d998b2f74934972640e4e (diff) | |
download | crawl-ref-759c9e49c03e1462ebcf75ebfe0503563b575913.tar.gz crawl-ref-759c9e49c03e1462ebcf75ebfe0503563b575913.zip |
Improve innate mutation override messaging (#7324)
Give a message whenever we make permanent any level of a temporary
mutation, not just the last one.
Diffstat (limited to 'crawl-ref/source/mutation.cc')
-rw-r--r-- | crawl-ref/source/mutation.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/mutation.cc b/crawl-ref/source/mutation.cc index 62c46cdd92..0d1a2e28dc 100644 --- a/crawl-ref/source/mutation.cc +++ b/crawl-ref/source/mutation.cc @@ -2327,15 +2327,12 @@ bool perma_mutate(mutation_type which_mut, int how_much, const string &reason) while (how_much-- > 0) { dprf("Perma Mutate: %d, %d, %d", cap, you.mutation[which_mut], you.innate_mutation[which_mut]); - if (you.mutation[which_mut] == cap - && you.innate_mutation[which_mut] > 0 - && you.innate_mutation[which_mut] == cap-1) + if (you.mutation[which_mut] == cap && how_much == 0) { // [rpb] primarily for demonspawn, if the mutation level is already - // at the cap for this facet, the innate mutation level is greater - // than zero, and the innate mutation level for the mutation - // in question is one less than the cap, we are permafying a - // temporary mutation. This fails to produce any output normally. + // at the cap for this facet, we are permafying a temporary + // mutation. This would otherwise fail to produce any output in + // some situations. mprf(MSGCH_MUTATION, "Your mutations feel more permanent."); take_note(Note(NOTE_PERM_MUTATION, which_mut, you.mutation[which_mut], reason.c_str())); |