From 9167f86805ad383e32203c8ef188f5ea6cbf2f28 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Wed, 15 Apr 2020 21:42:35 -0400 Subject: [PATCH] Confine timeclock announcements to specific levels --- code/game/machinery/computer/timeclock_vr.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/computer/timeclock_vr.dm b/code/game/machinery/computer/timeclock_vr.dm index cce66feba46..ad118c74d7f 100644 --- a/code/game/machinery/computer/timeclock_vr.dm +++ b/code/game/machinery/computer/timeclock_vr.dm @@ -16,6 +16,7 @@ density = FALSE circuit = /obj/item/weapon/circuitboard/timeclock clicksound = null + var/channel = "Common" //Radio channel to announce on var/obj/item/weapon/card/id/card // Inserted Id card var/obj/item/device/radio/intercom/announce // Integreated announcer @@ -176,7 +177,7 @@ var/mob/living/carbon/human/H = usr H.mind.assigned_role = card.rank H.mind.role_alt_title = card.assignment - announce.autosay("[card.registered_name] has moved On-Duty as [card.assignment].", "Employee Oversight") + announce.autosay("[card.registered_name] has moved On-Duty as [card.assignment].", "Employee Oversight", channel, zlevels = using_map.get_map_levels(get_z(src))) return /obj/machinery/computer/timeclock/proc/makeOffDuty() @@ -202,7 +203,7 @@ H.mind.assigned_role = ptojob.title H.mind.role_alt_title = ptojob.title foundjob.current_positions-- - announce.autosay("[card.registered_name], [oldtitle], has moved Off-Duty.", "Employee Oversight") + announce.autosay("[card.registered_name], [oldtitle], has moved Off-Duty.", "Employee Oversight", channel, zlevels = using_map.get_map_levels(get_z(src))) return /obj/machinery/computer/timeclock/proc/checkCardCooldown()