From 130a8d595c2a3d2911b044a0c486dd311243e333 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Sun, 25 Oct 2009 00:23:09 -0700 Subject: 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. --- crawl-ref/source/directn.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/directn.cc') 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; -- cgit v1.2.3-54-g00ecf