Make Nukie and Wizard Comms Console not announce who it was sent by (#37567) (modified)

* Make Nukie and Wizard Comms Console not announce who it was sent by.

* Add doc-comment to field
This commit is contained in:
Simon 2025-05-18 11:18:18 +02:00 committed by deltanedas
parent 7ac8fd4adc
commit 767c438ea5
3 changed files with 12 additions and 1 deletions

View File

@ -67,5 +67,12 @@ namespace Content.Server.Communications
/// </summary>
[DataField]
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Announcements/announce.ogg");
/// <summary>
/// Hides the sender identity (If they even have one).
/// In practise this removes the "Sent by ScugMcWawa (Slugcat Captain)" at the bottom of the announcement.
/// </summary>
[DataField]
public bool AnnounceSentBy = true;
}
}

View File

@ -270,7 +270,9 @@ namespace Content.Server.Communications
Loc.TryGetString(comp.Title, out var title);
title ??= comp.Title;
msg += "\n" + Loc.GetString("comms-console-announcement-sent-by") + " " + author;
if (author != "()") // DeltaV - complete goidacode to only hide it for blank IDs
msg += "\n" + Loc.GetString("comms-console-announcement-sent-by") + " " + author;
if (comp.Global)
{
_chatSystem.DispatchGlobalAnnouncement(msg, title, announcementSound: comp.Sound, colorOverride: comp.Color);

View File

@ -739,6 +739,7 @@
canShuttle: false
global: true #announce to everyone they're about to fuck shit up
sound: /Audio/Announcements/intercept.ogg # DeltaV
announceSentBy: false # The title already says who they are.
- type: Computer
board: SyndicateCommsComputerCircuitboard
- type: PointLight
@ -771,6 +772,7 @@
color: "#ff00ff"
canShuttle: false
global: true #announce to everyone they're about to fuck shit up
announceSentBy: false
sound: /Audio/Announcements/war.ogg
- type: Computer
board: WizardCommsComputerCircuitboard