Allow 'offmap spawn' jobs to be isolated from station employees

This commit is contained in:
Aronai Sieyes
2020-04-10 19:52:05 -04:00
parent 98dd3707c1
commit f8d920fd02
9 changed files with 254 additions and 161 deletions

View File

@@ -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()