Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSair VV QoL, Fix Startup Warning #551

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion code/controllers/subsystem/zas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ SUBSYSTEM_DEF(zas)
///The last process, as a string, before the previous run ended.
var/last_process

/datum/controller/subsystem/zas/vv_get_dropdown()
. = ..()
VV_DROPDOWN_OPTION("", "---")
VV_DROPDOWN_OPTION("zas_reboot", "Reboot ZAS")

/datum/controller/subsystem/zas/vv_do_topic(list/href_list)
. = ..()
if(!.) // This means a safety check failed or this was cancelled
return
if(href_list["zas_reboot"])
log_admin("[usr] rebooted SSair.")
message_admins("[usr] rebooted SSair.")
Reboot()

///Stops processing while all ZAS-controlled airs and fires are nulled and the subsystem is reinitialized.
/datum/controller/subsystem/zas/proc/Reboot()
// Stop processing while we rebuild.
Expand Down Expand Up @@ -200,7 +214,7 @@ SUBSYSTEM_DEF(zas)

log_zas("ZAS: Air settling completed in [(REALTIMEOFDAY - starttime)/10] seconds!")

..(timeofday)
return SS_INIT_SUCCESS

/datum/controller/subsystem/zas/fire(resumed = FALSE, no_mc_tick)
var/timer = TICK_USAGE_REAL
Expand Down
Loading