Files
Paradise/code/datums/wires/tesla_coil.dm
AffectedArc07 04ba5c1cc9 File standardisation (#13131)
* Adds the check components

* Adds in trailing newlines

* Converts all CRLF to LF

* Post merge EOF

* Post merge line endings

* Final commit
2020-03-17 18:08:51 -04:00

24 lines
503 B
Plaintext

/datum/wires/tesla_coil
wire_count = 1
holder_type = /obj/machinery/power/tesla_coil
#define TESLACOIL_WIRE_ZAP 1
/datum/wires/tesla_coil/GetWireName(index)
switch(index)
if(TESLACOIL_WIRE_ZAP)
return "Zap"
/datum/wires/tesla_coil/CanUse(mob/living/L)
var/obj/machinery/power/tesla_coil/T = holder
if(T && T.panel_open)
return 1
return 0
/datum/wires/tesla_coil/UpdatePulsed(index)
var/obj/machinery/power/tesla_coil/T = holder
switch(index)
if(TESLACOIL_WIRE_ZAP)
T.zap()
..()