]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Make Nukie and Wizard Comms Console not announce who it was sent by (#37567)
authorSimon <63975668+Simyon264@users.noreply.github.com>
Sun, 18 May 2025 09:18:18 +0000 (11:18 +0200)
committerGitHub <noreply@github.com>
Sun, 18 May 2025 09:18:18 +0000 (19:18 +1000)
* Make Nukie and Wizard Comms Console not announce who it was sent by.

* Add doc-comment to field

Content.Server/Communications/CommunicationsConsoleComponent.cs
Content.Server/Communications/CommunicationsConsoleSystem.cs
Resources/Prototypes/Entities/Structures/Machines/Computers/computers.yml

index 56c8e9504b1b07033679c6bc72f1f8fb7ed5ad4a..0dad4d83f6f26412a50b5e4b143669c00db47473 100644 (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;
     }
 }
index fc489c1823e141fc01a4b705df35bce22b6d56c7..09dec3e23d16df2f35630aba0f06a1bb7968b72b 100644 (file)
@@ -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);
index 9420c4d10fd6d0d341794afb208ff2ca3d044f4e..ca9b5fabba08a213e5ea8dc53c3315dc1384ab54 100644 (file)
     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
     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