From 55cd93aada9e358fe27cb9ba15396bf965d5ef9d Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 30 Oct 2008 17:55:21 +0000 Subject: Implement [2182736]: Eliminate RAP_ANGRY and RAP_BERSERK for missile weapons. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7308 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/randart.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/randart.cc') diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index 61d407fb8a..0d885378b1 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -960,6 +960,7 @@ void static _get_randart_properties(const item_def &item, // go berserk if (!done_powers && one_chance_in(10) + && (aclass != OBJ_WEAPONS || is_range_weapon(item)) && (aclass != OBJ_JEWELLERY || atype != AMU_RAGE)) { proprt[RAP_BERSERK] = 1; @@ -1006,7 +1007,7 @@ void static _get_randart_properties(const item_def &item, proprt[RAP_PREVENT_TELEPORTATION] = 1; break; case 4: // berserk on attack - if (aclass != OBJ_WEAPONS) + if (aclass != OBJ_WEAPONS || is_range_weapon(item)) break; proprt[RAP_ANGRY] = 1 + random2(8); break; -- cgit v1.2.3-54-g00ecf