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:
kane-f
2021-10-16 08:42:02 +01:00
committed by GitHub
parent 01334a7c99
commit 06de1c9cbd
3 changed files with 31 additions and 10 deletions

View File

@@ -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
..()
/*