mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 22:12:38 +00:00
Fixes for some verbs that use command_announcement.Announce (#633)
Fixes: - "Eldritch Horror, Central Command Internal Affairs Agent, NMSS Odin" - Someone earlier said it was annoying that the fake CentComm messages sent by MalfAI don't have the same sound as regular CentComm messages, making it easy to tell when it's malf
This commit is contained in:
@@ -513,7 +513,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
||||
return
|
||||
var/reporttitle
|
||||
var/reportbody
|
||||
var/reporter
|
||||
var/reporter = null
|
||||
var/reporttype = input(usr, "Choose whether to use a template or custom report.", "Create Command Report") in list("Template", "Custom", "Cancel")
|
||||
switch(reporttype)
|
||||
if("Template")
|
||||
@@ -558,11 +558,14 @@ Traitors and the like can also be revived with the previous role mostly intact.
|
||||
C.messagetitle.Add("[command_name()] Update")
|
||||
C.messagetext.Add(P.info)
|
||||
|
||||
reporter = sanitizeSafe(input(usr, "Please enter your name.", "Name") as text|null)
|
||||
if (reporttype == "Template")
|
||||
reporter = sanitizeSafe(input(usr, "Please enter your CCIA name. (blank for no sender)", "Name") as text|null)
|
||||
if (reporter)
|
||||
reportbody += "\n\n- [reporter], Central Command Internal Affairs Agent, [commstation_name()]"
|
||||
|
||||
switch(alert("Should this be announced to the general population?",,"Yes","No"))
|
||||
if("Yes")
|
||||
command_announcement.Announce("[reportbody]\n\n- [reporter], Central Command Internal Affairs Agent, [commstation_name()]", reporttitle, new_sound = 'sound/AI/commandreport.ogg', msg_sanitized = 1);
|
||||
command_announcement.Announce("[reportbody]", reporttitle, new_sound = 'sound/AI/commandreport.ogg', msg_sanitized = 1);
|
||||
if("No")
|
||||
world << "\red New NanoTrasen Update available at all communication consoles."
|
||||
world << sound('sound/AI/commandreport.ogg')
|
||||
|
||||
Reference in New Issue
Block a user