diff options
author | Shmuale Mark <shm.mark@gmail.com> | 2014-08-03 13:59:36 -0400 |
---|---|---|
committer | Shmuale Mark <shm.mark@gmail.com> | 2014-08-03 14:17:14 -0400 |
commit | 2e52a0c19d866a6a15b36163fa145a94bbf9721f (patch) | |
tree | 1ad40aea10861227400db415ab1c2adaef44252b /crawl-ref/source/areas.cc | |
parent | 2091673ee858097442a1668a947626a489639ece (diff) | |
download | crawl-ref-2e52a0c19d866a6a15b36163fa145a94bbf9721f.tar.gz crawl-ref-2e52a0c19d866a6a15b36163fa145a94bbf9721f.zip |
Hide a hack better.
Ideally, we wouldn't be using special for unrands totally different from
how items of the same type do, but that's less trivial than this commit.
A centralised place to check for being an unrand should at least make such
a change easier.
Diffstat (limited to 'crawl-ref/source/areas.cc')
-rw-r--r-- | crawl-ref/source/areas.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/areas.cc b/crawl-ref/source/areas.cc index c5ff6afc84..34c44b76fa 100644 --- a/crawl-ref/source/areas.cc +++ b/crawl-ref/source/areas.cc @@ -607,7 +607,7 @@ int monster::halo_radius2() const item_def* weap = mslot_item(MSLOT_WEAPON); int size = -1; - if (weap && is_unrandom_artefact(*weap) && weap->special == UNRAND_BRILLIANCE) + if (weap && is_unrandom_artefact(*weap, UNRAND_BRILLIANCE)) size = 10; if (holiness() != MH_HOLY) @@ -757,7 +757,7 @@ int player::umbra_radius2() const int monster::umbra_radius2() const { item_def* ring = mslot_item(MSLOT_JEWELLERY); - if (ring && is_unrandom_artefact(*ring) && ring->special == UNRAND_SHADOWS) + if (ring && is_unrandom_artefact(*ring, UNRAND_SHADOWS)) return 10; if (holiness() != MH_UNDEAD) |