Hallway textscreens (#24189)
* hallway screen refactor pending comms console support * comms console broadcasts * screen and timer localization
This commit is contained in:
@@ -11,6 +11,7 @@ using Content.Server.DeviceNetwork.Systems;
|
||||
using Content.Server.GameTicking.Events;
|
||||
using Content.Server.Popups;
|
||||
using Content.Server.RoundEnd;
|
||||
using Content.Server.Screens.Components;
|
||||
using Content.Server.Shuttles.Components;
|
||||
using Content.Server.Shuttles.Events;
|
||||
using Content.Server.Station.Components;
|
||||
@@ -235,8 +236,18 @@ public sealed partial class EmergencyShuttleSystem : EntitySystem
|
||||
[ShuttleTimerMasks.ShuttleTime] = countdownTime,
|
||||
[ShuttleTimerMasks.SourceTime] = countdownTime,
|
||||
[ShuttleTimerMasks.DestTime] = countdownTime,
|
||||
[ShuttleTimerMasks.Text] = new string?[] { "BYE!" }
|
||||
};
|
||||
|
||||
// by popular request
|
||||
// https://discord.com/channels/310555209753690112/770682801607278632/1189989482234126356
|
||||
if (_random.Next(1000) == 0)
|
||||
{
|
||||
payload.Add(ScreenMasks.Text, ShuttleTimerMasks.Kill);
|
||||
payload.Add(ScreenMasks.Color, Color.Red);
|
||||
}
|
||||
else
|
||||
payload.Add(ScreenMasks.Text, ShuttleTimerMasks.Bye);
|
||||
|
||||
_deviceNetworkSystem.QueuePacket(shuttle, null, payload, net.TransmitFrequency);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user