Files
Fluffy 4758c4edd0 Fixed claymores not detonating on signal (#19409)
Fixed claymores not detonating on signal
2024-06-11 08:34:43 +00:00

42 lines
822 B
Plaintext

/datum/wires/landmine/New()
wires = list(
WIRE_EXPLODE
)
add_duds(3)
..()
/datum/wires/landmine/proc/explode()
return
/datum/wires/landmine/on_pulse(wire, user)
switch(wire)
if(WIRE_EXPLODE)
explode()
/datum/wires/landmine/on_cut(wire, mend, source)
switch(wire)
if(WIRE_EXPLODE)
if(!mend)
explode()
/datum/wires/landmine/get_wire(color)
if(color == WIRE_EXPLODE)
return WIRE_EXPLODE
else
return ..()
/datum/wires/landmine/claymore
holder_type = /obj/item/landmine/claymore
/datum/wires/landmine/claymore/interactable(mob/user)
if(!..())
return
var/obj/item/landmine/claymore/claymore = holder
if(!claymore.deactivated && claymore.deployed)
return TRUE
return FALSE
/datum/wires/landmine/claymore/explode()
var/obj/item/landmine/claymore/claymore = holder
claymore.trigger()