Skip to content

Commit

Permalink
Fix round end not setting the game state to post round
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Oct 20, 2024
1 parent 7415538 commit 34c4579
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ 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;
}

if (allTraitors.Count == 0)
{
_chatManager.DispatchServerAnnouncement("The innocents have won the round.");
sus.GameState = SuspicionGameState.PostRound;
_roundEndSystem.EndRound(TimeSpan.FromSeconds(sus.PostRoundDuration));
return;
}
Expand Down

0 comments on commit 34c4579

Please sign in to comment.