From 52fce0a7785eccba94e59c7ec8375019780eddcc Mon Sep 17 00:00:00 2001 From: Eino Keskitalo Date: Sun, 18 Oct 2009 23:29:13 +0300 Subject: 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 --- crawl-ref/source/makeitem.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/makeitem.cc') 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 -- cgit v1.2.3-54-g00ecf