mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
## About The Pull Request Fixes and tweaks to the radiation storm event. - Actually enables/revokes emergency maintenance access like the announcement says - Removes the part of the announcement telling people to go to medbay at the START of the radstorm - Adjusts the announcement text to match the audio - Fixes a check in minimum_security_level to ignore if emergency access is already enabled - Updated our alert proc with a new arg added by TG - The weather alert sound plays to people on the impacted Z level, making you aware the weather event started - Deletes a duplicate radiation.ogg that exists for some reason ## Proof Of Testing <details> <summary>Screenshots/Videos</summary> Shorter event announcement (No more 'please go to medbay') https://github.com/user-attachments/assets/552e4eeb-a09e-4467-b69c-f10add7ecdb1 </details> ## Changelog 🆑 LT3 fix: Radiation storm event actually enables maintenance access qol: Improved feedback and notifications for the radiation storm event /🆑
17 lines
741 B
Plaintext
17 lines
741 B
Plaintext
/**
|
|
* 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
|
|
*/
|
|
/datum/controller/subsystem/security_level/proc/minimum_security_level(min_level = SEC_LEVEL_ORANGE, eng_access = TRUE, maint_access = FALSE)
|
|
if(SSsecurity_level.get_current_level_as_number() < min_level)
|
|
SSsecurity_level.set_level(min_level)
|
|
|
|
if(eng_access)
|
|
GLOB.force_eng_override = TRUE
|
|
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_FORCE_ENG_OVERRIDE, TRUE)
|
|
|
|
if(maint_access && !GLOB.emergency_access)
|
|
make_maint_all_access(silent = TRUE)
|