summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r--crawl-ref/source/maps.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index 37dab0e197..adc4df3f09 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -620,6 +620,14 @@ int map_count()
return (vdefs.size());
}
+int map_count_for_tag(const std::string &tag,
+ bool want_minivault,
+ bool check_depth)
+{
+ return _eligible_maps_for_selector(
+ map_selector::by_tag(tag, want_minivault, check_depth)).size();
+}
+
/////////////////////////////////////////////////////////////////////////////
// Reading maps from .des files.