mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-29 11:31:38 +00:00
* the boulder must be pushed * awk? * sadfasdf * sadf * sadfsda * asdf * sdfasafd * asdfsad * asdf * dsfafa * despair * sadfsda * sdfsadf * 1589 * sdaf * sadfasd * asdf * safsadf * fdsafsa * add create and destroy * fdsa * sdafasfsda * pods for away sites * oopsie * hgdfs * i am speed * sdafas * hopefully this works first trAHAHAHAH * asdf * dfsadasf * sfasdf * 6461 * dsfasfd * sfda * fsd * sdfas * fsdaf * sadf * safasf * sudo * sadfsad * dfsdf
38 lines
1.6 KiB
Plaintext
38 lines
1.6 KiB
Plaintext
/datum/unit_test/shuttle_landmarks_shall_exist
|
|
name = "SHUTTLE: Defined shuttle landmarks shall exist."
|
|
groups = list("map")
|
|
|
|
/datum/unit_test/shuttle_landmarks_shall_exist/start_test()
|
|
var/failed = 0
|
|
|
|
for(var/A in subtypesof(/datum/shuttle/autodock))
|
|
var/datum/shuttle/autodock/shuttle = A
|
|
// Check start location and transition locations exist
|
|
var/found_current_location = FALSE
|
|
var/found_transition_location = FALSE
|
|
var/found_logging_home_location = FALSE
|
|
for(var/L in subtypesof(/obj/effect/shuttle_landmark))
|
|
var/obj/effect/shuttle_landmark/landmark = L
|
|
if(initial(landmark.landmark_tag) == initial(shuttle.current_location))
|
|
found_current_location = TRUE
|
|
if(initial(landmark.landmark_tag) == initial(shuttle.landmark_transition))
|
|
found_transition_location = TRUE
|
|
if(initial(landmark.landmark_tag) == initial(shuttle.logging_home_tag))
|
|
found_logging_home_location = TRUE
|
|
|
|
if(initial(shuttle.current_location) && !found_current_location)
|
|
TEST_FAIL("Failed to find 'current_location' landmark for [shuttle].")
|
|
failed++
|
|
if(initial(shuttle.landmark_transition) && !found_transition_location)
|
|
TEST_FAIL("Failed to find 'landmark_transition' landmark for [shuttle].")
|
|
failed++
|
|
if(initial(shuttle.logging_home_tag) && !found_logging_home_location)
|
|
TEST_FAIL("Failed to find 'logging_home_tag' landmark for [shuttle].")
|
|
failed++
|
|
|
|
if(failed)
|
|
TEST_FAIL("[failed] shuttle transition and start location landmarks were not found.")
|
|
else
|
|
TEST_PASS("All shuttle transition and start location landmarks were found.")
|
|
return TRUE
|