summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-31 01:07:33 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-31 01:07:33 +0000
commit51cf2e590f33e894236ab640f2ffa58aff3a92ec (patch)
treea4867edae9afa6041faf53de9fe32ccfc066fd1e /crawl-ref/source/invent.cc
parentc6f2e85b44fe574cff0a59607fe1b5a366954b62 (diff)
downloadcrawl-ref-51cf2e590f33e894236ab640f2ffa58aff3a92ec.tar.gz
crawl-ref-51cf2e590f33e894236ab640f2ffa58aff3a92ec.zip
drop_filter can now match against the same keywords as menu_colour, minus the
identification status and chunk/corpse information. drop_filter now defaults to useless_item You can prevent an init file variable from being changed by turning it into a constant. Clear variables and aliases when resetting the game options. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8043 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index d91d2512b7..fa03f8b291 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -173,6 +173,11 @@ void InvEntry::select(int qty)
MenuEntry::select(qty);
}
+std::string InvEntry::get_filter_text() const
+{
+ return (filtering_item_prefix(*item) + " " + get_text());
+}
+
std::string InvEntry::get_text() const
{
std::ostringstream tstr;