mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Butchering radial menu rework (#31080)
* Butchering radial menu rework * Check * Xeno claw * Now fully works * Frog legs, deer head * Repositionings * No radial menu for just one thing * No radial menu for just one thing * Removing that thing, also alt clicking carbons butchers them now * Fixed * Fixed Co-authored-by: kanef <kanef9x@protonmail.com>
This commit is contained in:
@@ -322,9 +322,15 @@
|
||||
user.client.statpanel = T.name
|
||||
|
||||
/mob/living/carbon/AltClick(var/mob/user)
|
||||
if(!(user == src) && !(isrobot(user)) && user.Adjacent(src))
|
||||
src.give_item(user)
|
||||
return
|
||||
if(!(user == src) && user.Adjacent(src))
|
||||
if((meat_type || butchering_drops) && (stat == DEAD)) //if the carbon has a meat, and if it is dead.
|
||||
var/obj/item/item_in_hand = user.get_active_hand()
|
||||
if(item_in_hand && (item_in_hand.sharpness_flags & SHARP_BLADE))
|
||||
butcher()
|
||||
return 1
|
||||
else if(!isrobot(user))
|
||||
src.give_item(user)
|
||||
return
|
||||
..()
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user