mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
22 lines
494 B
Plaintext
22 lines
494 B
Plaintext
/datum/wires/tesla_coil
|
|
wire_count = 1
|
|
holder_type = /obj/machinery/power/tesla_coil
|
|
proper_name = "Tesla coil"
|
|
|
|
/datum/wires/tesla_coil/New(atom/_holder)
|
|
wires = list(WIRE_TESLACOIL_ZAP)
|
|
return ..()
|
|
|
|
/datum/wires/tesla_coil/interactable(mob/user)
|
|
var/obj/machinery/power/tesla_coil/T = holder
|
|
if(T && T.panel_open)
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/datum/wires/tesla_coil/on_pulse(wire)
|
|
var/obj/machinery/power/tesla_coil/T = holder
|
|
switch(wire)
|
|
if(WIRE_TESLACOIL_ZAP)
|
|
T.zap()
|
|
..()
|