diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-04 10:41:46 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-04 10:41:46 +0000 |
commit | 746b402561b6b27625c5c1ac33028da9aa846b18 (patch) | |
tree | 98f575a915c3403deeeb51fc5f4c11d4896124f0 /crawl-ref/source/direct.cc | |
parent | b330585db366bb8a0ac70c3a73a1e1afd26e4a98 (diff) | |
download | crawl-ref-746b402561b6b27625c5c1ac33028da9aa846b18.tar.gz crawl-ref-746b402561b6b27625c5c1ac33028da9aa846b18.zip |
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
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r-- | crawl-ref/source/direct.cc | 23 |
1 files changed, 18 insertions, 5 deletions
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 |