mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Fixes runtime in antagonist_helpers.dm, line 15: Cannot read null.mob_type (#7195)
This commit is contained in:
@@ -12,8 +12,12 @@
|
|||||||
return FALSE
|
return FALSE
|
||||||
if(avoid_silicons)
|
if(avoid_silicons)
|
||||||
var/datum/job/J = SSjob.get_job(player.assigned_role)
|
var/datum/job/J = SSjob.get_job(player.assigned_role)
|
||||||
if(J.mob_type & JOB_SILICON)
|
if(J)
|
||||||
return FALSE
|
if(J.mob_type & JOB_SILICON)
|
||||||
|
return FALSE
|
||||||
|
else // If SSjob couldn't find a job, they don't have one yet, so the next best thing we can switch on are job preferences
|
||||||
|
if((player.current.client.prefs.job_engsec_high | player.current.client.prefs.job_engsec_med | player.current.client.prefs.job_engsec_low) & (AI | CYBORG)) // If they have ANY chance of being silicon
|
||||||
|
return FALSE
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
/datum/antagonist/proc/antags_are_dead()
|
/datum/antagonist/proc/antags_are_dead()
|
||||||
|
|||||||
Reference in New Issue
Block a user