summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-30 17:55:21 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-30 17:55:21 +0000
commit55cd93aada9e358fe27cb9ba15396bf965d5ef9d (patch)
tree550c93b59ac71a45694c46b837ba1cb27857b897 /crawl-ref/source/randart.cc
parent28bd7fa74ebe169afa161306fa5f80a03564968a (diff)
downloadcrawl-ref-55cd93aada9e358fe27cb9ba15396bf965d5ef9d.tar.gz
crawl-ref-55cd93aada9e358fe27cb9ba15396bf965d5ef9d.zip
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
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc3
1 files changed, 2 insertions, 1 deletions
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;