Reorders Sound Systems signatures to match Popup Systems. (#8728)
This commit is contained in:
@@ -480,7 +480,7 @@ namespace Content.Server.GameTicking
|
||||
_chatSystem.DispatchGlobalStationAnnouncement(Loc.GetString(proto.Message), playDefaultSound: true);
|
||||
|
||||
if (proto.Sound != null)
|
||||
SoundSystem.Play(Filter.Broadcast(), proto.Sound.GetSound());
|
||||
SoundSystem.Play(proto.Sound.GetSound(), Filter.Broadcast());
|
||||
|
||||
// Only play one because A
|
||||
break;
|
||||
|
||||
@@ -216,7 +216,7 @@ public sealed class SuspicionRuleSystem : GameRuleSystem
|
||||
var filter = Filter.Empty()
|
||||
.AddWhere(session => ((IPlayerSession) session).ContentData()?.Mind?.HasRole<SuspicionTraitorRole>() ?? false);
|
||||
|
||||
SoundSystem.Play(filter, _addedSound.GetSound(), AudioParams.Default);
|
||||
SoundSystem.Play(_addedSound.GetSound(), filter, AudioParams.Default);
|
||||
|
||||
_doorSystem.AccessType = SharedDoorSystem.AccessTypes.AllowAllNoExternal;
|
||||
|
||||
|
||||
@@ -192,7 +192,7 @@ public sealed class TraitorRuleSystem : GameRuleSystem
|
||||
traitor.Mind.Briefing = Loc.GetString("traitor-role-codewords", ("codewords", string.Join(", ",codewords)));
|
||||
}
|
||||
|
||||
SoundSystem.Play(Filter.Empty().AddWhere(s => ((IPlayerSession)s).Data.ContentData()?.Mind?.HasRole<TraitorRole>() ?? false), _addedSound.GetSound(), AudioParams.Default);
|
||||
SoundSystem.Play(_addedSound.GetSound(), Filter.Empty().AddWhere(s => ((IPlayerSession)s).Data.ContentData()?.Mind?.HasRole<TraitorRole>() ?? false), AudioParams.Default);
|
||||
}
|
||||
|
||||
private void OnRoundEndText(RoundEndTextAppendEvent ev)
|
||||
|
||||
Reference in New Issue
Block a user