summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc31
1 files changed, 12 insertions, 19 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index bcce934a0c..482d467f2c 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2008,18 +2008,6 @@ std::string get_item_description( const item_def &item, bool verbose,
return description.str();
}
-static std::string _marker_feature_description(const coord_def &pos)
-{
- std::vector<map_marker*> markers = env.markers.get_markers_at(pos);
- for (int i = 0, size = markers.size(); i < size; ++i)
- {
- const std::string desc = markers[i]->feature_description_long();
- if (!desc.empty())
- return (desc);
- }
- return ("");
-}
-
static std::string _get_feature_description_wide(int feat)
{
return std::string();
@@ -2044,14 +2032,19 @@ void get_feature_desc(const coord_def &pos, describe_info &inf)
bool custom_desc = false;
- if (feat == DNGN_ENTER_PORTAL_VAULT)
+ const std::string marker_desc =
+ env.markers.property_at(pos, MAT_ANY, "feature_description_long");
+
+ if (!marker_desc.empty())
{
- std::string _desc = _marker_feature_description(pos);
- if (!_desc.empty())
- {
- long_desc = _desc;
- custom_desc = true;
- }
+ long_desc = marker_desc;
+ custom_desc = true;
+ }
+
+ if (feat == DNGN_ENTER_PORTAL_VAULT && !custom_desc)
+ {
+ long_desc = "UNDESCRIBE PORTAL VAULT ENTRANCE.";
+ custom_desc = true;
}
const CrawlHashTable &props = env.properties;