Use nav beacon locations for announcements (#26437)

* use nav beacon locations for announcements

* :thumbs_up:

(cherry picked from commit 766192f4b5)
This commit is contained in:
Nemanja
2024-04-07 14:07:12 +02:00
committed by NullWanderer
parent 8dec48a55a
commit 00589754f5
16 changed files with 247 additions and 114 deletions
+3 -1
View File
@@ -21,6 +21,7 @@ using Robust.Shared.Map;
using Robust.Shared.Map.Components;
using Robust.Shared.Player;
using Robust.Shared.Random;
using Robust.Shared.Utility;
namespace Content.Server.Nuke;
@@ -463,7 +464,8 @@ public sealed class NukeSystem : EntitySystem
// warn a crew
var announcement = Loc.GetString("nuke-component-announcement-armed",
("time", (int) component.RemainingTime), ("position", posText));
("time", (int) component.RemainingTime),
("location", FormattedMessage.RemoveMarkup(_navMap.GetNearestBeaconString((uid, nukeXform)))));
var sender = Loc.GetString("nuke-component-announcement-sender");
_chatSystem.DispatchStationAnnouncement(stationUid ?? uid, announcement, sender, false, null, Color.Red);