diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-21 00:01:25 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-21 00:01:25 +0000 |
commit | 2f0027fc198f14dd2ed745df59427f0580ffd9ca (patch) | |
tree | fce28eba6869575eecff8b68357b80715af1a170 /crawl-ref/source/makeitem.cc | |
parent | fd33507fae988909afebc9e41fb176e6ec0f9bf3 (diff) | |
download | crawl-ref-2f0027fc198f14dd2ed745df59427f0580ffd9ca.tar.gz crawl-ref-2f0027fc198f14dd2ed745df59427f0580ffd9ca.zip |
Make lajatangs more common to compensate for the weaker quarterstaff.
Also strengthened Agnes slightly, speeded her up a bit further, and gave her a lajatang.
Lajatangs can now be generated with a brand.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4426 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index 88820c61d2..5fda33f461 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -865,11 +865,11 @@ static weapon_type determine_weapon_subtype(int item_level) WPN_TRIPLE_SWORD }; - if (random2(20) < 20 - item_level) - rc = RANDOM_ELEMENT(common_subtypes); - else if (item_level > 6 && random2(100) < (10 + item_level) - && one_chance_in(30)) + if (item_level > 6 && random2(100) < (10 + item_level) + && one_chance_in(30)) rc = RANDOM_ELEMENT(rare_subtypes); + else if (random2(20) < 20 - item_level) + rc = RANDOM_ELEMENT(common_subtypes); else { // pick a weapon based on rarity @@ -1452,6 +1452,22 @@ static brand_type determine_weapon_brand(const item_def& item, int item_level) rc = SPWPN_PROTECTION; break; + case WPN_LAJATANG: + if (one_chance_in(8)) + rc = SPWPN_SPEED; + else if (one_chance_in(12)) + rc = SPWPN_PAIN; + else if (got_distortion_roll(item_level)) + rc = SPWPN_DISTORTION; + else if (one_chance_in(9)) + rc = SPWPN_PROTECTION; + else if (one_chance_in(6)) + rc = SPWPN_ELECTROCUTION; + else if (one_chance_in(5)) + rc = SPWPN_VAMPIRICISM; + else if (one_chance_in(6)) + rc = SPWPN_VENOM; + break; case WPN_DEMON_TRIDENT: case WPN_DEMON_WHIP: @@ -3506,11 +3522,17 @@ static item_make_species_type give_weapon(monsters *mon, int level, case MONS_PSYCHE: case MONS_DONALD: case MONS_JOSEPHINE: - case MONS_AGNES: item.base_type = OBJ_WEAPONS; item.sub_type = WPN_DAGGER; break; + case MONS_AGNES: + item.base_type = OBJ_WEAPONS; + item.sub_type = WPN_LAJATANG; + if (!one_chance_in(3)) + level = MAKE_GOOD_ITEM; + break; + case MONS_CEREBOV: force_item = true; make_item_fixed_artefact( item, false, SPWPN_SWORD_OF_CEREBOV ); |