From 34c4579ce369c5127211266e3814852533577347 Mon Sep 17 00:00:00 2001 From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Sun, 20 Oct 2024 02:52:04 +0200 Subject: [PATCH] Fix round end not setting the game state to post round --- .../_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs b/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs index 9360bfce9d..61796df987 100644 --- a/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs +++ b/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs @@ -77,6 +77,7 @@ private void OnMobStateChanged(EntityUid uid, SuspicionPlayerComponent component if (allInnocents.Count == 0 && allDetectives.Count == 0) { _chatManager.DispatchServerAnnouncement("The traitors have won the round."); + sus.GameState = SuspicionGameState.PostRound; _roundEndSystem.EndRound(TimeSpan.FromSeconds(sus.PostRoundDuration)); return; } @@ -84,6 +85,7 @@ private void OnMobStateChanged(EntityUid uid, SuspicionPlayerComponent component if (allTraitors.Count == 0) { _chatManager.DispatchServerAnnouncement("The innocents have won the round."); + sus.GameState = SuspicionGameState.PostRound; _roundEndSystem.EndRound(TimeSpan.FromSeconds(sus.PostRoundDuration)); return; }