mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 22:18:27 +01:00
Confine timeclock announcements to specific levels
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user