summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-07 21:29:28 +0300
committerAdam Borowski <kilobyte@angband.pl>2009-11-07 19:24:10 +0100
commit5d2a499bab2f4c907e08803542329c65edb8231c (patch)
tree48b19f9a0ff2b9879777ff0bdf804e7457c62d86 /crawl-ref/source/itemprop.cc
parentd84e50da7a1fd92e5c6615add2a3c4638288a4e0 (diff)
downloadcrawl-ref-5d2a499bab2f4c907e08803542329c65edb8231c.tar.gz
crawl-ref-5d2a499bab2f4c907e08803542329c65edb8231c.zip
Remove unused check_weapon_shape.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 66ac5748b1..93cd26c35a 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -2053,42 +2053,6 @@ bool check_weapon_wieldable_size( const item_def &item, size_type size )
return (fit == 0);
}
-// Note that this function is used to check validity of equipment
-// coming out of transformations... so it shouldn't contain any
-// wield/unwield only checks like two-handed weapons and shield.
-// check_id is only used for descriptions, where we don't want to
-// give away any information the player doesn't have yet.
-bool check_weapon_shape( const item_def &item, bool quiet, bool check_id )
-{
- const int brand = get_weapon_brand( item );
-
- if ((!check_id || item_type_known( item ))
- && ((item.base_type == OBJ_WEAPONS
- && is_blessed_blade(item))
- || brand == SPWPN_HOLY_WRATH)
- && you.is_unholy())
- {
- if (!quiet)
- mpr("This weapon will not allow you to wield it.");
-
- return (false);
- }
-
- // Note: this should always be done last, see check_armour_shape()
- // FIXME FIXME FIXME
- /*
- if (!transform_can_equip_type( EQ_WEAPON ))
- {
- if (!quiet)
- mpr( "You can't wield anything in your current form!" );
-
- return (false);
- }
- */
-
- return (true);
-}
-
// Returns the you.inv[] index of our wielded weapon or -1 (no item, not wield).
int get_inv_wielded( void )
{