From 262fc856ccb0dbc4462aa71cfb7f56d81cd9b03d Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 28 Mar 2009 22:25:51 +0000 Subject: Implement jpeg's suggestion in [2717473]: you'll now get a message like "Your zombified allies stay behind." if you go down stairs with them adjacent. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9564 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/files.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'crawl-ref/source/files.cc') diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index 35f2cbdbd2..b4332c5e73 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -959,6 +959,8 @@ static void _grab_followers() { const bool can_follow = level_type_allows_followers(you.level_type); + int non_stair_using_allies = 0; + // Handle nearby ghosts. for (adjacent_iterator ai; ai; ++ai) { @@ -966,6 +968,9 @@ static void _grab_followers() if (fmenv == NULL) continue; + if (!mons_can_use_stairs(fmenv)) + non_stair_using_allies++; + if (fmenv->type == MONS_PLAYER_GHOST && fmenv->hit_points < fmenv->max_hit_points / 2) { @@ -976,6 +981,15 @@ static void _grab_followers() if (can_follow) { + if (non_stair_using_allies > 0) + { + // XXX: This assumes that the only monsters that are + // incapable of using stairs are zombified. + mprf("Your zombified all%s stay%s behind.", + non_stair_using_allies > 1 ? "ies" : "y", + non_stair_using_allies > 1 ? "" : "s"); + } + memset(travel_point_distance, 0, sizeof(travel_distance_grid_t)); std::vector places[2]; int place_set = 0; -- cgit v1.2.3-54-g00ecf