Fixes emagged deep fryer softlocks (#18874)

This commit is contained in:
FloFluoro
2022-08-22 14:21:29 -04:00
committed by GitHub
parent a015d69797
commit 83d1058b1a
@@ -136,7 +136,12 @@
else
L.death()
break
sleep(cooktime)
addtimer(CALLBACK(src, .proc/finish_cook, I, user), cooktime)
/obj/machinery/cooker/proc/finish_cook(obj/item/I, mob/user, params)
if(QDELETED(I)) //For situations where the item being cooked gets deleted mid-cook (primed grenades)
turnoff()
return
if(I && I.loc == src)
//New interaction to allow special foods to be made/cooked via deepfryer without removing original functionality
//Define the foods/results on the specific machine --FalseIncarnate