From d4acdf4a6a4b73607d58714a66efd372674adb56 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 26 Jun 2008 05:08:00 +0000 Subject: 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 --- crawl-ref/source/delay.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/delay.cc') 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."; -- cgit v1.2.3-54-g00ecf