summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/map_knowledge.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-08-19 14:44:08 +0000
committerRaphael Langella <raphael.langella@gmail.com>2011-09-05 23:20:15 +0200
commitb342e2a99de69e653a584b0463752e95bf73e5b1 (patch)
treeafb02f11444e0019d38815f3fa0331a80043b4dc /crawl-ref/source/map_knowledge.cc
parent2466a7e78748f877d6e1a28af3cdf0048970ab47 (diff)
downloadcrawl-ref-b342e2a99de69e653a584b0463752e95bf73e5b1.tar.gz
crawl-ref-b342e2a99de69e653a584b0463752e95bf73e5b1.zip
Take note when revealing a feature mimic which has been noted before.
Diffstat (limited to 'crawl-ref/source/map_knowledge.cc')
-rw-r--r--crawl-ref/source/map_knowledge.cc22
1 files changed, 2 insertions, 20 deletions
diff --git a/crawl-ref/source/map_knowledge.cc b/crawl-ref/source/map_knowledge.cc
index 72e4917749..ca44f16d19 100644
--- a/crawl-ref/source/map_knowledge.cc
+++ b/crawl-ref/source/map_knowledge.cc
@@ -140,28 +140,10 @@ void set_terrain_seen(int x, int y)
{
_automap_from(x, y, _map_quality());
- const bool boring = !is_notable_terrain(feat)
- // A portal deeper into the Ziggurat is boring.
- || (feat == DNGN_ENTER_PORTAL_VAULT
- && you.level_type == LEVEL_PORTAL_VAULT)
- // Altars in the temple are boring.
- || (feat_is_altar(feat)
- && player_in_branch(BRANCH_ECUMENICAL_TEMPLE))
- // Only note the first entrance to the Abyss/Pan/Hell
- // which is found.
- || ((feat == DNGN_ENTER_ABYSS || feat == DNGN_ENTER_PANDEMONIUM
- || feat == DNGN_ENTER_HELL)
- && overview_knows_num_portals(feat) > 1)
- // There are at least three Zot entrances, and they're always
- // on D:27, so ignore them.
- || feat == DNGN_ENTER_ZOT;
-
- if (!boring)
+ if (!is_boring_terrain(feat))
{
coord_def pos(x, y);
- std::string desc =
- feature_description(pos, false, DESC_NOCAP_A);
-
+ std::string desc = feature_description(pos, false, DESC_NOCAP_A);
take_note(Note(NOTE_SEEN_FEAT, 0, 0, desc.c_str()));
}
}