diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-09-03 09:21:16 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-09-05 23:20:16 +0200 |
commit | d0581dac36a63b74415f26930d89b6d586fed4ed (patch) | |
tree | b55b4a70a1f221c878d6cc503839831db1dd1865 /crawl-ref/source/exclude.cc | |
parent | 24a352c91eed6991927e31a292f9fbbeba3117f1 (diff) | |
download | crawl-ref-d0581dac36a63b74415f26930d89b6d586fed4ed.tar.gz crawl-ref-d0581dac36a63b74415f26930d89b6d586fed4ed.zip |
Clean up all the old mimic code.
There's no such thing as an unknown mimic monster anymore. Also rename the
MF_KNOWN_MIMIC monster flag to MF_KNOWN_SHIFTER since it's only used for
shapeshifter now.
For upgraded games, existing unknown mimics will all be revealed.
Diffstat (limited to 'crawl-ref/source/exclude.cc')
-rw-r--r-- | crawl-ref/source/exclude.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crawl-ref/source/exclude.cc b/crawl-ref/source/exclude.cc index ab387e99de..0841cf7358 100644 --- a/crawl-ref/source/exclude.cc +++ b/crawl-ref/source/exclude.cc @@ -27,15 +27,9 @@ static bool _mon_needs_auto_exclude(const monster* mon, bool sleepy = false) { - if (mons_is_stationary(mon)) - { - if (sleepy) + if (mons_is_stationary(mon) && sleepy) return (false); - // Don't give away mimics unless already known. - return (!mons_is_mimic(mon->type) - || testbits(mon->flags, MF_KNOWN_MIMIC)); - } // Auto exclusion only makes sense if the monster is still asleep. return (mon->asleep()); } |