mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user