Port SSnightshift from Paradise

Makes the station have a night mode.
This commit is contained in:
Aronai Sieyes
2020-05-03 17:50:58 -04:00
parent 3c2b4c9865
commit aa6d22097b
11 changed files with 197 additions and 20 deletions

View File

@@ -64,10 +64,6 @@
else
security_announcement_down.Announce("[config.alert_desc_red_downto]", "Attention! Code red!")
security_level = SEC_LEVEL_RED
/* - At the time of commit, setting status displays didn't work properly
var/obj/machinery/computer/communications/CC = locate(/obj/machinery/computer/communications,world)
if(CC)
CC.post_status("alert", "redalert")*/
if(SEC_LEVEL_DELTA)
security_announcement_up.Announce("[config.alert_desc_delta]", "Attention! Delta alert level reached!", new_sound = 'sound/effects/siren.ogg')
security_level = SEC_LEVEL_DELTA
@@ -84,6 +80,10 @@
atc.reroute_traffic(yes = 1) // Tell them fuck off we're busy.
else
atc.reroute_traffic(yes = 0)
spawn()
SSnightshift.check_nightshift()
admin_chat_message(message = "Security level is now: [uppertext(get_security_level())]", color = "#CC2222") //VOREStation Add
/proc/get_security_level()