Files
Yogstation/code/datums/wires/r_n_d.dm
TheGamerdk d9b76fe826 Ports 'Adds area-based wire layouts to airlocks' (#9681)
* thing

* Update machine_vending.dm

* Update tgui.bundle.js

* wires

* wires

* Update tgui.bundle.js

* thing

* Update machine_vending.dm

* wires

* wires

* Update tgui.bundle.js

* oops

* Update Space_Station_13_areas.dm

Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
2020-09-24 18:06:04 +01:00

41 lines
892 B
Plaintext

/datum/wires/rnd
holder_type = /obj/machinery/rnd
proper_name = "R&D Machinery"
randomize = TRUE
/datum/wires/rnd/New(atom/holder)
wires = list(
WIRE_HACK, WIRE_DISABLE,
WIRE_SHOCK
)
add_duds(5)
..()
/datum/wires/rnd/interactable(mob/user)
var/obj/machinery/rnd/R = holder
if(R.panel_open)
return TRUE
/datum/wires/rnd/get_status()
var/obj/machinery/rnd/R = holder
var/list/status = list()
status += "The red light is [R.disabled ? "off" : "on"]."
status += "The blue light is [R.hacked ? "off" : "on"]."
return status
/datum/wires/rnd/on_pulse(wire)
set waitfor = FALSE
var/obj/machinery/rnd/R = holder
switch(wire)
if(WIRE_HACK)
R.hacked = !R.hacked
if(WIRE_DISABLE)
R.disabled = !R.disabled
/datum/wires/rnd/on_cut(wire, mend)
var/obj/machinery/rnd/R = holder
switch(wire)
if(WIRE_HACK)
R.hacked = !mend
if(WIRE_DISABLE)
R.disabled = !mend