mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-23 13:17:03 +01:00
Added survivalist job, wilderness spawn and checkpoint spawn to Cynosure.
This commit is contained in:
@@ -12,27 +12,23 @@ var/global/list/spawntypes = list()
|
||||
var/display_name //Name used in preference setup.
|
||||
var/list/restrict_job = null
|
||||
var/list/disallow_job = null
|
||||
var/list/permit_offsite_job = null
|
||||
var/announce_channel = "Common"
|
||||
var/allowed_mob_types = JOB_SILICON|JOB_CARBON
|
||||
|
||||
/datum/spawnpoint/proc/check_job_spawning(job)
|
||||
if(restrict_job && !(job in restrict_job))
|
||||
return 0
|
||||
|
||||
if(disallow_job && (job in disallow_job))
|
||||
return 0
|
||||
|
||||
var/datum/job/J = SSjob.get_job(job)
|
||||
if(!J) // Couldn't find, admin shenanigans? Allow it
|
||||
return 1
|
||||
|
||||
if(J.offmap_spawn && !(job in restrict_job))
|
||||
return 0
|
||||
|
||||
return TRUE
|
||||
if(J.offmap_spawn && !(job in permit_offsite_job) && !(job in restrict_job))
|
||||
return FALSE
|
||||
if(restrict_job && !(job in restrict_job))
|
||||
return FALSE
|
||||
if(disallow_job && (job in disallow_job))
|
||||
return FALSE
|
||||
if(!(J.mob_type & allowed_mob_types))
|
||||
return 0
|
||||
|
||||
return 1
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
/datum/spawnpoint/proc/get_spawn_position()
|
||||
return get_turf(pick(turfs))
|
||||
@@ -85,4 +81,12 @@ var/global/list/spawntypes = list()
|
||||
|
||||
/datum/spawnpoint/cyborg/New()
|
||||
..()
|
||||
turfs = latejoin_cyborg
|
||||
turfs = latejoin_cyborg
|
||||
|
||||
/datum/spawnpoint/wilderness
|
||||
display_name = "Wilderness"
|
||||
msg = null
|
||||
|
||||
/datum/spawnpoint/wilderness/New()
|
||||
..()
|
||||
turfs = latejoin_wilderness
|
||||
|
||||
Reference in New Issue
Block a user