summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-16 21:40:25 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-06-16 21:40:25 +0000
commit9b278c2718598157c9323e8ed59625f2f504627b (patch)
tree48ddf67a0516382ea54c47654807911194308224 /crawl-ref/source/view.cc
parent6f2c213a4b1900447cea9f24a0568518a47c33e5 (diff)
downloadcrawl-ref-9b278c2718598157c9323e8ed59625f2f504627b.tar.gz
crawl-ref-9b278c2718598157c9323e8ed59625f2f504627b.zip
* Call viewwindow after placing an autoexclusion.
* Fix monsters "bursting forth from the realm of bugdom". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9991 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index ce044ab293..904cbe3539 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -1198,7 +1198,15 @@ void handle_monster_shouts(monsters* monster, bool force)
if (you.can_see(monster))
{
- monster->seen_context = "bursts forth shouting";
+ if (monster->type == MONS_AIR_ELEMENTAL)
+ monster->seen_context = "thin air";
+ else if (monster->type == MONS_TRAPDOOR_SPIDER)
+ monster->seen_context = "leaps out";
+ else if (!monster_habitable_grid(monster, DNGN_FLOOR))
+ monster->seen_context = "bursts forth shouting";
+ else
+ monster->seen_context = "surfaces";
+
// Give interrupt message before shout message.
handle_seen_interrupt(monster);
}