summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_item.cc
diff options
context:
space:
mode:
authorRaphael Langella <raphael.langella@gmail.com>2011-07-21 01:15:13 +0200
committerRaphael Langella <raphael.langella@gmail.com>2011-07-21 01:58:51 +0200
commit294db2cc0f0053d87eb9ef87ba149f5f7e617e22 (patch)
treebb893186e7db58f286bc5b8cdaaf46c964b6d95c /crawl-ref/source/l_item.cc
parent156035582ff3d16b24331e962f2cebff84468e38 (diff)
downloadcrawl-ref-294db2cc0f0053d87eb9ef87ba149f5f7e617e22.tar.gz
crawl-ref-294db2cc0f0053d87eb9ef87ba149f5f7e617e22.zip
Allow searching by equipment slot.
The keywords are: cloak helmet gloves boots shield body
Diffstat (limited to 'crawl-ref/source/l_item.cc')
-rw-r--r--crawl-ref/source/l_item.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/l_item.cc b/crawl-ref/source/l_item.cc
index 0b451f3bbc..1428d569fd 100644
--- a/crawl-ref/source/l_item.cc
+++ b/crawl-ref/source/l_item.cc
@@ -325,6 +325,8 @@ IDEF(subtype)
else
s = "spellbook";
}
+ else if (item->base_type == OBJ_ARMOUR)
+ s = item_slot_name(get_armour_slot(*item), true).c_str();
if (s)
lua_pushstring(ls, s);