mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
Add some extra offstation checks
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
for(var/obj/item/implant/mindshield/I in H.contents)
|
||||
if(I && I.implanted)
|
||||
possible_traitors -= player
|
||||
if(!H.job) //Golems, special events stuff, etc.
|
||||
if(!H.job || H.mind.offstation_role) //Golems, special events stuff, etc.
|
||||
possible_traitors -= player
|
||||
//message_admins("Live Players: [playercount]")
|
||||
//message_admins("Live Traitors: [traitorcount]")
|
||||
|
||||
@@ -532,7 +532,7 @@ var/list/potential_theft_objectives = subtypesof(/datum/theft_objective) - /datu
|
||||
var/list/priority_targets = list()
|
||||
|
||||
for(var/datum/mind/possible_target in SSticker.minds)
|
||||
if(possible_target != owner && ishuman(possible_target.current) && (possible_target.current.stat != DEAD) && (possible_target.assigned_role != possible_target.special_role))
|
||||
if(possible_target != owner && ishuman(possible_target.current) && (possible_target.current.stat != DEAD) && (possible_target.assigned_role != possible_target.special_role) && !possible_target.offstation_role)
|
||||
possible_targets += possible_target
|
||||
for(var/role in roles)
|
||||
if(possible_target.assigned_role == role)
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
if(!employee.job_objectives.len)//If the employee had no objectives, don't need to process this.
|
||||
continue
|
||||
|
||||
if(employee.assigned_role == employee.special_role) //If the character is an offstation character, skip them.
|
||||
if(employee.assigned_role == employee.special_role || employee.offstation_role) //If the character is an offstation character, skip them.
|
||||
continue
|
||||
|
||||
var/tasks_completed=0
|
||||
|
||||
Reference in New Issue
Block a user