diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-31 01:58:21 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-31 01:58:21 +0000 |
commit | 41360b79153ca8182094e695ad0a7805ee2946b0 (patch) | |
tree | 3a17a3e7f2494e2f1dcff4a70607a67008a311aa /crawl-ref/source/itemname.cc | |
parent | dc10636ab5cbd9ba1848c8851ef4ce4e456fee35 (diff) | |
download | crawl-ref-41360b79153ca8182094e695ad0a7805ee2946b0.tar.gz crawl-ref-41360b79153ca8182094e695ad0a7805ee2946b0.zip |
Inedible chunks of flesh are useless unless you know Sublimation of Blood or
Simulacrum, and skeletons are useless unless you can animate them or know Bone
Shards.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8046 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 99554a5023..52391af499 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -2502,10 +2502,39 @@ bool is_useless_item(const item_def &item, bool temp) case OBJ_STAVES: if (you.religion == GOD_TROG && !item_is_rod(item)) return (true); + break; + + case OBJ_FOOD: + if (item.sub_type != FOOD_CHUNK || !is_inedible(item)) + return (false); + + if (you.has_spell(SPELL_SUBLIMATION_OF_BLOOD) + || you.has_spell(SPELL_SIMULACRUM)) + { + return (false); + } + return (true); + + case OBJ_CORPSES: + if (item.sub_type != CORPSE_SKELETON) + return (false); + + if (you.has_spell(SPELL_BONE_SHARDS) + || you.has_spell(SPELL_ANIMATE_DEAD) + || you.has_spell(SPELL_ANIMATE_SKELETON) + || you.mutation[MUT_RAISE_DEAD] + || you.religion == GOD_YREDELEMNUL + && you.piety >= piety_breakpoint(0)) + { + return (false); + } + + return (true); default: return (false); } + return (false); } static const std::string _item_prefix(const item_def &item, bool temp, |