diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-02-28 21:52:44 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-02-28 21:52:44 +0530 |
commit | 2a5fc67b343500b34c4501eae75c27486acf123c (patch) | |
tree | b4e18c5b8a2c589032bcf91126f3d42a0c941313 /crawl-ref/source/stash.h | |
parent | cee7469671857d44d007cca606c9f83cc81bd905 (diff) | |
download | crawl-ref-2a5fc67b343500b34c4501eae75c27486acf123c.tar.gz crawl-ref-2a5fc67b343500b34c4501eae75c27486acf123c.zip |
stash_filter now affects only ^F search; filtered items are still remembered by the stash tracker.
Making stash_filter affect only display prevents players from gaming Troves by
tweaking their stash_filter settings. It will also help players who
accidentally filter too much; when they discover their error they can just fix
their filters without having to re-explore the dungeon to locate filtered
items.
Diffstat (limited to 'crawl-ref/source/stash.h')
-rw-r--r-- | crawl-ref/source/stash.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/stash.h b/crawl-ref/source/stash.h index 06f2ff2ae0..3260764196 100644 --- a/crawl-ref/source/stash.h +++ b/crawl-ref/source/stash.h @@ -88,6 +88,10 @@ public: // items nor dump itself. Disabled stashes are // also never removed from the level's map of // stashes. + +public: + static bool is_filtered(const item_def &item); + private: void _update_corpses(long rot_time); void add_item(const item_def &item, bool add_to_front = false); @@ -111,7 +115,6 @@ private: static std::vector<item_def> filters; static bool are_items_same(const item_def &, const item_def &); - static bool is_filtered(const item_def &item); friend class LevelStashes; friend class ST_ItemIterator; |