mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
34 lines
793 B
Plaintext
34 lines
793 B
Plaintext
/datum/wires/explosive
|
|
wire_count = 1
|
|
|
|
var/const/WIRE_EXPLODE = 1
|
|
|
|
/datum/wires/explosive/proc/explode()
|
|
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/wires/explosive/proc/explode() called tick#: [world.time]")
|
|
return
|
|
|
|
/datum/wires/explosive/UpdatePulsed(var/index)
|
|
switch(index)
|
|
if(WIRE_EXPLODE)
|
|
explode()
|
|
|
|
/datum/wires/explosive/UpdateCut(var/index, var/mended)
|
|
switch(index)
|
|
if(WIRE_EXPLODE)
|
|
if(!mended)
|
|
explode()
|
|
|
|
/datum/wires/explosive/plastic
|
|
holder_type = /obj/item/weapon/plastique
|
|
|
|
/datum/wires/explosive/plastic/CanUse(var/mob/living/L)
|
|
var/obj/item/weapon/plastique/P = holder
|
|
if(P.open_panel)
|
|
return 1
|
|
return 0
|
|
|
|
/datum/wires/explosive/plastic/explode()
|
|
var/obj/item/weapon/plastique/P = holder
|
|
P.explode(get_turf(P))
|
|
|