mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-03 21:42:06 +00:00
* Adds a unit test that all roundstart spawnable jobs have a landmark to spawn at * Update _job.dm --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
13 lines
557 B
Plaintext
13 lines
557 B
Plaintext
/// Tests that [/datum/job/proc/get_default_roundstart_spawn_point] returns a landmark from all joinable jobs.
|
|
/datum/unit_test/job_roundstart_spawnpoints
|
|
|
|
/datum/unit_test/job_roundstart_spawnpoints/Run()
|
|
for(var/datum/job/job as anything in SSjob.joinable_occupations)
|
|
if(job.spawn_positions <= 0)
|
|
// Zero spawn positions means we don't need to care if they don't have a roundstart landmark
|
|
continue
|
|
if(job.get_default_roundstart_spawn_point())
|
|
continue
|
|
|
|
TEST_FAIL("Job [job.title] ([job.type]) has no default roundstart spawn landmark.")
|