diff options
author | Neil Moore <neil@s-z.org> | 2014-02-02 09:36:58 -0500 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2014-03-04 11:21:50 -0700 |
commit | 69b86a6357921c8460511a6a90b35254938e966c (patch) | |
tree | fb5a924be0702620d6c61e8a750d0f765c5290b8 /crawl-ref/source/mon-stealth.cc | |
parent | 61501322e2aed0835ac262123df2bf3314795150 (diff) | |
download | crawl-ref-69b86a6357921c8460511a6a90b35254938e966c.tar.gz crawl-ref-69b86a6357921c8460511a6a90b35254938e966c.zip |
Split M_SHADOW from M_GLOWS_LIGHT.
Historically, M_GLOWS_LIGHT was originally a hardcoded list of monsters
that can't be backlit: the list was mostly glowing creatures, but also
some inherently shadowy ones. When the use of the flag was subsequently
expanded, it be
Now shadowy creatures:
* Can go invisible (even more shadowy)
* Have a stealth bonus, not malus.
* Are described as "wreathed in shadows" rather than "outlined in
light".
Give the flag to shadow fiend, shadow dragon, phantasmal warrior,
spectral weapon, and shadow fiend. Don't give it to spectral things,
which are explicitly described as glowing.
(cherry picked from commit c9348eb8f6c4cd4f327a8e0eba418e53d0be50d5)
Conflicts:
crawl-ref/source/mon-flags.h
Diffstat (limited to 'crawl-ref/source/mon-stealth.cc')
-rw-r--r-- | crawl-ref/source/mon-stealth.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-stealth.cc b/crawl-ref/source/mon-stealth.cc index 3453bc83c9..bb0877581d 100644 --- a/crawl-ref/source/mon-stealth.cc +++ b/crawl-ref/source/mon-stealth.cc @@ -66,7 +66,7 @@ int monster::stealth() const actual_stealth -= 3; // Having an umbra makes you more stealthy, on the other hand. - if (umbra_radius2() != -1) + if (mons_class_flag(type, M_SHADOW) || umbra_radius2() != -1) actual_stealth += 3; // Some specific overrides |