Sorry about that, guys!
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5699 c06c8d41-db1a-0410-9941-cceddc491573
ANWYW2TK6OWBV2UCKMSPO6IIICOY7DATEGQTC6YMZUIJ3BW5TYFAC local skill = item.weap_skill(it)-- Have to handle polearms separately, since only some of them can butcher.if skill == "Polearms" or skill == "Staves" thenlocal butcherable_polearms = {"scythe", "lajatang", "halberd", "bardiche", "glaive"}
-- Don't make the user wield a known cursed weapon.if item.cursed(it) thenreturn falseend
-- Trolls and Ghouls don't need weapons to butcher things, and Mummies-- and Spriggans can't eat chunks. Ideally, we could detect a player-- with the claws mutation here too, but that's not currently possible.if you.race() == "Troll"or you.race() == "Ghoul"or you.race() == "Mummy"or you.race() == "Spriggan" thenreturn falseend
-- Same if you don't ever need to butcher corpses.if not you.can_consume_corpses() and not you.god_likes_butchery() thenreturn falseend
-- The item is not a good butchering tool, either.if item.cursed(it) or not can_butcher(it) then
-- Can this item even be used for butchering?if not can_butcher(it, name) thenreturn falseend-- Do we already have a butchering tool?for _, inv_it in pairs(item.inventory()) doif can_butcher(inv_it, item.name(inv_it)) then