summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-27 07:54:22 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-27 07:54:22 +0000
commit29287f79ef97dc85c1c45fb6d566ca9e727bc4d0 (patch)
treefae93cc7504d541d0862358c8350d4bd87a5bfeb /crawl-ref/source/stash.cc
parent9ac7d2a9a5befa37c2099c58a28aef883b652815 (diff)
downloadcrawl-ref-29287f79ef97dc85c1c45fb6d566ca9e727bc4d0.tar.gz
crawl-ref-29287f79ef97dc85c1c45fb6d566ca9e727bc4d0.zip
Oops, my stash_filter change broke looking up items by their glyph; fixed.
stash_filter shouldn't affect artefacts. Don't try to cache the names for BOOK_RANDART_LEVEL and BOOK_RANDART_THEME, since randarts don't have a single name. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7990 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index 76f4884a2a..039286565f 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -29,6 +29,7 @@
#include "notes.h"
#include "overmap.h"
#include "place.h"
+#include "randart.h"
#include "shopping.h"
#include "spl-book.h"
#include "stash.h"
@@ -227,6 +228,8 @@ bool Stash::is_filtered(const item_def &item)
&& (filter.sub_type == 255
|| item.sub_type == filter.sub_type))
{
+ if (is_artefact(item))
+ return (false);
if (filter.sub_type != 255 && !item_type_known(item))
return (false);
return (true);