Fix communications console thinking it can announce in the first 5 seconds after spawning it (#38305)

* init

* Revert "init"

This reverts commit 7bdeb355a75333c4cba29351eb1d93d428c84366.

* fair
This commit is contained in:
qwerltaz
2025-07-18 13:21:51 +02:00
committed by GitHub
parent 08a1d57331
commit d0b798b63f

View File

@@ -42,7 +42,6 @@ namespace Content.Server.Communications
{ {
// All events that refresh the BUI // All events that refresh the BUI
SubscribeLocalEvent<AlertLevelChangedEvent>(OnAlertLevelChanged); SubscribeLocalEvent<AlertLevelChangedEvent>(OnAlertLevelChanged);
SubscribeLocalEvent<CommunicationsConsoleComponent, ComponentInit>((uid, comp, _) => UpdateCommsConsoleInterface(uid, comp));
SubscribeLocalEvent<RoundEndSystemChangedEvent>(_ => OnGenericBroadcastEvent()); SubscribeLocalEvent<RoundEndSystemChangedEvent>(_ => OnGenericBroadcastEvent());
SubscribeLocalEvent<AlertLevelDelayFinishedEvent>(_ => OnGenericBroadcastEvent()); SubscribeLocalEvent<AlertLevelDelayFinishedEvent>(_ => OnGenericBroadcastEvent());
@@ -85,6 +84,7 @@ namespace Content.Server.Communications
public void OnCommunicationsConsoleMapInit(EntityUid uid, CommunicationsConsoleComponent comp, MapInitEvent args) public void OnCommunicationsConsoleMapInit(EntityUid uid, CommunicationsConsoleComponent comp, MapInitEvent args)
{ {
comp.AnnouncementCooldownRemaining = comp.InitialDelay; comp.AnnouncementCooldownRemaining = comp.InitialDelay;
UpdateCommsConsoleInterface(uid, comp);
} }
/// <summary> /// <summary>