summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/delay.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 05:08:00 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-26 05:08:00 +0000
commitd4acdf4a6a4b73607d58714a66efd372674adb56 (patch)
tree0674f15a236561657ea9876df0f9b29d29fc7035 /crawl-ref/source/delay.cc
parentc84df3ee899f8355c596e84598896e04d3384d84 (diff)
downloadcrawl-ref-d4acdf4a6a4b73607d58714a66efd372674adb56.tar.gz
crawl-ref-d4acdf4a6a4b73607d58714a66efd372674adb56.zip
If a visible monster interupts a delay by opening a door then say that
it opens the door rather than "comes into view". If a visible monster opens a door when the player isn't delayed then give a message about it. Include secret doors in multi-door gates when a monster opens a door. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6145 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r--crawl-ref/source/delay.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc
index eb9393d4f4..905bf00048 100644
--- a/crawl-ref/source/delay.cc
+++ b/crawl-ref/source/delay.cc
@@ -1654,7 +1654,9 @@ inline static void _monster_warning(activity_interrupt_type ai,
if (!(mon->mname).empty() && mon->type != MONS_PLAYER_GHOST)
text += " the " + mon->name(DESC_BASENAME);
- if (at.context == "thin air")
+ if (starts_with(at.context, "open"))
+ text += " " + at.context;
+ else if (at.context == "thin air")
{
if (mon->type == MONS_AIR_ELEMENTAL)
text += " forms itself from the air.";