From 0c4cc6811a9629a5df6a2eb5287783c7313490a6 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Tue, 27 Feb 2018 21:30:06 -0500 Subject: [PATCH] VS: Convert some VS things to use global_announcer --- code/controllers/subsystems/transcore_vr.dm | 10 +++------- .../clothing/spacesuits/rig/modules/utility_vr.dm | 8 ++------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/code/controllers/subsystems/transcore_vr.dm b/code/controllers/subsystems/transcore_vr.dm index f98bf6d2c07..4958d87f3d8 100644 --- a/code/controllers/subsystems/transcore_vr.dm +++ b/code/controllers/subsystems/transcore_vr.dm @@ -152,9 +152,7 @@ SUBSYSTEM_DEF(transcore) // Send a past-due notification to the medical radio channel. /datum/controller/subsystem/transcore/proc/notify(var/name) ASSERT(name) - var/obj/item/device/radio/headset/a = new /obj/item/device/radio/headset/heads/captain(null) - a.autosay("[name] is past-due for a mind backup. This will be the only notification.", "TransCore Oversight", "Medical") - qdel(a) + global_announcer.autosay("[name] is past-due for a mind backup. This will be the only notification.", "TransCore Oversight", "Medical") // Called from mind_record to add itself to the transcore. /datum/controller/subsystem/transcore/proc/add_backup(var/datum/transhuman/mind_record/MR) @@ -187,10 +185,8 @@ SUBSYSTEM_DEF(transcore) // Moves all mind records from the databaes into the disk and shuts down all backup canary processing. /datum/controller/subsystem/transcore/proc/core_dump(var/obj/item/weapon/disk/transcore/disk) ASSERT(disk) - var/obj/item/device/radio/headset/a = new /obj/item/device/radio/headset/heads/captain(null) - a.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Command") - a.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Medical") - qdel(a) + global_announcer.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Command") + global_announcer.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Medical") disk.stored += backed_up backed_up.Cut() diff --git a/code/modules/clothing/spacesuits/rig/modules/utility_vr.dm b/code/modules/clothing/spacesuits/rig/modules/utility_vr.dm index 167a0ce6c57..83456629a12 100644 --- a/code/modules/clothing/spacesuits/rig/modules/utility_vr.dm +++ b/code/modules/clothing/spacesuits/rig/modules/utility_vr.dm @@ -83,12 +83,8 @@ var/username = FindNameFromID(H) || "Unknown" var/message = "[username] has overridden [A] (airlock) in \the [get_area(A)] at [A.x],[A.y],[A.z] with \the [src]." - var/obj/item/device/radio/headset/a = new /obj/item/device/radio/headset/heads/captain(null) - a.icon = icon - a.icon_state = icon_state - a.autosay(message, "Security Subsystem", "Command") - a.autosay(message, "Security Subsystem", "Security") - qdel(a) + global_announcer.autosay(message, "Security Subsystem", "Command") + global_announcer.autosay(message, "Security Subsystem", "Security") return 1 /obj/item/rig_module/rescue_pharm