mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
Default spawnpoint (#19258)
* Add a default spawn location * Fix the unit test hopefully * Rename and clean up the unit test * Change it to use a defined spawnpoint datum * Fix the build hopefully * Fix the build x2 * Fix the build x3
This commit is contained in:
@@ -173,6 +173,10 @@
|
||||
/datum/preference/choiced/living/spawnpoint/apply_to_living(mob/living/target, value)
|
||||
return // handled in job_controller
|
||||
|
||||
/datum/preference/choiced/living/spawnpoint/create_default_value()
|
||||
var/datum/spawnpoint/default_spawnpoint = DEFAULT_LATEJOIN_LOCATION
|
||||
return default_spawnpoint::display_name
|
||||
|
||||
/datum/preference/text/living/private_notes
|
||||
category = PREFERENCE_CATEGORY_MANUALLY_RENDERED
|
||||
savefile_identifier = PREFERENCE_CHARACTER
|
||||
|
||||
@@ -206,3 +206,9 @@
|
||||
|
||||
if(failed)
|
||||
TEST_FAIL("Map has smes with duplicated RCon_tag")
|
||||
|
||||
/datum/unit_test/default_spawnpoint_exists
|
||||
|
||||
/datum/unit_test/default_spawnpoint_exists/Run()
|
||||
var/datum/spawnpoint/default_spawnpoint = new DEFAULT_LATEJOIN_LOCATION()
|
||||
TEST_ASSERT(LAZYLEN(default_spawnpoint.turfs), "Map does not define the default spawnpoint location ([default_spawnpoint.display_name])")
|
||||
|
||||
Reference in New Issue
Block a user