mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Co-authored-by: Changelogs <action@github.com> Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
35 lines
679 B
Plaintext
35 lines
679 B
Plaintext
/datum/wires/explosive
|
|
wire_count = 1
|
|
proper_name = "Explosive wires"
|
|
|
|
/datum/wires/explosive/New(atom/_holder)
|
|
wires = list(WIRE_EXPLODE)
|
|
return ..()
|
|
|
|
/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)
|
|
switch(wire)
|
|
if(WIRE_EXPLODE)
|
|
if(!mend)
|
|
explode()
|
|
|
|
/datum/wires/explosive/c4
|
|
holder_type = /obj/item/plastique
|
|
|
|
/datum/wires/explosive/c4/interactable(mob/user)
|
|
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))
|