Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

You can now empty boxes into microwaves #49

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion code/obj/machinery/microwave.dm
Expand Up @@ -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("<span style=\"color:blue\">[user] empties [a_box] into the microwave.</span>")
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("<span style=\"color:blue\">[user] adds an egg to the microwave.</span>")
Expand Down Expand Up @@ -279,4 +284,4 @@ Please clean it before use!</TT><BR>
src.operating = 0 // Turn the microwave back off
src.icon_state = "mw"
else
return
return