summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-16 07:08:28 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-16 07:08:28 +0000
commit72d9609baca7cbbd5a393e1da9707f1dfd42bdf5 (patch)
tree7bbd5635360a189592c81ec4bc414a14d60fd175 /crawl-ref/source/delay.cc
parent96f8635d8d1267198304f1aab7ef4275cf8e4852 (diff)
downloadcrawl-ref-72d9609baca7cbbd5a393e1da9707f1dfd42bdf5.tar.gz
crawl-ref-72d9609baca7cbbd5a393e1da9707f1dfd42bdf5.zip
Added new field seen_context to the monsters class, which can be set
to cause a non-standard context to be passed to interrupt_activity( AI_SEE_MONSTER ) if it is called before the current turn is over. If a submerged monster surfaces in order to shout, it has to wait one turn before being able to submerge again. Added back in a scroll named "forgetfullness", but rather than giving amnesia about the map it gives amnesia about non-equipped inventory items. I tried to make the effects annoying rather than serious. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2481 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index c9de8e7d4e..4506a1e7f9 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -1115,7 +1115,7 @@ inline static void monster_warning(activity_interrupt_type ai,
}
else if (at.context == "surfaces")
text += " surfaces.";
- else if (at.context == "bursts forth")
+ else if (at.context.find("bursts forth") != std::string::npos)
text += " bursts forth from the water.";
else
text += " comes into view.";