From dd695c352f27764a0c4f1efee5ee1676678162c2 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 26 Apr 2007 15:31:53 +0000 Subject: Made item_def::base_type into object_class_type, instead of unsigned char. Flushed out a few bugs as a result, specifically: 1. Some monsters (e.g., orcs) can now get blowguns as they were intended to (look at the makeitem.cc change); 2. Acquirement will no longer attempt to give you the books of minor magic if you've found them (look at the effects.cc change.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1374 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/itemprop.h') diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index 5536355779..df106f9a1d 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -88,7 +88,8 @@ int get_inv_hand_tool( void ); int get_inv_in_hand( void ); hands_reqd_type hands_reqd( const item_def &item, size_type size ); -hands_reqd_type hands_reqd(int base_type, int sub_type, size_type size); +hands_reqd_type hands_reqd(object_class_type base_type, int sub_type, + size_type size); bool is_double_ended( const item_def &item ); int double_wpn_awkward_speed( const item_def &item ); @@ -105,10 +106,10 @@ int weapon_impact_mass( const item_def &wpn ); int weapon_str_required( const item_def &wpn, bool half ); skill_type weapon_skill( const item_def &item ); -skill_type weapon_skill( int wclass, int wtype ); +skill_type weapon_skill( object_class_type wclass, int wtype ); skill_type range_skill( const item_def &item ); -skill_type range_skill( int wclass, int wtype ); +skill_type range_skill( object_class_type wclass, int wtype ); // launcher and ammo functions: bool is_range_weapon( const item_def &item ); -- cgit v1.2.3-54-g00ecf