mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 14:31:59 +01:00
Brig Timers now announce when they run out to Sec Huds (#8126)
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
src.releasetime = 0
|
||||
|
||||
if(world.timeofday > src.releasetime)
|
||||
if( src.timer_end() )// open doors, reset timer, clear status screen
|
||||
if(src.timer_end(broadcast = TRUE))// open doors, reset timer, clear status screen
|
||||
var/message = "Criminal sentence complete. The criminal is free to go."
|
||||
ping( "\The [src] pings, \"[message]\"" )
|
||||
|
||||
@@ -116,8 +116,9 @@
|
||||
|
||||
|
||||
// Opens and unlocks doors, power check
|
||||
/obj/machinery/door_timer/proc/timer_end(var/early=0)
|
||||
if(stat & (NOPOWER|BROKEN)) return 0
|
||||
/obj/machinery/door_timer/proc/timer_end(var/early = 0, var/broadcast)
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
return 0
|
||||
|
||||
timing = 0
|
||||
|
||||
@@ -126,16 +127,22 @@
|
||||
timeset( 0 )
|
||||
|
||||
for(var/obj/machinery/door/window/brigdoor/door in targets)
|
||||
if(!door.density) continue
|
||||
if(!door.density)
|
||||
continue
|
||||
spawn(0)
|
||||
door.open()
|
||||
|
||||
for(var/obj/structure/closet/secure_closet/brig/C in targets)
|
||||
if(C.broken) continue
|
||||
if(C.opened) continue
|
||||
if(C.broken)
|
||||
continue
|
||||
if(C.opened)
|
||||
continue
|
||||
C.locked = 0
|
||||
C.icon_state = C.icon_closed
|
||||
|
||||
if(broadcast)
|
||||
broadcast_security_hud_message("The timer for [id] has expired.", src)
|
||||
|
||||
if(istype(incident))
|
||||
var/datum/record/general/R = SSrecords.find_record("name", incident.criminal.name)
|
||||
if(istype(R) && istype(R.security))
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: Geeves
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- rscadd: "Brig Timers now announce when they end to Sec Huds."
|
||||
Reference in New Issue
Block a user