BUTCHER ALL THE THINGA

This commit is contained in:
Aurorablade
2016-03-25 20:08:06 -04:00
parent 4557d17730
commit 8dd0aecac8
5 changed files with 8 additions and 13 deletions
+2 -6
View File
@@ -15,18 +15,14 @@
/mob/living/attackby(obj/item/I, mob/user, params)
user.changeNext_move(CLICK_CD_MELEE)
if(user.a_intent == I_HARM && stat == DEAD && !isnull(butcher_results)) //can we butcher it?
if(stat == DEAD && !isnull(butcher_results)) //can we butcher it?
if(istype(I, /obj/item/weapon/kitchen/knife))
world << "living"
user << "<span class='notice'>You begin to butcher [src]...</span>"
playsound(loc, 'sound/weapons/slice.ogg', 50, 1, -1)
if(do_mob(user, src, 80))
harvest(user)
return
if(istype(I) && ismob(user))
I.attack(src, user)
I.attack(src, user)
// Proximity_flag is 1 if this afterattack was called on something adjacent, in your square, or on your person.