/tg/ Station 13 - Modules - TypesVar Details - Proc Details

security_level

Vars

alert_level_iconsA list of alert icon states for use in /obj/machinery/status_display/evac (to differentiate them from other display images)
available_levelsA list of initialised security level datums.
current_security_levelCurrently set security level

Procs

async_map_voteCalls a map vote only if there has not yet been an automatically triggered map vote.
get_current_level_as_numberReturns the current security level as a number
get_current_level_as_textReturns the current security level as text
minimum_security_levelCalled to check/change security level. Checks if the station security level is at least minimum_level, and if not, sets it to that level. Arguments determine if engineering override or maint access is granted. Arguments: min_level: number, eng_access: boolean, maint_access: boolean
number_level_to_textConverts a number security level to a text
offset_map_voteCalls the map vote with a time offset, to account for announcements and VOX playback, etc.
text_level_to_numberConverts a text security level to a number

Var Details

alert_level_icons

A list of alert icon states for use in /obj/machinery/status_display/evac (to differentiate them from other display images)

available_levels

A list of initialised security level datums.

current_security_level

Currently set security level

Proc Details

async_map_vote

Calls a map vote only if there has not yet been an automatically triggered map vote.

get_current_level_as_number

Returns the current security level as a number

get_current_level_as_text

Returns the current security level as text

minimum_security_level

Called to check/change security level. Checks if the station security level is at least minimum_level, and if not, sets it to that level. Arguments determine if engineering override or maint access is granted. Arguments: min_level: number, eng_access: boolean, maint_access: boolean

number_level_to_text

Converts a number security level to a text

Arguments:

offset_map_vote

Calls the map vote with a time offset, to account for announcements and VOX playback, etc.

text_level_to_number

Converts a text security level to a number

Arguments: