summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-project.cc
diff options
context:
space:
mode:
authorBen Striegel <ben.striegel@gmail.com>2012-03-22 23:50:45 -0400
committerNeil Moore <neil@s-z.org>2012-04-04 23:39:23 -0400
commit8da6c8d011e0fc1d7953322b48ae0a4309827c46 (patch)
tree0aeb1cecdf2758531792a47b286f85caf93e4668 /crawl-ref/source/mon-project.cc
parentaf7e6c68faf109a230195b517ec6185ec4bd08d2 (diff)
downloadcrawl-ref-8da6c8d011e0fc1d7953322b48ae0a4309827c46.tar.gz
crawl-ref-8da6c8d011e0fc1d7953322b48ae0a4309827c46.zip
Suppression aura effects, part 1
This first round of suppression effects focuses solely on denying the player any advantages (and disadvantages!) from equipped magical items. Specifically, I searched for the following three strings in the source: "wearing", "player_equip", and "scan_artefact" and added a "you.suppressed()" clause to ensure that effects only apply outside of fields of magical suppression. There's a lot more to do, but this is a good start. Specifically, this addresses the most important aspect of the suppression aura, which is to deny the player any resists from items.
Diffstat (limited to 'crawl-ref/source/mon-project.cc')
-rw-r--r--crawl-ref/source/mon-project.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-project.cc b/crawl-ref/source/mon-project.cc
index de9168f0f8..302eadc69f 100644
--- a/crawl-ref/source/mon-project.cc
+++ b/crawl-ref/source/mon-project.cc
@@ -165,7 +165,7 @@ static void _fuzz_direction(monster& mon, int pow)
const float off = (coinflip() ? -1 : 1) * 0.25;
float tan = (random2(31) - 15) * 0.019; // approx from degrees
tan *= 75.0 / pow;
- if (wearing_amulet(AMU_INACCURACY))
+ if (!you.suppressed() && wearing_amulet(AMU_INACCURACY))
tan *= 2;
// Cast either from left or right hand.