summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/food.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r--crawl-ref/source/food.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc
index 8c3a54f8cd..55dc1bc1e1 100644
--- a/crawl-ref/source/food.cc
+++ b/crawl-ref/source/food.cc
@@ -475,13 +475,14 @@ bool butchery(int which_corpse)
&& you.species != SP_VAMPIRE);
bool barehand_butcher = (transform_can_butcher_barehanded(transform)
- || you.has_claws()) && you.equip[EQ_GLOVES] == -1;
+ || you.has_claws())
+ && !player_wearing_slot(EQ_GLOVES);
- bool gloved_butcher = (you.has_claws() && you.equip[EQ_GLOVES] != -1
+ bool gloved_butcher = (you.has_claws() && player_wearing_slot(EQ_GLOVES)
&& !item_cursed(you.inv[you.equip[EQ_GLOVES]]));
- bool can_butcher = teeth_butcher || barehand_butcher
- || (you.weapon() && can_cut_meat(*you.weapon()));
+ bool can_butcher = (teeth_butcher || barehand_butcher
+ || you.weapon() && can_cut_meat(*you.weapon()));
if (!Options.easy_butcher && !can_butcher)
{