Merge pull request #6991 from VOREStation/pol-jobsplit

Allow 'offmap spawn' jobs to be isolated from station employees
This commit is contained in:
Atermonera
2020-04-19 14:23:49 -07:00
committed by GitHub
9 changed files with 255 additions and 162 deletions
@@ -12,6 +12,7 @@ var/list/spawntypes = list()
var/display_name //Name used in preference setup.
var/list/restrict_job = null
var/list/disallow_job = null
var/announce_channel = "Common"
proc/check_job_spawning(job)
if(restrict_job && !(job in restrict_job))
@@ -20,6 +21,10 @@ var/list/spawntypes = list()
if(disallow_job && (job in disallow_job))
return 0
var/datum/job/J = SSjob.get_job(job)
if(J?.offmap_spawn && !(job in restrict_job))
return 0
return 1
/datum/spawnpoint/proc/get_spawn_position()