mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-16 04:12:21 +00:00
* 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>
36 lines
639 B
Plaintext
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))
|