diff options
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 9f10028228..185e9b86f4 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -2608,11 +2608,12 @@ bool is_useless_item(const item_def &item, bool temp) break; case OBJ_FOOD: - if (item.sub_type != FOOD_CHUNK || !is_inedible(item)) + if (!is_inedible(item)) return (false); - if (you.has_spell(SPELL_SUBLIMATION_OF_BLOOD) - || you.has_spell(SPELL_SIMULACRUM)) + if (item.sub_type == FOOD_CHUNK + && (you.has_spell(SPELL_SUBLIMATION_OF_BLOOD) + || you.has_spell(SPELL_SIMULACRUM))) { return (false); } |