summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorMatt Mills <alpha.dev@gmail.com>2011-05-31 11:39:52 +0100
committerChris Campbell <chriscampbell89@gmail.com>2011-06-04 00:14:07 +0100
commit8bbd354651708cf63845a06b4ee28f6ab0d08582 (patch)
tree715503ca62e1e38fdf52f45e2d3f8651a2d3fd5c /crawl-ref/source/notes.cc
parente57a6fb94e8f9fb334ef96570f06c91f929d8c5d (diff)
downloadcrawl-ref-8bbd354651708cf63845a06b4ee28f6ab0d08582.tar.gz
crawl-ref-8bbd354651708cf63845a06b4ee28f6ab0d08582.zip
Add a note when an interesting monster is banished (fixes #4058).
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index 3a189301f7..9cae0952e1 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -126,7 +126,8 @@ static bool _is_noteworthy(const Note& note)
|| note.type == NOTE_SEEN_FEAT
|| note.type == NOTE_PARALYSIS
|| note.type == NOTE_NAMED_ALLY
- || note.type == NOTE_ALLY_DEATH)
+ || note.type == NOTE_ALLY_DEATH
+ || note.type == NOTE_BANISH_MONSTER)
{
return (true);
}
@@ -404,6 +405,12 @@ std::string Note::describe(bool when, bool where, bool what) const
case NOTE_ALLY_DEATH:
result << "Your ally " << name << " died";
break;
+ case NOTE_BANISH_MONSTER:
+ if (second)
+ result << name << " (ally) was banished";
+ else
+ result << "Banished " << name;
+ break;
default:
result << "Buggy note description: unknown note type";
break;