diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-31 04:10:52 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-31 04:10:52 +0000 |
commit | 2b0b87df11c7df4c7aa4000c34952a1a9130d054 (patch) | |
tree | 2911ad9f0d7ca7f041bbfa5add980c0aaf04cd7d /crawl-ref | |
parent | 173be6333490d4cf0e57a021b3159a8d257222ad (diff) | |
download | crawl-ref-2b0b87df11c7df4c7aa4000c34952a1a9130d054.tar.gz crawl-ref-2b0b87df11c7df4c7aa4000c34952a1a9130d054.zip |
Occasionally allow dwarven long swords, since dwarves are above average
with long blades, and so that the sequence of racial long blades is more
even (dwarves: falchions and long swords, elves: dwarves' weapons plus
scimitars, orcs: elves' weapons plus great swords).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8051 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 3 | ||||
-rw-r--r-- | crawl-ref/source/makeitem.cc | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index d7d4311da8..1d3dcc353b 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -765,7 +765,8 @@ void set_equip_race( item_def &item, unsigned long flags ) case OBJ_WEAPONS: if (weapon_skill(item) == SK_POLEARMS || (weapon_skill(item) == SK_LONG_BLADES - && item.sub_type != WPN_FALCHION) + && item.sub_type != WPN_FALCHION + && item.sub_type != WPN_LONG_SWORD) || item.sub_type == WPN_QUICK_BLADE || item.sub_type == WPN_CLUB || item.sub_type == WPN_WHIP diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index bd4ee4a76d..1e49049735 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -1013,6 +1013,8 @@ static item_status_flag_type _determine_weapon_race(const item_def& item, break; case WPN_LONG_SWORD: + if (one_chance_in(6)) + rc = ISFLAG_DWARVEN; if (one_chance_in(4)) rc = ISFLAG_ORCISH; if (coinflip()) |