Adds station filter for alert level change sound (#9533)

This commit is contained in:
Flipp Syder
2022-07-08 02:25:35 -07:00
committed by GitHub
parent 1466a803f4
commit 07c622429a
2 changed files with 3 additions and 2 deletions

View File

@@ -173,7 +173,8 @@ public sealed class AlertLevelSystem : EntitySystem
{ {
if (detail.Sound != null) if (detail.Sound != null)
{ {
SoundSystem.Play(detail.Sound.GetSound(), Filter.Broadcast(), detail.Sound.Params); var filter = _stationSystem.GetInStation(station);
SoundSystem.Play(detail.Sound.GetSound(), filter, detail.Sound.Params);
} }
else else
{ {

View File

@@ -418,7 +418,7 @@ namespace Content.Server.Nuke
// Otherwise, you could set every station to whatever AlertLevelOnActivate is. // Otherwise, you could set every station to whatever AlertLevelOnActivate is.
if (stationUid != null) if (stationUid != null)
{ {
_alertLevel.SetLevel(stationUid.Value, component.AlertLevelOnActivate, false, true, true, true); _alertLevel.SetLevel(stationUid.Value, component.AlertLevelOnActivate, true, true, true, true);
} }
// warn a crew // warn a crew