From 6980c82b993fdf77f371b7cbfabd5fb32aeeb6dd Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 30 May 2009 07:02:37 +0000 Subject: Add a message for when a pacified flying monster leaves the level via a shaft trap. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9850 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 2fbe7db993..ab38a6717f 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -3107,8 +3107,8 @@ static int _mons_find_nearest_level_exit(const monsters *mon, static void _mons_indicate_level_exit(const monsters *mon) { const dungeon_feature_type gridc = grd(mon->pos()); + const bool is_shaft = (get_trap_type(mon->pos()) == TRAP_SHAFT); - // All types of stairs. if (is_gate(gridc)) simple_monster_message(mon, " passes through the gate."); else if (is_travelable_stair(gridc)) @@ -3120,6 +3120,8 @@ static void _mons_indicate_level_exit(const monsters *mon) dir == CMD_GO_DOWNSTAIRS ? "goes down" : "takes").c_str()); } + else if (is_shaft && mons_flies(mon)) + simple_monster_message(mon, " goes down the shaft."); } void make_mons_leave_level(monsters *mon) -- cgit v1.2.3-54-g00ecf