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:
Bedshaped
2016-07-24 18:54:18 +01:00
committed by skull132
parent a076766115
commit 1aeca11a03
5 changed files with 131 additions and 7 deletions

View File

@@ -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')