refactor: move status_display_bottom_text and fire_alarm_light_color to security level prototypes (#84830)

## About The Pull Request

Move security level related data from switch-cases to security level
prototypes.

## Why It's Good For The Game

Nothing player facing.
Cleaner code for coders

## Changelog

🆑
refactor: move `status_display_bottom_text` and `fire_alarm_light_color`
to security level prototypes
/🆑
This commit is contained in:
Gaxeer
2024-07-10 15:31:38 -06:00
committed by GitHub
parent 4166e25c9c
commit 5f2c598427
4 changed files with 15 additions and 27 deletions
@@ -59,15 +59,7 @@
post_status(picture)
else
if(picture == "currentalert") // You cannot set Code Blue display during Code Red and similiar
switch(SSsecurity_level.get_current_level_as_number())
if(SEC_LEVEL_DELTA)
post_status("alert", "deltaalert")
if(SEC_LEVEL_RED)
post_status("alert", "redalert")
if(SEC_LEVEL_BLUE)
post_status("alert", "bluealert")
if(SEC_LEVEL_GREEN)
post_status("alert", "greenalert")
post_status("alert", SSsecurity_level?.current_security_level?.status_display_icon_state || "greenalert")
else
post_status("alert", picture)