summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-01-24 17:43:45 +0100
committerRaphael Langella <raphael.langella@gmail.com>2011-01-25 00:07:03 +0100
commit0325dd1f6e0b8f013b179775b42ac9114ce24405 (patch)
treeecbf4e291e9e767350eb0eca45f04f3ad08821fa /crawl-ref/source/invent.h
parentd2e0d5b4439fc4a374bf4d840ebca59f828fe5e7 (diff)
downloadcrawl-ref-0325dd1f6e0b8f013b179775b42ac9114ce24405.tar.gz
crawl-ref-0325dd1f6e0b8f013b179775b42ac9114ce24405.zip
Add an item_is_wieldable() function.
This remove some duplication.
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r--crawl-ref/source/invent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h
index 142f516b70..392e2ad7d8 100644
--- a/crawl-ref/source/invent.h
+++ b/crawl-ref/source/invent.h
@@ -238,6 +238,7 @@ void init_item_sort_comparators(item_sort_comparators &list,
bool prompt_failed(int retval, std::string msg = "");
+bool item_is_wieldable(const item_def &item);
bool item_is_evokable(const item_def &item, bool known = false,
bool all_wands = false, bool msg = false);
bool needs_handle_warning(const item_def &item, operation_types oper);