diff options
author | Eino Keskitalo <evktalo@users.sourceforge.net> | 2009-10-18 23:29:13 +0300 |
---|---|---|
committer | Eino Keskitalo <evktalo@users.sourceforge.net> | 2009-10-18 23:29:13 +0300 |
commit | 52fce0a7785eccba94e59c7ec8375019780eddcc (patch) | |
tree | 8f3cf1a26d56f7a4e5c6d6b2ddbe1af2b0355e25 /crawl-ref/source/makeitem.cc | |
parent | d4696cfa888c35ae0f25b60bf17cc1b227578545 (diff) | |
download | crawl-ref-52fce0a7785eccba94e59c7ec8375019780eddcc.tar.gz crawl-ref-52fce0a7785eccba94e59c7ec8375019780eddcc.zip |
Generate launchers of penetration and shadow randomly.
The chances of getting each ego when branding, new and (old):
flame 25% (37.5%)
frost 25% (37.5%)
penetration 15% (N/A)
shadow 15% (N/A)
protection 12% (17%)
vorpal 6% (6%)
speed 2% (2%)
Hopefully, the chances for new brands are sufficient for testing. I didn't up the generation of launchers, or chances of the launcher getting an ego.
Signed-off-by: Eino Keskitalo <evktalo@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index fde59d13d5..c8484ec8eb 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -1418,12 +1418,16 @@ static brand_type _determine_weapon_brand(const item_def& item, int item_level) case WPN_CROSSBOW: { const int tmp = random2(1000); - if (tmp < 375) + if (tmp < 250) rc = SPWPN_FLAME; - else if (tmp < 750) + else if (tmp < 500) rc = SPWPN_FROST; - else if (tmp < 920) - rc = SPWPN_PROTECTION; + else if (tmp < 650) + rc = SPWPN_PENETRATION; + else if (tmp < 800) + rc = SPWPN_SHADOW; + else if (tmp < 920) + rc = SPWPN_PROTECTION; else if (tmp < 980) rc = SPWPN_VORPAL; else |