diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-07 22:02:11 +0300 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-07 20:00:56 +0100 |
commit | 5775da5b7de46dbfb59a2f9a8e2ecb0a971e28ee (patch) | |
tree | 5f63aff7b2b5a0d0b55d0fd32155362b9418a777 /crawl-ref | |
parent | 3c9fa6372b74dbc85e9346775fed33c9c05bca0c (diff) | |
download | crawl-ref-5775da5b7de46dbfb59a2f9a8e2ecb0a971e28ee.tar.gz crawl-ref-5775da5b7de46dbfb59a2f9a8e2ecb0a971e28ee.zip |
Remove unused weapon_impact_mass and weapon_str_required.
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 16 | ||||
-rw-r--r-- | crawl-ref/source/itemprop.h | 2 |
2 files changed, 0 insertions, 18 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 441e480b33..2f08233560 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -1879,22 +1879,6 @@ int weapon_dex_weight( const item_def &wpn ) return (10 - weapon_str_weight( wpn )); } -int weapon_impact_mass( const item_def &wpn ) -{ - ASSERT (wpn.base_type == OBJ_WEAPONS || wpn.base_type == OBJ_STAVES); - - return ((weapon_str_weight( wpn ) * item_mass( wpn ) + 5) / 10); -} - -int weapon_str_required( const item_def &wpn, bool hand_half ) -{ - ASSERT (wpn.base_type == OBJ_WEAPONS || wpn.base_type == OBJ_STAVES); - - const int req = weapon_impact_mass( wpn ) / ((hand_half) ? 11 : 10); - - return ((req < STR_REQ_THRESHOLD) ? 0 : req); -} - // Returns melee skill of item. skill_type weapon_skill( const item_def &item ) { diff --git a/crawl-ref/source/itemprop.h b/crawl-ref/source/itemprop.h index cbc51d6fb9..3508c87c35 100644 --- a/crawl-ref/source/itemprop.h +++ b/crawl-ref/source/itemprop.h @@ -689,8 +689,6 @@ int single_damage_type(const item_def &item); int weapon_str_weight( const item_def &wpn ); int weapon_dex_weight( const item_def &wpn ); -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( object_class_type wclass, int wtype ); |