Files
Aurora.3/code/datums/wires/explosive.dm
Matt Atlas 23c0fd7b4f Autolathe and wires panel TGUI, autolathe queueing. (#17978)
* 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>
2023-12-21 11:40:49 +00:00

36 lines
639 B
Plaintext

/datum/wires/explosive/New()
wires = list(
WIRE_EXPLODE
)
add_duds(4)
..()
/datum/wires/explosive/proc/explode()
return
/datum/wires/explosive/on_pulse(wire)
switch(wire)
if(WIRE_EXPLODE)
explode()
/datum/wires/explosive/on_cut(wire, mend, source)
switch(wire)
if(WIRE_EXPLODE)
if(!mend)
explode()
/datum/wires/explosive/c4
holder_type = /obj/item/plastique
/datum/wires/explosive/c4/interactable(mob/user)
if(!..())
return FALSE
var/obj/item/plastique/P = holder
if(P.open_panel)
return TRUE
return FALSE
/datum/wires/explosive/c4/explode()
var/obj/item/plastique/P = holder
P.explode(get_turf(P))