diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-07 21:24:48 +0300 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-11-07 19:23:49 +0100 |
commit | 63c1479a6d718e7ecdb4a9334b03737729cd5346 (patch) | |
tree | b928db7503d65cb342875f6dbf526e657ae640be /crawl-ref/source/itemprop.cc | |
parent | 816b651b6853e316be14964ec0aba419de373126 (diff) | |
download | crawl-ref-63c1479a6d718e7ecdb4a9334b03737729cd5346.tar.gz crawl-ref-63c1479a6d718e7ecdb4a9334b03737729cd5346.zip |
Remove unused is_double_ended and double_wpn_awkward_speed.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index c220166ba9..2e93a44b18 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -1693,25 +1693,6 @@ hands_reqd_type hands_reqd( const item_def &item, size_type size ) return (static_cast< hands_reqd_type >( ret )); } -bool is_double_ended( const item_def &item ) -{ - if (item.base_type == OBJ_STAVES) - return (true); - else if (item.base_type != OBJ_WEAPONS) - return (false); - - return (Weapon_prop[ Weapon_index[item.sub_type] ].hands == HANDS_DOUBLE); -} - -int double_wpn_awkward_speed( const item_def &item ) -{ - ASSERT( is_double_ended( item ) ); - - const int base = property( item, PWPN_SPEED ); - - return ((base * 30 + 10) / 20 + 2); -} - bool is_demonic(const item_def &item) { if (item.base_type == OBJ_WEAPONS) |