summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2011-04-11 07:38:35 +0100
committerChris Campbell <chriscampbell89@gmail.com>2011-04-11 07:38:35 +0100
commit3cbde79cb4f6f835291ed4f5deaab5d130e0e5a0 (patch)
treefb0511456c73950abe619c9753487738a57d29a6 /crawl-ref/source/notes.cc
parent07159ce1c851071f054a5738398bd1066b09eb95 (diff)
downloadcrawl-ref-3cbde79cb4f6f835291ed4f5deaab5d130e0e5a0.tar.gz
crawl-ref-3cbde79cb4f6f835291ed4f5deaab5d130e0e5a0.zip
Add notes when Beogh names an ally, and when named allies die
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index fcf9b91f09..3a189301f7 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -124,7 +124,9 @@ static bool _is_noteworthy(const Note& note)
|| note.type == NOTE_DEATH
|| note.type == NOTE_XOM_REVIVAL
|| note.type == NOTE_SEEN_FEAT
- || note.type == NOTE_PARALYSIS)
+ || note.type == NOTE_PARALYSIS
+ || note.type == NOTE_NAMED_ALLY
+ || note.type == NOTE_ALLY_DEATH)
{
return (true);
}
@@ -396,6 +398,12 @@ std::string Note::describe(bool when, bool where, bool what) const
case NOTE_PARALYSIS:
result << "Paralysed by " << name << " for " << first << " turns";
break;
+ case NOTE_NAMED_ALLY:
+ result << "Gained " << name << " as an ally";
+ break;
+ case NOTE_ALLY_DEATH:
+ result << "Your ally " << name << " died";
+ break;
default:
result << "Buggy note description: unknown note type";
break;