mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Adds checks for antags being dead or SSD
This commit is contained in:
@@ -21,7 +21,15 @@
|
||||
return current_antagonists ? current_antagonists.len : 0
|
||||
|
||||
/datum/antagonist/proc/get_active_antag_count()
|
||||
return get_antag_count() //TODO
|
||||
var/active_antags = 0
|
||||
for(var/datum/mind/player in current_antagonists)
|
||||
var/mob/living/L = player.current
|
||||
if(!L || L.stat == DEAD)
|
||||
continue //no mob or dead
|
||||
if(!L.client && !L.teleop)
|
||||
continue //SSD
|
||||
active_antags++
|
||||
return active_antags
|
||||
|
||||
/datum/antagonist/proc/is_antagonist(var/datum/mind/player)
|
||||
if(player in current_antagonists)
|
||||
|
||||
Reference in New Issue
Block a user