Adds "apprehended" status to cuffed/brigged antags at end of round (#10302)

This commit is contained in:
Jiří Barouš
2020-10-23 11:45:18 +02:00
committed by GitHub
parent bd18a4b8da
commit 760ea89fc4
9 changed files with 50 additions and 15 deletions
+3 -2
View File
@@ -459,11 +459,12 @@
// have to call this periodically for the duration to work properly
/datum/mind/proc/is_brigged(duration)
var/turf/T = current.loc
if(!istype(T))
if(isnull(T))
brigged_since = -1
return 0
var/area/A = T.loc
var/is_currently_brigged = 0
if(istype(T.loc,/area/security/brig))
if(A?.is_prison())
is_currently_brigged = 1
for(var/obj/item/card/id/card in current)
is_currently_brigged = 0