mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 12:29:23 +01:00
4758c4edd0
Fixed claymores not detonating on signal
42 lines
822 B
Plaintext
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()
|