From e6258c31cf1b31eea12207e2aee8d09d3d1c3592 Mon Sep 17 00:00:00 2001 From: Crazylemon64 Date: Sat, 30 Apr 2016 01:42:36 -0700 Subject: [PATCH] Adds name and message --- code/game/objects/items/devices/radio/radio.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm index 9c77b5aaf02..741ecfa7fa2 100644 --- a/code/game/objects/items/devices/radio/radio.dm +++ b/code/game/objects/items/devices/radio/radio.dm @@ -251,6 +251,7 @@ var/global/list/default_medbay_channels = list( var/mob/living/automatedannouncer/A = new /mob/living/automatedannouncer(src) A.name = from A.role = role + A.message = message Broadcast_Message(connection, A, 0, "*garbled automated announcement*", src, message, from, "Automated Announcement", from, "synthesized voice", @@ -263,6 +264,7 @@ var/global/list/default_medbay_channels = list( /mob/living/automatedannouncer var/role = "" var/lifetime_timer + var/message = "" universal_speak = 1 /mob/living/automatedannouncer/New() @@ -275,7 +277,7 @@ var/global/list/default_medbay_channels = list( ..() /mob/living/automatedannouncer/proc/autocleanup() - log_debug("An announcer somehow managed to outlive the radio! Deleting! Area: [get_area(src)]") + log_debug("An announcer somehow managed to outlive the radio! Deleting! Area: [get_area(src)], Name: \"[name]\", Message: \"[message]\"") qdel(src) // Interprets the message mode when talking into a radio, possibly returning a connection datum