From 20a6609453ee2b51c388c296516c1abc1beab1d2 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Mon, 28 May 2007 08:47:30 +0000 Subject: Preliminary integration of Zooko's Xom patch (untested). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1489 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 81437d49c1..593fcf8e37 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -934,6 +934,11 @@ equipment_type get_armour_slot( const item_def &item ) return (Armour_prop[ Armour_index[item.sub_type] ].slot); } +equipment_type get_armour_slot( armour_type arm ) +{ + return (Armour_prop[ Armour_index[arm] ].slot); +} + bool jewellery_is_amulet( const item_def &item ) { ASSERT( item.base_type == OBJ_JEWELLERY ); -- cgit v1.2.3-54-g00ecf