[MIRROR] Tweaks response provided by sssecurity_level during initialization [MDB IGNORE] (#14999)

* Tweaks response provided by sssecurity_level during initialization (#68500)

* Tweaks response provided by sssecurity_level during initialization

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-07-18 17:41:38 +02:00
committed by GitHub
parent f4c9a05c0e
commit 0b7aa724b6

View File

@@ -78,13 +78,13 @@ SUBSYSTEM_DEF(security_level)
* Returns the current security level as a number
*/
/datum/controller/subsystem/security_level/proc/get_current_level_as_number()
return current_security_level?.number_level
return current_security_level ? current_security_level.number_level : SEC_LEVEL_GREEN //Send a response in case the subsystem hasn't finished setting up yet
/**
* Returns the current security level as text
*/
/datum/controller/subsystem/security_level/proc/get_current_level_as_text()
return current_security_level?.name
return current_security_level ? current_security_level.name : "green"
/**
* Converts a text security level to a number