From ec0ce305e87b8a69378fa58cc1dbec652bcc0d1a Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Fri, 11 Dec 2009 11:32:52 +0100 Subject: If we explicitely give mon a ranged weapon, pre-wield it. This already is the case for weapons generated by default. --- crawl-ref/source/dungeon.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index aab2d4e0e4..0926c5f9ce 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -4875,6 +4875,10 @@ static void _dgn_give_mon_spec_items(mons_spec &mspec, destroy_item(item_made, true); } } + + // Pre-wield ranged weapons. + if (mon.inv[MSLOT_WEAPON] == NON_ITEM && mon.inv[MSLOT_ALT_WEAPON] != NON_ITEM) + mon.swap_weapons(false); } -- cgit v1.2.3-54-g00ecf