Merge pull request #14481 from Kyep/manifest_ssd

Improved OOC Manifest
This commit is contained in:
AffectedArc07
2020-10-04 18:22:32 +01:00
committed by GitHub
2 changed files with 12 additions and 6 deletions
+11 -5
View File
@@ -35,12 +35,18 @@
var/rank = t.fields["rank"]
var/real_rank = t.fields["real_rank"]
if(OOC)
var/active = 0
for(var/mob/M in GLOB.player_list)
if(M.real_name == name && M.client && M.client.inactivity <= 10 * 60 * 10)
active = 1
var/activetext = "Inactive"
for(var/thing in GLOB.human_list)
var/mob/living/carbon/human/H = thing
if(H.real_name != name)
continue
if(H.client && H.client.inactivity <= 6000)
activetext = "Active"
break
isactive[name] = active ? "Active" : "Inactive"
if(isLivingSSD(H))
activetext = "SSD"
break
isactive[name] = activetext
else
isactive[name] = t.fields["p_stat"]
var/department = 0