From 746b402561b6b27625c5c1ac33028da9aa846b18 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 4 Sep 2007 10:41:46 +0000 Subject: More general stuff. - Beogh's water walk ability != swimming - monsters won't throw nets at you if you're already caught - Moved a few more messages into MSGCH_EXAMINE_FILTER. - Added information on new options. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2051 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/direct.cc | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/direct.cc') diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc index b40e0b5662..c3ea182be1 100644 --- a/crawl-ref/source/direct.cc +++ b/crawl-ref/source/direct.cc @@ -491,7 +491,7 @@ void direction(dist& moves, targeting_type restricts, // Do we have a previous target? if (you.prev_targ == MHITNOT || you.prev_targ == MHITYOU) { - mpr("You haven't got a previous target."); + mpr("You haven't got a previous target.", MSGCH_EXAMINE_FILTER); break; } @@ -502,7 +502,7 @@ void direction(dist& moves, targeting_type restricts, if (!mons_near(montarget) || !player_monster_visible( montarget )) { - mpr("You can't see that creature any more."); + mpr("You can't see that creature any more.", MSGCH_EXAMINE_FILTER); } else { @@ -626,7 +626,7 @@ void direction(dist& moves, targeting_type restricts, } else if ( moves.isTarget && !see_grid(moves.tx, moves.ty) ) { - mpr("Sorry, you can't target what you can't see."); + mpr("Sorry, you can't target what you can't see.", MSGCH_EXAMINE_FILTER); } // Ask for confirmation if we're quitting for some odd reason else if ( moves.isValid || moves.isCancel || @@ -1213,7 +1213,16 @@ void describe_floor() if (feat.empty()) return; - mpr((prefix + feat + suffix).c_str(), MSGCH_EXAMINE); + msg_channel_type channel = MSGCH_EXAMINE; + + // water is not terribly important if you don't mind it + if ((grd[you.x_pos][you.y_pos] == DNGN_DEEP_WATER + || grd[you.x_pos][you.y_pos] == DNGN_SHALLOW_WATER) + && player_likes_water()) + { + channel = MSGCH_EXAMINE_FILTER; + } + mpr((prefix + feat + suffix).c_str(), channel); if (grid == DNGN_ENTER_LABYRINTH) mpr("Beware, for starvation awaits!", MSGCH_EXAMINE); } @@ -1837,8 +1846,12 @@ static void describe_cell(int mx, int my) else { msg_channel_type channel = MSGCH_EXAMINE; - if (grd[mx][my] == DNGN_FLOOR) + if (grd[mx][my] == DNGN_FLOOR + || grd[mx][my] == DNGN_SHALLOW_WATER + || grd[mx][my] == DNGN_DEEP_WATER) + { channel = MSGCH_EXAMINE_FILTER; + } mpr(feature_desc.c_str(), channel); } #endif -- cgit v1.2.3-54-g00ecf