mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
cl coiax add: Microwaves have a single wire accessible when open, the activation wire. When cut, the microwave will no longer function, when pulsed, the microwave will turn on. add: Stabilized dark purple extracts now cook items in your hands, rather than dropping the cooked item on the floor. /cl Previously microwaves just worked on their contents, now they keep a subset of contents called ingredients, because otherwise it would explode whenever you put a signaler inside. Someone asked me to do it. It seemed like a neat idea. God knows what horrible things people will do with this.
28 lines
567 B
Plaintext
28 lines
567 B
Plaintext
/datum/wires/microwave
|
|
holder_type = /obj/machinery/microwave
|
|
proper_name = "Microwave"
|
|
|
|
/datum/wires/microwave/New(atom/holder)
|
|
wires = list(
|
|
WIRE_ACTIVATE
|
|
)
|
|
..()
|
|
|
|
/datum/wires/microwave/interactable(mob/user)
|
|
. = FALSE
|
|
var/obj/machinery/microwave/M = holder
|
|
if(M.panel_open)
|
|
. = TRUE
|
|
|
|
/datum/wires/microwave/on_pulse(wire)
|
|
var/obj/machinery/microwave/M = holder
|
|
switch(wire)
|
|
if(WIRE_ACTIVATE)
|
|
M.cook()
|
|
|
|
/datum/wires/microwave/on_cut(wire, mend)
|
|
var/obj/machinery/microwave/M = holder
|
|
switch(wire)
|
|
if(WIRE_ACTIVATE)
|
|
M.wire_disabled = !mend
|