summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/exclude.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-06-13 19:25:17 -0400
committerNeil Moore <neil@s-z.org>2014-06-13 19:29:44 -0400
commitca8c18a72f522f6e72cd5d5fd717277589f95c95 (patch)
tree1dece714260096e0b7292c9f8658fcfd8f100847 /crawl-ref/source/exclude.cc
parent4ea94c40d51960e4fe72ce1151e8efcc99f5a6c3 (diff)
downloadcrawl-ref-ca8c18a72f522f6e72cd5d5fd717277589f95c95.tar.gz
crawl-ref-ca8c18a72f522f6e72cd5d5fd717277589f95c95.zip
Don't autoexclude ice and salt (#8575)
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r--crawl-ref/source/exclude.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc
index 3228aff46c..da847dec58 100644
--- a/crawl-ref/source/exclude.cc
+++ b/crawl-ref/source/exclude.cc
@@ -30,6 +30,11 @@ extern set<pair<string, level_id> > auto_unique_annotations;
static bool _mon_needs_auto_exclude(const monster* mon, bool sleepy = false)
{
+ // These include the base monster's name in their name, but we don't
+ // want things in the auto_exclude option to match them.
+ if (mon->type == MONS_PILLAR_OF_SALT || mon->type == MONS_BLOCK_OF_ICE)
+ return false;
+
if (mon->is_stationary())
return !sleepy;