summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-25 00:23:09 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-25 01:20:06 -0700
commit130a8d595c2a3d2911b044a0c486dd311243e333 (patch)
tree31e4ad8e5c6a93fbba063b4a8198354d50ac82b2 /crawl-ref/source/directn.cc
parent568903e4f3f070839b202a249f19b22c327570ae (diff)
downloadcrawl-ref-130a8d595c2a3d2911b044a0c486dd311243e333.tar.gz
crawl-ref-130a8d595c2a3d2911b044a0c486dd311243e333.zip
Let markers change the description of any feature
Allow markers to change the short and/or long description of any feature, not just portal vault entrances. The feature_description() and feature_description_long() functions have been removed from the mapmark classes and turned into ordinary properties. Also added the marker property "door_description_suffix", which can be used to alter the short description of (known) doors by appending a string to them.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index ca40ea7fdc..a5aadee955 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -2887,7 +2887,7 @@ std::string feature_description(const coord_def& where, bool bloody,
description_level_type dtype, bool add_stop,
bool base_desc)
{
- std::string marker_desc =
+ std::string marker_desc =
env.markers.property_at(where, MAT_ANY, "feature_description");
if (!marker_desc.empty())
@@ -2915,7 +2915,7 @@ std::string feature_description(const coord_def& where, bool bloody,
desc += "detected secret ";
desc += noun;
- const std::string door_desc_suffix =
+ const std::string door_desc_suffix =
env.markers.property_at(where, MAT_ANY,
"door_description_suffix");
desc += door_desc_suffix;