From d578e2bc1a3abc761479df63aca8e14593a37b37 Mon Sep 17 00:00:00 2001 From: MoreRobustThanYou Date: Sun, 25 Feb 2018 18:53:31 -0500 Subject: [PATCH] You can now emty boxes into microwaves --- code/obj/machinery/microwave.dm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/obj/machinery/microwave.dm b/code/obj/machinery/microwave.dm index c58f4f7c..95f61db2 100644 --- a/code/obj/machinery/microwave.dm +++ b/code/obj/machinery/microwave.dm @@ -68,6 +68,11 @@ obj/machinery/microwave/attackby(var/obj/item/O as obj, var/mob/user as mob) src.icon_state = "mw" else //Otherwise bad luck!! return + else if(istype(O, /obj/item/storage/box)) + var/obj/item/storage/box/a_box = O + src.visible_message("[user] empties [a_box] into the microwave.") + for(var/obj/item/I in a_box.contents) + attackby(I, user) else if(istype(O, /obj/item/reagent_containers/food/snacks/ingredient/egg)) // If an egg is used, add it if(src.egg_amount < 5) src.visible_message("[user] adds an egg to the microwave.") @@ -279,4 +284,4 @@ Please clean it before use!
src.operating = 0 // Turn the microwave back off src.icon_state = "mw" else - return \ No newline at end of file + return