mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
autotraitor.dm: opted for continue statement in a couple of places, reworded a comment
This commit is contained in:
@@ -78,23 +78,24 @@
|
||||
for(var/mob/living/player in GLOB.mob_list)
|
||||
if(player.client && player.stat != DEAD)
|
||||
playercount += 1
|
||||
if(player.mind)
|
||||
if(player.mind.special_role)
|
||||
traitorcount += 1
|
||||
else
|
||||
if(ishuman(player) || isrobot(player) || isAI(player))
|
||||
if((ROLE_TRAITOR in player.client.prefs.be_special) && !player.client.skip_antag && !jobban_isbanned(player, ROLE_TRAITOR) && !jobban_isbanned(player, "Syndicate"))
|
||||
possible_traitors += player.mind
|
||||
if(!player.mind)
|
||||
continue
|
||||
if(player.mind.special_role)
|
||||
traitorcount += 1
|
||||
continue
|
||||
if(ishuman(player) || isrobot(player) || isAI(player))
|
||||
if((ROLE_TRAITOR in player.client.prefs.be_special) && !player.client.skip_antag && !jobban_isbanned(player, ROLE_TRAITOR) && !jobban_isbanned(player, "Syndicate"))
|
||||
possible_traitors += player.mind
|
||||
for(var/datum/mind/player in possible_traitors)
|
||||
for(var/job in restricted_jobs)
|
||||
if(player.assigned_role == job)
|
||||
possible_traitors -= player
|
||||
if(player.current) // Remove mindshield-implanted mobs from the list
|
||||
if(ishuman(player.current))
|
||||
var/mob/living/carbon/human/H = player.current
|
||||
for(var/obj/item/implant/mindshield/I in H.contents)
|
||||
if(I && I.implanted)
|
||||
possible_traitors -= player
|
||||
if(!player.current || !ishuman(player.current)) // Remove mindshield-implanted mobs from the list
|
||||
continue
|
||||
var/mob/living/carbon/human/H = player.current
|
||||
for(var/obj/item/implant/mindshield/I in H.contents)
|
||||
if(I && I.implanted)
|
||||
possible_traitors -= player
|
||||
|
||||
//message_admins("Live Players: [playercount]")
|
||||
//message_admins("Live Traitors: [traitorcount]")
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
//OTHER//
|
||||
/////////
|
||||
var/datum/preferences/prefs = null
|
||||
var/skip_antag = FALSE //Decline to be selected as a game mode antagonist.
|
||||
var/skip_antag = FALSE //TRUE when a player declines to be included for the selection process of game mode antagonists.
|
||||
var/move_delay = 1
|
||||
var/moving = null
|
||||
var/adminobs = null
|
||||
|
||||
Reference in New Issue
Block a user