summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-13 22:00:07 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-13 22:00:07 +0000
commitf94f63d5a02b7e7b7badbf74c0687c665829a277 (patch)
tree8f2194914c733479e6dee344f2e35910c6d2f119 /crawl-ref/source/makeitem.cc
parent0bb95b49f9d3878821b63a0c9e12d94e77fa2516 (diff)
downloadcrawl-ref-f94f63d5a02b7e7b7badbf74c0687c665829a277.tar.gz
crawl-ref-f94f63d5a02b7e7b7badbf74c0687c665829a277.zip
Allow racial whips again, as orc and elf monsters can get them (oops),
and allow elven and orcish ones to be generated randomly, since they're dexterity-based maces/flails, as opposed to strength-based. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3058 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index a790e647aa..ded5a80b87 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -979,6 +979,13 @@ static item_status_flag_type determine_weapon_race(const item_def& item,
rc = ISFLAG_ORCISH;
break;
+ case WPN_WHIP:
+ if (one_chance_in(4))
+ rc = ISFLAG_ORCISH;
+ if (one_chance_in(4))
+ rc = ISFLAG_ELVEN;
+ break;
+
case WPN_MACE:
case WPN_FLAIL:
case WPN_SPIKED_FLAIL: