Skip to content

Commit

Permalink
Comms console can no longer lower the alert from delta/epsilon
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Oct 27, 2024
1 parent f057d02 commit 8f16f12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion code/game/machinery/computer/communications.dm
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,18 @@
playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, FALSE)
return

// monkestation start: prevent lowering alert level from delta
var/new_sec_level = SSsecurity_level.text_level_to_number(params["newSecurityLevel"])
var/current_sec_level = SSsecurity_level.get_current_level_as_number()
if (current_sec_level > SEC_LEVEL_RED)
to_chat(usr, span_warning("Alert cannot be manually lowered from the current security level!"))
playsound(src, 'sound/machines/terminal_prompt_deny.ogg', 50, FALSE)
return
if (new_sec_level != SEC_LEVEL_GREEN && new_sec_level != SEC_LEVEL_BLUE)
return
if (SSsecurity_level.get_current_level_as_number() == new_sec_level)
if (current_sec_level == new_sec_level)
return
// monkestation end

SSsecurity_level.set_level(new_sec_level)

Expand Down

0 comments on commit 8f16f12

Please sign in to comment.