diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-03-03 18:22:44 -0500 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-03-03 18:42:22 -0500 |
commit | ed793cfbc94745db0287022dca31f6878774b628 (patch) | |
tree | f87e82be6d7b504e178005884c6a0b51bf4353fb /crawl-ref/source/areas.cc | |
parent | 29b03513c540df7fc3cd34da90862ab16fd114d9 (diff) | |
download | crawl-ref-ed793cfbc94745db0287022dca31f6878774b628.tar.gz crawl-ref-ed793cfbc94745db0287022dca31f6878774b628.zip |
Give the ring of Shadows an umbra.
The size is equivalent to Brilliance's halo, and the stealth modifier
is 1.5. It loses +4 EV and -4 Acc since lower accuracy is an inherent
trait of an umbra.
Diffstat (limited to 'crawl-ref/source/areas.cc')
-rw-r--r-- | crawl-ref/source/areas.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/areas.cc b/crawl-ref/source/areas.cc index c8c4b65330..72ee38e4dc 100644 --- a/crawl-ref/source/areas.cc +++ b/crawl-ref/source/areas.cc @@ -720,11 +720,18 @@ int player::umbra_radius2() const size = min(LOS_RADIUS*LOS_RADIUS, r * r / 400); } + if (player_equip_unrand(UNRAND_SHADOWS)) + size = max(size, 9); + return size; } int monster::umbra_radius2() const { + item_def* ring = mslot_item(MSLOT_JEWELLERY); + if (ring && ring->special == UNRAND_SHADOWS) + return 9; + if (holiness() != MH_UNDEAD) return -1; |