diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-02-27 15:16:00 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-02-27 15:16:00 +0100 |
commit | 7559ce0810fadc0080761caf97267eddd753790c (patch) | |
tree | a38d4f0be8b24410d7cd017e1a7d5391c3419e39 /crawl-ref/source/notes.cc | |
parent | 910341321a0fd25aa2defdd70884b56bd7f988cb (diff) | |
download | crawl-ref-7559ce0810fadc0080761caf97267eddd753790c.tar.gz crawl-ref-7559ce0810fadc0080761caf97267eddd753790c.zip |
Record the cause of mutations.
Mutation descriptions end with a hardcoded dot, which makes the notes look
weird. Should we chomp the dot manually?
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r-- | crawl-ref/source/notes.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc index b85ab00dee..67da69d658 100644 --- a/crawl-ref/source/notes.cc +++ b/crawl-ref/source/notes.cc @@ -368,11 +368,15 @@ std::string Note::describe(bool when, bool where, bool what) const result << "Gained mutation: " << mutation_name(static_cast<mutation_type>(first), second == 0 ? 1 : second); + if (!name.empty()) + result << " [" << name << "]"; break; case NOTE_LOSE_MUTATION: result << "Lost mutation: " << mutation_name(static_cast<mutation_type>(first), second == 3 ? 3 : second+1); + if (!name.empty()) + result << " [" << name << "]"; break; case NOTE_DEATH: result << name; |