From c8dad26d1f8ad2c61d515bff20b58f8eeae5e9b2 Mon Sep 17 00:00:00 2001 From: haranp Date: Mon, 7 May 2007 22:13:27 +0000 Subject: Amulet of inaccuracy now affects beams. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1421 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/beam.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 5f5202b0a3..d00aeba43f 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -1219,6 +1219,13 @@ static void zappy( zap_type z_type, int power, struct bolt &pbolt ) pbolt.obvious_effect = true; break; } // end of switch + + if ( wearing_amulet(AMU_INACCURACY) ) + { + pbolt.hit -= 5; + if ( pbolt.hit < 0 ) + pbolt.hit = 0; + } } // end zappy() /* NEW (GDL): -- cgit v1.2.3-54-g00ecf