Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Improved nightshift check on security level change #362

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#24695
Original PR: tgstation/tgstation#79369

About The Pull Request

Modifies the security level change proc to only fire the nightshift subsystem if the subsystem is running, and if a lighting change is required. If a lighting change is required, nightshift has its next fire set 7 seconds after, so announcements and sounds don't stack.

Why It's Good For The Game

Nightshift is only updated when required, eliminating nuisance announcements when levels unrelated to red/delta are selected.

Changelog

🆑 LT3
code: Changing security levels will only trigger the nightshift subsystem if lighting changes are required
/:cl:

…RE] (#24695)

* Improved nightshift check on security level change (#79369)

## About The Pull Request

Modifies the security level change proc to only fire the nightshift
subsystem if the subsystem is running, and if a lighting change is
required. If a lighting change is required, nightshift has its next fire
set 7 seconds after, so announcements and sounds don't stack.

## Why It's Good For The Game

Nightshift is only updated when required, eliminating nuisance
announcements when levels unrelated to red/delta are selected.

## Changelog

:cl: LT3
code: Changing security levels will only trigger the nightshift
subsystem if lighting changes are required
/:cl:

* Improved nightshift check on security level change

---------

Co-authored-by: lessthanthree <[email protected]>
@Iajret Iajret merged commit fc2bc2f into master Oct 31, 2023
24 checks passed
@Iajret Iajret deleted the upstream-mirror-24695 branch October 31, 2023 19:25
AnywayFarus added a commit that referenced this pull request Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants