summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/artefact.cc
diff options
context:
space:
mode:
authorStefan O'Rear <stefanor@cox.net>2009-11-13 17:36:31 -0800
committerStefan O'Rear <stefanor@cox.net>2009-11-13 17:37:48 -0800
commit7e99e3c55edf834ceaf523b68e6d39475b4981e9 (patch)
tree9bae8c0aacc032dc7f53d271a6def6218bdbc8b2 /crawl-ref/source/artefact.cc
parentcbde1e51fc1475e60e247335f4450f14aeeb379b (diff)
downloadcrawl-ref-7e99e3c55edf834ceaf523b68e6d39475b4981e9.tar.gz
crawl-ref-7e99e3c55edf834ceaf523b68e6d39475b4981e9.zip
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.
Diffstat (limited to 'crawl-ref/source/artefact.cc')
-rw-r--r--crawl-ref/source/artefact.cc4
1 files changed, 2 insertions, 2 deletions
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));