Confine timeclock announcements to specific levels

This commit is contained in:
Aronai Sieyes
2020-04-15 21:42:35 -04:00
parent fc312dd9ea
commit 9167f86805
+3 -2
View File
@@ -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()