mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-05 15:11:38 +00:00
* When I code it. Adds the door runtime event. * Removes spawn * styling Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
17 lines
729 B
Plaintext
17 lines
729 B
Plaintext
/datum/event/door_runtime
|
|
|
|
/datum/event/door_runtime/announce()
|
|
GLOB.minor_announcement.Announce("Hostile runtime detected in door controllers. Isolation lockdown protocols are now in effect. Please remain calm.", "Network Alert")
|
|
|
|
/datum/event/door_runtime/start()
|
|
for(var/obj/machinery/door/D in GLOB.airlocks)
|
|
if(!is_station_level(D.z))
|
|
continue
|
|
INVOKE_ASYNC(D, /obj/machinery/door.proc/hostile_lockdown)
|
|
addtimer(CALLBACK(D, /obj/machinery/door.proc/disable_lockdown), 90 SECONDS)
|
|
addtimer(CALLBACK(src, .proc/reboot), 90 SECONDS)
|
|
post_status("alert", "lockdown")
|
|
|
|
/datum/event/door_runtime/proc/reboot()
|
|
GLOB.minor_announcement.Announce("Automatic system reboot complete. Have a secure day.","Network reset:")
|