From 79a6889bb573ec0dfc937c78ea1259c6ff1aa482 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 11 Oct 2007 11:51:53 +0000 Subject: [1804499] Fixed acquirement occasionally mauling unrandarts and producing bad items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2423 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index ff4de0f7a0..77e3a93bcc 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -1439,7 +1439,8 @@ bool acquirement(object_class_type class_wanted, int agent) } } else if (thing.base_type == OBJ_WEAPONS - && !is_fixed_artefact( thing )) + && !is_fixed_artefact( thing ) + && !is_unrandom_artefact( thing )) { // HACK: make unwieldable weapons wieldable // Note: messing with fixed artefacts is probably very bad. @@ -1530,7 +1531,8 @@ bool acquirement(object_class_type class_wanted, int agent) } else if (thing.base_type == OBJ_ARMOUR - && !is_fixed_artefact( thing )) + && !is_fixed_artefact( thing ) + && !is_unrandom_artefact( thing )) { // HACK: make unwearable hats and boots wearable // Note: messing with fixed artefacts is probably very bad. -- cgit v1.2.3-54-g00ecf