mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 01:15:13 +01:00
Make Nukie and Wizard Comms Console not announce who it was sent by (#37567)
* Make Nukie and Wizard Comms Console not announce who it was sent by. * Add doc-comment to field
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -259,7 +259,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 (comp.AnnounceSentBy)
|
||||
msg += "\n" + Loc.GetString("comms-console-announcement-sent-by") + " " + author;
|
||||
|
||||
if (comp.Global)
|
||||
{
|
||||
_chatSystem.DispatchGlobalAnnouncement(msg, title, announcementSound: comp.Sound, colorOverride: comp.Color);
|
||||
|
||||
@@ -709,6 +709,7 @@
|
||||
color: "#ff0000"
|
||||
canShuttle: false
|
||||
global: true #announce to everyone they're about to fuck shit up
|
||||
announceSentBy: false # The title already says who they are.
|
||||
sound: /Audio/Announcements/war.ogg
|
||||
- type: Computer
|
||||
board: SyndicateCommsComputerCircuitboard
|
||||
@@ -742,6 +743,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
|
||||
|
||||
Reference in New Issue
Block a user