git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1406 c06c8d41-db1a-0410-9941-cceddc491573
GGEB64C3QQ5PPS7GOFXULDUCRT2NZL2PMIE5UDDUJTUTLLPTDU7QC
static bool is_item_jelly_edible(const item_def &item)
{
// don't eat artefacts (note that unrandarts are randarts)
if (is_fixed_artefact(item) || is_random_artefact(item))
return (false);
// shouldn't eat stone things
// - but what about wands and rings?
if (item.base_type == OBJ_MISSILES
&& (item.sub_type == MI_STONE || item.sub_type == MI_LARGE_ROCK))
{
return (false);
}
// don't eat special game items
if (item.base_type == OBJ_ORBS
|| (item.base_type == OBJ_MISCELLANY
&& (item.sub_type == MISC_RUNE_OF_ZOT
|| item.sub_type == MISC_HORN_OF_GERYON)))
{
return (false);
}
return (true);
}
// don't eat artefacts (note that unrandarts are randarts)
if (is_fixed_artefact(mitm[item]) ||
is_random_artefact(mitm[item]))
continue;
// shouldn't eat stone things
// - but what about wands and rings?
if (mitm[item].base_type == OBJ_MISSILES
&& (mitm[item].sub_type == MI_STONE
|| mitm[item].sub_type == MI_LARGE_ROCK))
{
continue;
}