mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
* Preliminary changes for 516 * Also removes the goon folder * Fixes a BUNCH of UIs * update our things * debug proc * le maintainer verb * fix strip panel * browseroutput => chat_panel * prettier, remove obsolete bat * tidu tgui say css * href purge * 515 compat * 515 compat 2 * more required chores * comments * fully working 515 * bungle * correct this * fixes 515 support * prettier * new CI * fixes old href styles sneaking in * update docs to reflect href changes * more href fixes (thanks cdui) * MORE href nonsense * even more hrefs (seriously wtf) * Update code/modules/admin/permissionverbs/permissionedit.dm * error on fail --------- Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
57 lines
1.9 KiB
Plaintext
57 lines
1.9 KiB
Plaintext
/datum/wires/nuclearbomb
|
|
holder_type = /obj/machinery/nuclearbomb
|
|
randomize = TRUE
|
|
wire_count = 7 // 3 actual, 4 duds.
|
|
proper_name = "Nuclear bomb"
|
|
|
|
/datum/wires/nuclearbomb/New(atom/_holder)
|
|
wires = list(WIRE_BOMB_LIGHT, WIRE_BOMB_TIMING, WIRE_BOMB_SAFETY)
|
|
return ..()
|
|
|
|
/datum/wires/nuclearbomb/interactable(mob/user)
|
|
var/obj/machinery/nuclearbomb/N = holder
|
|
if(N.panel_open)
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/datum/wires/nuclearbomb/get_status()
|
|
. = ..()
|
|
var/obj/machinery/nuclearbomb/N = holder
|
|
. += "The device is [N.timing ? "shaking!" : "still."]"
|
|
. += "The device is [N.safety ? "quiet" : "whirring"]."
|
|
. += "The lights are [N.lighthack ? "static" : "functional"]."
|
|
|
|
/datum/wires/nuclearbomb/on_pulse(wire)
|
|
var/obj/machinery/nuclearbomb/N = holder
|
|
switch(wire)
|
|
if(WIRE_BOMB_LIGHT)
|
|
N.lighthack = !N.lighthack
|
|
addtimer(CALLBACK(N, TYPE_PROC_REF(/obj/machinery/nuclearbomb, reset_lighthack_callback)), 10 SECONDS)
|
|
|
|
if(WIRE_BOMB_TIMING)
|
|
if(N.timing)
|
|
message_admins("[key_name_admin(usr)] pulsed a nuclear bomb's detonation wire, causing it to explode (<A href='byond://?_src_=holder;adminplayerobservecoodjump=1;X=[holder.x];Y=[holder.y];Z=[holder.z]'>JMP</a>)")
|
|
N.explode()
|
|
|
|
if(WIRE_BOMB_SAFETY)
|
|
N.safety = !N.safety
|
|
addtimer(CALLBACK(N, TYPE_PROC_REF(/obj/machinery/nuclearbomb, reset_safety_callback)), 10 SECONDS)
|
|
|
|
/datum/wires/nuclearbomb/on_cut(wire, mend)
|
|
var/obj/machinery/nuclearbomb/N = holder
|
|
switch(wire)
|
|
if(WIRE_BOMB_SAFETY)
|
|
if(N.timing)
|
|
message_admins("[key_name_admin(usr)] cut a nuclear bomb's timing wire, causing it to explode (<A href='byond://?_src_=holder;adminplayerobservecoodjump=1;X=[holder.x];Y=[holder.y];Z=[holder.z]'>JMP</a>)")
|
|
N.explode()
|
|
|
|
if(WIRE_BOMB_TIMING)
|
|
if(!N.lighthack)
|
|
if(N.icon_state == "nuclearbomb2")
|
|
N.icon_state = "nuclearbomb1"
|
|
N.timing = FALSE
|
|
GLOB.bomb_set = FALSE
|
|
|
|
if(WIRE_BOMB_LIGHT)
|
|
N.lighthack = !N.lighthack
|