mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 04:17:33 +01:00
23c0fd7b4f
* 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>
36 lines
706 B
Plaintext
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()
|