VS: Convert some VS things to use global_announcer

This commit is contained in:
Arokha Sieyes
2018-02-27 21:30:06 -05:00
parent 43065846a4
commit 0c4cc6811a
2 changed files with 5 additions and 13 deletions

View File

@@ -152,9 +152,7 @@ SUBSYSTEM_DEF(transcore)
// Send a past-due notification to the medical radio channel. // Send a past-due notification to the medical radio channel.
/datum/controller/subsystem/transcore/proc/notify(var/name) /datum/controller/subsystem/transcore/proc/notify(var/name)
ASSERT(name) ASSERT(name)
var/obj/item/device/radio/headset/a = new /obj/item/device/radio/headset/heads/captain(null) global_announcer.autosay("[name] is past-due for a mind backup. This will be the only notification.", "TransCore Oversight", "Medical")
a.autosay("[name] is past-due for a mind backup. This will be the only notification.", "TransCore Oversight", "Medical")
qdel(a)
// Called from mind_record to add itself to the transcore. // Called from mind_record to add itself to the transcore.
/datum/controller/subsystem/transcore/proc/add_backup(var/datum/transhuman/mind_record/MR) /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. // 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) /datum/controller/subsystem/transcore/proc/core_dump(var/obj/item/weapon/disk/transcore/disk)
ASSERT(disk) ASSERT(disk)
var/obj/item/device/radio/headset/a = new /obj/item/device/radio/headset/heads/captain(null) global_announcer.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Command")
a.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Command") global_announcer.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Medical")
a.autosay("An emergency core dump has been initiated!", "TransCore Oversight", "Medical")
qdel(a)
disk.stored += backed_up disk.stored += backed_up
backed_up.Cut() backed_up.Cut()

View File

@@ -83,12 +83,8 @@
var/username = FindNameFromID(H) || "Unknown" 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/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) global_announcer.autosay(message, "Security Subsystem", "Command")
a.icon = icon global_announcer.autosay(message, "Security Subsystem", "Security")
a.icon_state = icon_state
a.autosay(message, "Security Subsystem", "Command")
a.autosay(message, "Security Subsystem", "Security")
qdel(a)
return 1 return 1
/obj/item/rig_module/rescue_pharm /obj/item/rig_module/rescue_pharm