Files
Matt Atlas 23c0fd7b4f Autolathe and wires panel TGUI, autolathe queueing. (#17978)
* autolathe 1

* FUCK MY LIFE

* more fixes

* autolathe queueing

* cl

* garbage collection

* wire fixes

* some final tweaks

* on second thought this might be annoying

* fix that

* whoopsies

* that didn't work for shit

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
2023-12-21 11:40:49 +00:00

36 lines
706 B
Plaintext

/datum/wires/iff
proper_name = "IFF Beacon"
holder_type = /obj/machinery/iff_beacon
/datum/wires/iff/New()
wires = list(
WIRE_RESET
)
add_duds(2)
..()
/datum/wires/iff/get_status()
var/obj/machinery/iff_beacon/I = holder
. += ..()
. += "[(I.use_power ? "The beacon is transmitting." : "The beacon is not transmitting.")]"
/datum/wires/iff/interactable(mob/user)
if(!..())
return FALSE
var/obj/machinery/iff_beacon/I = holder
return I.panel_open
/datum/wires/iff/on_cut(wire, mend, source)
var/obj/machinery/iff_beacon/I = holder
switch(wire)
if(WIRE_RESET)
if(!mend)
I.shock(usr, 50)
I.toggle()
I.disable()
else
I.shock(usr, 50)
I.enable()
I.toggle()