]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove broadcast cooldown (#26492)
authorsuperjj18 <gagnonjake@gmail.com>
Thu, 28 Mar 2024 05:41:20 +0000 (01:41 -0400)
committerGitHub <noreply@github.com>
Thu, 28 Mar 2024 05:41:20 +0000 (16:41 +1100)
* Removed inconsistent broadcast cooldown whenever the "Announce" button is pressed on the communications terminal.

* Revert "Removed inconsistent broadcast cooldown whenever the "Announce" button is pressed on the communications terminal."

This reverts commit c730d6499b6908f6ae7c52e21d5338fa3b7eb80e.

* Reapply "Removed inconsistent broadcast cooldown whenever the "Announce" button is pressed on the communications terminal."

This reverts commit 3c2d66af865a11ca55eb0e98db58a955c0d70c00.

* -Removed cooldown entirely

Content.Server/Communications/CommunicationsConsoleSystem.cs
Content.Shared/Communications/SharedCommunicationsConsoleComponent.cs

index 6b745c8cd95e9783140927662579150ea772efd7..6475e1a6d733d6f1d85990f8d7ca30b52a8e4361 100644 (file)
@@ -170,7 +170,6 @@ namespace Content.Server.Communications
 
             _uiSystem.SetUiState(ui, new CommunicationsConsoleInterfaceState(
                 CanAnnounce(comp),
-                CanBroadcast(comp),
                 CanCallOrRecall(comp),
                 levels,
                 currentLevel,
@@ -184,11 +183,6 @@ namespace Content.Server.Communications
             return comp.AnnouncementCooldownRemaining <= 0f;
         }
 
-        private static bool CanBroadcast(CommunicationsConsoleComponent comp)
-        {
-            return comp.AnnouncementCooldownRemaining <= 0f;
-        }
-
         private bool CanUse(EntityUid user, EntityUid console)
         {
             // This shouldn't technically be possible because of BUI but don't trust client.
index bf0f5195b714fb01d1bd34a295c8d37ebbb55ed7..d48b99837f893bf149512f7a336dba0175ef7608 100644 (file)
@@ -19,10 +19,9 @@ namespace Content.Shared.Communications
         public string CurrentAlert;
         public float CurrentAlertDelay;
 
-        public CommunicationsConsoleInterfaceState(bool canAnnounce, bool canBroadcast, bool canCall, List<string>? alertLevels, string currentAlert, float currentAlertDelay, TimeSpan? expectedCountdownEnd = null)
+        public CommunicationsConsoleInterfaceState(bool canAnnounce, bool canCall, List<string>? alertLevels, string currentAlert, float currentAlertDelay, TimeSpan? expectedCountdownEnd = null)
         {
             CanAnnounce = canAnnounce;
-            CanBroadcast = canBroadcast;
             CanCall = canCall;
             ExpectedCountdownEnd = expectedCountdownEnd;
             CountdownStarted = expectedCountdownEnd != null;