Adds New Alert Levels (#6019)

* Adds New Alert Levels
This commit is contained in:
Novacat
2019-03-30 18:28:27 -04:00
committed by VirgoBot
parent 7d858109f9
commit 2c07c85138
13 changed files with 159 additions and 15 deletions
+1 -1
View File
@@ -919,7 +919,7 @@ var/list/admin_verbs_event_manager = list(
set category = "Admin"
if(!check_rights(R_ADMIN)) return
var sec_level = input(usr, "It's currently code [get_security_level()].", "Select Security Level") as null|anything in (list("green","blue","red","delta")-get_security_level())
var sec_level = input(usr, "It's currently code [get_security_level()].", "Select Security Level") as null|anything in (list("green","yellow","violet","orange","blue","red","delta")-get_security_level())
if(alert("Switch from code [get_security_level()] to code [sec_level]?","Change security level?","Yes","No") == "Yes")
set_security_level(sec_level)
log_admin("[key_name(usr)] changed the security level to code [sec_level].")