summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-23 03:25:41 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-23 03:25:41 +0000
commitabe1935b440c1b521c125de7396e7b4b4760dcaf (patch)
treec84514dff01bb2f72ce0dbf65775d3f41777b1b9
parentd882d2b68da1c133faa3e9be92e1435a60d4009a (diff)
downloadcrawl-ref-abe1935b440c1b521c125de7396e7b4b4760dcaf.tar.gz
crawl-ref-abe1935b440c1b521c125de7396e7b4b4760dcaf.zip
Add various crossbow-related fixes:
Fix [1864360]: Reenable random generation of crossbow bolts, as it was (erroneously?) removed in r1732, when javelins and sling bullets were introduced. The probability for bolts is slightly greater than that of needles (12 vs. 10), as the probability of randomly generated crossbows is slightly greater than that of blowguns (6 vs. 5). Furthermore, the probability for bolts is lower than the probability for arrows (12 vs. 20), since the former do more damage. Orc knights and warlords that get crossbows now get orcish ones instead of non-racial ones. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3315 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/makeitem.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index d80adf5e45..688e0cb02e 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -1744,6 +1744,7 @@ static void generate_missile_item(item_def& item, int force_type,
random_choose_weighted(30, MI_STONE,
20, MI_DART,
20, MI_ARROW,
+ 12, MI_BOLT,
10, MI_NEEDLE,
5, MI_SLING_BULLET,
2, MI_JAVELIN,
@@ -3216,7 +3217,6 @@ static item_make_species_type give_weapon(monsters *mon, int level,
// Occasionally get crossbows.
if (!melee_only && one_chance_in(9))
{
- item_race = MAKE_ITEM_NO_RACE;
item.base_type = OBJ_WEAPONS;
item.sub_type = WPN_CROSSBOW;
break;