diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-30 21:36:46 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-30 21:36:46 +0000 |
commit | 9faa1dc2bc4f19012ae39595c466535e5b46e5a5 (patch) | |
tree | 7c43666600e1bfb8fbf0cdc8ee570a07e71d3bc6 /crawl-ref/source/itemprop.cc | |
parent | 9d4fedd31985fd009b5ef5d7f7a8879ff3628e08 (diff) | |
download | crawl-ref-9faa1dc2bc4f19012ae39595c466535e5b46e5a5.tar.gz crawl-ref-9faa1dc2bc4f19012ae39595c466535e5b46e5a5.zip |
Add consistency fixes for elven weapons:
* Since monster elves can get elven scimitars, and scimitars are long
blades and better for the dexterous (both of which fit elves), allow
elven scimitars to be randomly generated. The chance is 1/5, falling
through to the existing case of 1/2 for orcish ones, based on the chance
for elven long swords and adjusted for scimitars' greater rarity.
* Since, aside from starting equipment for elf players, no elven axes
show up, either randomly or on monster elves, the elven aptitudes for
axes are almost as bad as those for the disallowed maces/flails, and
axes are better for the strong (none of which fit elves), disallow elven
axes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2956 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 3d37186e8a..2bb580de93 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -670,8 +670,11 @@ void set_equip_race( item_def &item, unsigned long flags ) switch (item.base_type) { case OBJ_WEAPONS: - if (weapon_skill(item) == SK_MACES_FLAILS) + if (weapon_skill(item) == SK_MACES_FLAILS + || weapon_skill(item) == SK_AXES) + { return; + } break; case OBJ_ARMOUR: if (item.sub_type == ARM_SPLINT_MAIL |