mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-05 23:21:53 +00:00
23 lines
476 B
Plaintext
23 lines
476 B
Plaintext
/datum/wires/tesla_coil
|
|
wire_count = 1
|
|
holder_type = /obj/machinery/power/tesla_coil
|
|
|
|
var/const/WIRE_ZAP = 1
|
|
|
|
/datum/wires/tesla_coil/GetWireName(index)
|
|
switch(index)
|
|
if(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(WIRE_ZAP)
|
|
T.zap()
|
|
..() |