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

This commit is contained in:
Aronai Sieyes
2020-04-11 13:38:13 -04:00
parent 8fe72d24f9
commit cfd052a977
9 changed files with 255 additions and 162 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()