diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 21:23:53 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 21:23:53 +0300 |
commit | 25249b3649e5684062a8f1bca74b852f3d6fd71c (patch) | |
tree | c2f8f0633a0c73893524a66a110a2c8e9a4bfe0c /crawl-ref/source/itemprop.cc | |
parent | dc3e12a4da48363a7cadb77f30b8e784d5f82acf (diff) | |
download | crawl-ref-25249b3649e5684062a8f1bca74b852f3d6fd71c.tar.gz crawl-ref-25249b3649e5684062a8f1bca74b852f3d6fd71c.zip |
Make item_is_mundane a method of item_def.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index ea2f8bd7b3..bf47f3ab96 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -562,33 +562,6 @@ bool item_ident( const item_def &item, unsigned long flags ) return ((item.flags & flags) == flags); } -// Is item something that no one would usually bother enchanting? -bool item_is_mundane(const item_def &item) -{ - switch (item.base_type) - { - case OBJ_WEAPONS: - if (item.sub_type == WPN_CLUB - || item.sub_type == WPN_GIANT_CLUB - || item.sub_type == WPN_GIANT_SPIKED_CLUB - || item.sub_type == WPN_KNIFE) - { - return (true); - } - break; - - case OBJ_ARMOUR: - if (item.sub_type == ARM_ANIMAL_SKIN) - return (true); - break; - - default: - break; - } - - return (false); -} - void set_ident_flags( item_def &item, unsigned long flags ) { preserve_quiver_slots p; |