Skip to content

Commit

Permalink
Adds station filter for alert level change sound (#9533)
Browse files Browse the repository at this point in the history
  • Loading branch information
vulppine authored Jul 8, 2022
1 parent 1466a80 commit 07c6224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Content.Server/AlertLevel/AlertLevelSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public void SetLevel(EntityUid station, string level, bool playSound, bool annou
{
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
{
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Nuke/NukeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public void ArmBomb(EntityUid uid, NukeComponent? component = null)
// Otherwise, you could set every station to whatever AlertLevelOnActivate is.
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
Expand Down

0 comments on commit 07c6224

Please sign in to comment.