]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Station event component and system tweaks (#28331)
authorMilenVolf <63782763+MilenVolf@users.noreply.github.com>
Sat, 1 Jun 2024 20:34:58 +0000 (23:34 +0300)
committerGitHub <noreply@github.com>
Sat, 1 Jun 2024 20:34:58 +0000 (16:34 -0400)
commit5d970b0861d5c8327ba8e62fd3dd81333dc125af
tree640926cca739182a7e29a833b34cff0303a81b2e
parent8c32072f67cbab2f69647ff1e78c3f62e705639a
Station event component and system tweaks (#28331)

* Make anomaly, artifact and gifts events announcement sound optional

* Requested changes + Added new "GameRuleAfterAddedEvent" for StationEventSystem

We need to call "Add" in "StationEventSystem" after others GameRule's in case if we need to change StationEventComponent variables.

* Fix margins

* Makes use of GameRuleComponent.Delay and remove station system handling of delays plus small cleanup

* Fix merge

---------

Co-authored-by: AJCM <AJCM@tutanota.com>
13 files changed:
Content.Server/Chat/Systems/ChatSystem.cs
Content.Server/StationEvents/Components/StationEventComponent.cs
Content.Server/StationEvents/Events/AnomalySpawnRule.cs
Content.Server/StationEvents/Events/BluespaceArtifactRule.cs
Content.Server/StationEvents/Events/BreakerFlipRule.cs
Content.Server/StationEvents/Events/CargoGiftsRule.cs
Content.Server/StationEvents/Events/FalseAlarmRule.cs
Content.Server/StationEvents/Events/GasLeakRule.cs
Content.Server/StationEvents/Events/StationEventSystem.cs
Content.Server/SurveillanceCamera/Systems/SurveillanceCameraMicrophoneSystem.cs
Resources/Locale/en-US/station-events/events/anomaly-spawn.ftl
Resources/Prototypes/GameRules/cargo_gifts.yml
Resources/Prototypes/GameRules/events.yml