diff options
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r-- | crawl-ref/source/direct.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc index 4d6515b94a..d4a35a4b97 100644 --- a/crawl-ref/source/direct.cc +++ b/crawl-ref/source/direct.cc @@ -1521,6 +1521,23 @@ static std::string marker_feature_description(const coord_def &p) return (""); } +// Is a feature interesting enough to 'v'iew it, even if a player normally +// doesn't care about descriptions, i.e. does the description hold important +// information? (Yes, this is entirely subjective. JPEG) +static bool interesting_feature(dungeon_feature_type feat) +{ + switch (feat) + { + case DNGN_ENTER_ORCISH_MINES: + case DNGN_ENTER_SLIME_PITS: + case DNGN_ENTER_LABYRINTH: +// case DNGN_SPARKLING_FOUNTAIN: + return true; + default: + return false; + } +} + std::string feature_description(int mx, int my, description_level_type dtype, bool add_stop) { @@ -1862,6 +1879,9 @@ static void describe_cell(int mx, int my) } else { + if (interesting_feature(grd[mx][my])) + feature_desc += " (Press 'v' for more information.)"; + msg_channel_type channel = MSGCH_EXAMINE; if (grd[mx][my] == DNGN_FLOOR || grd[mx][my] == DNGN_SHALLOW_WATER |