Skip to content

Commit

Permalink
better....
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Sep 28, 2023
1 parent 39078f4 commit 22817a1
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions code/modules/food_and_drinks/kitchen_machinery/microwave.dm
Original file line number Diff line number Diff line change
Expand Up @@ -394,18 +394,19 @@
tocook = null

/obj/item/ration_heater/proc/cook()
var/cookturf = get_turf(tocook)
tocook.visible_message("<span class='notice'>\The [src] lets out a final hiss...</span>")
playsound(tocook, 'sound/items/cig_snuff.ogg', 50, 1)
if(istype(tocook, /obj/item/reagent_containers/food) || istype(tocook, /obj/item/grown))
tocook.visible_message("<span class='notice'>\The [tocook] is done warming up!</span>")
tocook.microwave_act()
clear_cooking()
if(uses == 0)
qdel()
else
uses--
src.forceMove(cookturf)
if(!QDELETED(tocook))
var/cookturf = get_turf(tocook)
tocook.visible_message("<span class='notice'>\The [src] lets out a final hiss...</span>")
playsound(tocook, 'sound/items/cig_snuff.ogg', 50, 1)
if(istype(tocook, /obj/item/reagent_containers/food) || istype(tocook, /obj/item/grown))
tocook.visible_message("<span class='notice'>\The [tocook] is done warming up!</span>")
tocook.microwave_act()
clear_cooking()
if(uses == 0)
qdel()
else
uses--
src.forceMove(cookturf)

/obj/item/ration_heater/examine(mob/user)
. = ..()
Expand Down

0 comments on commit 22817a1

Please sign in to comment.