Announced messages while drunk will be slurred (#34651)

* Announced messages while drunk will be slurred

* Minor announcements, too!

* Update requests_console.dm

* Update communications.dm

* Fixup.

* Update requests_console.dm
This commit is contained in:
MoreRobustThanYou
2018-01-30 02:42:42 -05:00
committed by ShizCalev
parent b43af0e92e
commit 65fd10893d
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ SUBSYSTEM_DEF(communications)
minor_announce(html_decode(input),"[user.name] Announces:")
silicon_message_cooldown = world.time + COMMUNICATION_COOLDOWN_AI
else
priority_announce(html_decode(input), null, 'sound/misc/announce.ogg', "Captain")
priority_announce(html_decode(user.treat_message(input)), null, 'sound/misc/announce.ogg', "Captain")
nonsilicon_message_cooldown = world.time + COMMUNICATION_COOLDOWN
log_talk(user,"[key_name(user)] has made a priority announcement: [input]",LOGSAY)
message_admins("[key_name_admin(user)] has made a priority announcement.")
+3
View File
@@ -302,6 +302,9 @@ GLOBAL_LIST_EMPTY(allConsoles)
if(href_list["sendAnnouncement"])
if(!announcementConsole)
return
if(isliving(usr))
var/mob/living/L = usr
message = L.treat_message(message)
minor_announce(message, "[department] Announcement:")
GLOB.news_network.SubmitArticle(message, department, "Station Announcements", null)
log_talk(usr,"[key_name(usr)] has made a station announcement: [message]",LOGSAY)
+1 -1
View File
@@ -381,4 +381,4 @@ GLOBAL_LIST_INIT(department_radio_keys, list(
if(.)
return .
. = ..()
. = ..()