diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 19:00:10 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 19:00:10 +0300 |
commit | 507c3523d54cd2c15185f06f8be1f1ea353497d8 (patch) | |
tree | 2cea6119f61c8c03c9333537d554685d9ebe71d2 /crawl-ref/source/itemprop.cc | |
parent | 76b76949fb3f6fe4c1e735f0b1d9ef72ae4a6a68 (diff) | |
download | crawl-ref-507c3523d54cd2c15185f06f8be1f1ea353497d8.tar.gz crawl-ref-507c3523d54cd2c15185f06f8be1f1ea353497d8.zip |
Make item_is_critical a method of item_def.
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 720dfff844..ee8e022c63 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -567,21 +567,6 @@ bool item_ident( const item_def &item, unsigned long flags ) return ((item.flags & flags) == flags); } -// The Orb of Zot and unique runes are considered critical. -bool item_is_critical(const item_def &item) -{ - if (!item.is_valid()) - return (false); - - if (item.base_type == OBJ_ORBS) - return (true); - - return (item.base_type == OBJ_MISCELLANY - && item.sub_type == MISC_RUNE_OF_ZOT - && item.plus != RUNE_DEMONIC - && item.plus != RUNE_ABYSSAL); -} - // Is item something that no one would usually bother enchanting? bool item_is_mundane(const item_def &item) { |