mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
35 lines
700 B
Plaintext
35 lines
700 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/weapon/plastique
|
|
|
|
/datum/wires/explosive/c4/interactable(mob/user)
|
|
var/obj/item/weapon/plastique/P = holder
|
|
if(P.open_panel)
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/datum/wires/explosive/c4/explode()
|
|
var/obj/item/weapon/plastique/P = holder
|
|
P.explode(get_turf(P))
|