Skip to content

Commit

Permalink
i dunno what to do :c
Browse files Browse the repository at this point in the history
  • Loading branch information
FalloutFalcon committed Sep 28, 2023
1 parent 12742cf commit 39078f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/modules/food_and_drinks/food/ration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
amount_per_transfer_from_this = 10
possible_transfer_amounts = list()

/obj/item/reagent_containers/food/snacks/ration/attack(mob/living/M, mob/user, def_zone)
/obj/item/reagent_containers/food/snacks/ration/condiment/attack(mob/living/M, mob/user, def_zone)
if (!is_drainable())
to_chat(user, "<span class='warning'>[src] is sealed shut!</span>")
return 0
Expand Down Expand Up @@ -121,7 +121,7 @@
amount_per_transfer_from_this = 10
possible_transfer_amounts = list()

/obj/item/reagent_containers/food/snacks/ration/attack(mob/living/M, mob/user, def_zone)
/obj/item/reagent_containers/food/snacks/ration/pack/attack(mob/living/M, mob/user, def_zone)
if (!is_drainable())
to_chat(user, "<span class='warning'>[src] is sealed shut!</span>")
return 0
Expand Down
3 changes: 2 additions & 1 deletion code/modules/food_and_drinks/kitchen_machinery/microwave.dm
Original file line number Diff line number Diff line change
Expand Up @@ -391,15 +391,16 @@
SIGNAL_HANDLER
UnregisterSignal(tocook, COMSIG_PARENT_QDELETING)
tocook.cut_overlay(ration_overlay)
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>")
clear_cooking()
tocook.microwave_act()
clear_cooking()
if(uses == 0)
qdel()
else
Expand Down

0 comments on commit 39078f4

Please sign in to comment.