Fixes #117, Fixes #118, Fixes #667 (#668)

This commit is contained in:
NanakoAC
2016-08-03 22:33:06 +03:00
committed by skull132
parent d38e6d164f
commit 3979c813ca
4 changed files with 80 additions and 17 deletions
+3 -2
View File
@@ -404,8 +404,9 @@
if(job && IsJobAvailable(job.title))
var/active = 0
// Only players with the job assigned and AFK for less than 10 minutes count as active
for(var/mob/M in player_list) if(M.mind && M.client && M.mind.assigned_role == job.title && M.client.inactivity <= 10 * 60 * 10)
active++
for(var/mob/M in player_list) //Added isliving check here, so it won't check ghosts and qualify them as active
if(isliving(M) && M.mind && M.client && M.mind.assigned_role == job.title && M.client.inactivity <= 10 * 60 * 10)
active++
dat += "<a href='byond://?src=\ref[src];SelectedJob=[job.title]'>[job.title] ([job.current_positions]) (Active: [active])</a><br>"
dat += "</center>"