mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 07:33:34 +01:00
Emagged deepfryer no longer tries to deepfry grabs (#20679)
* Deepfryer no longer tries to deepfry grabs * Update code/modules/food_and_drinks/kitchen_machinery/cooker.dm Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> --------- Co-authored-by: adrermail@gmail.com <adrermail@gmail.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
@@ -110,8 +110,6 @@
|
||||
if(on)
|
||||
to_chat(user, "<span class='notice'>[src] is still active!</span>")
|
||||
return FALSE
|
||||
if(istype(check, /obj/item/grab))
|
||||
return can_grab_attack(check, user, TRUE) // tell the user here
|
||||
if(has_specials && checkSpecials(check))
|
||||
return TRUE
|
||||
if(istype(check, /obj/item/reagent_containers/food/snacks) || emagged)
|
||||
@@ -191,6 +189,8 @@
|
||||
if(panel_open)
|
||||
to_chat(user, "<span class='warning'>Close the panel first!</span>")
|
||||
return
|
||||
if(istype(I, /obj/item/grab))
|
||||
return special_attack_grab(I, user)
|
||||
if(!checkValid(I, user))
|
||||
return
|
||||
if(!burns)
|
||||
@@ -207,8 +207,7 @@
|
||||
else
|
||||
L.death()
|
||||
break
|
||||
if(istype(I, /obj/item/grab))
|
||||
return special_attack_grab(I, user)
|
||||
|
||||
addtimer(CALLBACK(src, PROC_REF(finish_cook), I, user), cooktime)
|
||||
|
||||
/obj/machinery/cooker/proc/finish_cook(obj/item/I, mob/user, params)
|
||||
|
||||
Reference in New Issue
Block a user