From 33c0f44bf617e993f51c1ce086411dc5a23a491e Mon Sep 17 00:00:00 2001 From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Sat, 19 Oct 2024 11:13:07 +0200 Subject: [PATCH] Fix timer fuckup --- .../_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs b/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs index fcb274334d..9360bfce9d 100644 --- a/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs +++ b/Content.Server/_SSS/SuspicionGameRule/SuspicionRuleSystem.Rules.cs @@ -248,19 +248,19 @@ private void UpdateTimer(ref SuspicionRuleComponent sus, float frameTime) { case <= 241 when !sus.AnnouncedTimeLeft.Contains(241): _chatManager.DispatchServerAnnouncement($"The round will end in {Math.Round(sus.EndAt.TotalMinutes)}:{sus.EndAt.Seconds}."); - sus.AnnouncedTimeLeft.Add(240); + sus.AnnouncedTimeLeft.Add(241); break; case <= 181 when !sus.AnnouncedTimeLeft.Contains(181): _chatManager.DispatchServerAnnouncement($"The round will end in {Math.Round(sus.EndAt.TotalMinutes)}:{sus.EndAt.Seconds}."); - sus.AnnouncedTimeLeft.Add(180); + sus.AnnouncedTimeLeft.Add(181); break; case <= 121 when !sus.AnnouncedTimeLeft.Contains(121): _chatManager.DispatchServerAnnouncement($"The round will end in {Math.Round(sus.EndAt.TotalMinutes)}:{sus.EndAt.Seconds}."); - sus.AnnouncedTimeLeft.Add(120); + sus.AnnouncedTimeLeft.Add(121); break; case <= 61 when !sus.AnnouncedTimeLeft.Contains(61): _chatManager.DispatchServerAnnouncement($"The round will end in {Math.Round(sus.EndAt.TotalMinutes)}:{sus.EndAt.Seconds}."); - sus.AnnouncedTimeLeft.Add(60); + sus.AnnouncedTimeLeft.Add(61); break; case <= 30 when !sus.AnnouncedTimeLeft.Contains(30): _chatManager.DispatchServerAnnouncement($"The round will end in 30 seconds.");