From 7e99e3c55edf834ceaf523b68e6d39475b4981e9 Mon Sep 17 00:00:00 2001 From: Stefan O'Rear Date: Fri, 13 Nov 2009 17:36:31 -0800 Subject: Give giant spiked clubs a nonzero acquirement weight They're the best weapon in the game for the races that can weild them, it makes no sense to exclude them from acquirements. Also give mundane items generated by acquirement enchantments and artifact status. --- crawl-ref/source/artefact.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/artefact.cc') diff --git a/crawl-ref/source/artefact.cc b/crawl-ref/source/artefact.cc index 0ac8f3ac0c..ef9f992fc0 100644 --- a/crawl-ref/source/artefact.cc +++ b/crawl-ref/source/artefact.cc @@ -1894,7 +1894,7 @@ bool randart_is_bad( const item_def &item ) return randart_is_bad( item, proprt); } -bool make_item_randart( item_def &item ) +bool make_item_randart( item_def &item, bool force_mundane ) { if (item.base_type != OBJ_WEAPONS && item.base_type != OBJ_ARMOUR @@ -1921,7 +1921,7 @@ bool make_item_randart( item_def &item ) if (item.flags & ISFLAG_UNRANDART) return (false); - if (item_is_mundane(item) && !one_chance_in(5)) + if (item_is_mundane(item) && !one_chance_in(5) && !force_mundane) return (false); ASSERT(!item.props.exists(KNOWN_PROPS_KEY)); -- cgit v1.2.3-54-g00ecf