From a1c0b93893d7594ca34fe7a2d92149d7dabfb691 Mon Sep 17 00:00:00 2001 From: MadmanMartian <30557196+MadmanMartian@users.noreply.github.com> Date: Mon, 18 Mar 2019 01:21:36 +0000 Subject: [PATCH] Adds a slow down lighting button (#22067) --- code/modules/admin/admin.dm | 1 + code/modules/admin/topic.dm | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 7ddc277c0f1..8008692a49b 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -715,6 +715,7 @@ var/global/floorIsLava = 0 Edit ZAS Settings
Choose a default ZAS setting
XGM Panel
+ Slow down lighting (Forces MC to crash, do not panic.)

"} diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 0a978182abc..a8518ef11b3 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -4150,6 +4150,15 @@ else if(href_list["xgm_panel"]) XGM.ui_interact(usr) + else if(href_list["toggle_light"]) + if(!SSticker.initialized) + to_chat(usr, "Please wait for initialization to complete.") + return + SSlighting.flags = SS_FIRE_IN_LOBBY //Purges the treat wait as ticks rather than DC + SSlighting.wait = 5 + Master.make_runtime = TRUE + + else if(href_list["toglang"]) if(check_rights(R_SPAWN)) var/mob/M = locate(href_list["toglang"])