summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/direct.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-07 15:06:00 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-07 15:06:00 +0000
commit8e904ab0620577064f4a818272b152d1f5d2d3db (patch)
treedd9d9542db26e0bb398235e49ffa3c7f2ceeac0b /crawl-ref/source/direct.cc
parent1a6365fbd24ab134842816757600de0264f39362 (diff)
downloadcrawl-ref-8e904ab0620577064f4a818272b152d1f5d2d3db.tar.gz
crawl-ref-8e904ab0620577064f4a818272b152d1f5d2d3db.zip
Turfed out obsolete orange crystal statue and silver statue features.
Moved MINMOVE and MINSEE brain damage into the dungeon_feature_type enumeration where it is clearer what they represent. Fixed ice statues not being appropriately affected by Shatter and Lee's. Moved 'v' examine hint information and feature notability into feature_def flags. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2061 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/direct.cc')
-rw-r--r--crawl-ref/source/direct.cc18
1 files changed, 4 insertions, 14 deletions
diff --git a/crawl-ref/source/direct.cc b/crawl-ref/source/direct.cc
index d4a35a4b97..9c347adaeb 100644
--- a/crawl-ref/source/direct.cc
+++ b/crawl-ref/source/direct.cc
@@ -1352,12 +1352,8 @@ std::string raw_feature_description(dungeon_feature_type grid,
return ("orcish idol");
case DNGN_WAX_WALL:
return ("wall of solid wax");
- case DNGN_SILVER_STATUE:
- return ("silver statue");
case DNGN_GRANITE_STATUE:
return ("granite statue");
- case DNGN_ORANGE_CRYSTAL_STATUE:
- return ("orange crystal statue");
case DNGN_LAVA:
return ("Some lava");
case DNGN_DEEP_WATER:
@@ -1521,22 +1517,16 @@ static std::string marker_feature_description(const coord_def &p)
return ("");
}
+#ifndef DEBUG_DIAGNOSTICS
// 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;
- }
+ return (get_feature_def(feat).flags & FFT_EXAMINE_HINT);
}
+#endif
std::string feature_description(int mx, int my, description_level_type dtype,
bool add_stop)