summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-12-27 19:00:10 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-12-27 19:00:10 +0300
commit507c3523d54cd2c15185f06f8be1f1ea353497d8 (patch)
tree2cea6119f61c8c03c9333537d554685d9ebe71d2 /crawl-ref/source/itemprop.cc
parent76b76949fb3f6fe4c1e735f0b1d9ef72ae4a6a68 (diff)
downloadcrawl-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.cc15
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)
{