mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-26 01:22:03 +00:00
* Fixes clown faction runtimes. (#67707) * Fixes clown faction runtimes. Co-authored-by: AnturK <AnturK@users.noreply.github.com>
20 lines
787 B
Plaintext
20 lines
787 B
Plaintext
/// Checks if any mob's faction var initial value is not a list, which is not supported by the current code
|
|
/datum/unit_test/mob_faction
|
|
|
|
/datum/unit_test/mob_faction/Run()
|
|
/// Right now taken from create_and_destroy
|
|
var/list/ignored = list(
|
|
/mob/living/carbon,
|
|
/mob/dview,
|
|
/mob/oranges_ear
|
|
)
|
|
ignored += typesof(/mob/camera/imaginary_friend)
|
|
ignored += typesof(/mob/living/simple_animal/pet/gondola/gondolapod)
|
|
ignored += typesof(/mob/living/silicon/robot/model)
|
|
ignored += typesof(/mob/camera/ai_eye/remote/base_construction)
|
|
ignored += typesof(/mob/camera/ai_eye/remote/shuttle_docker)
|
|
for (var/mob_type in typesof(/mob) - ignored)
|
|
var/mob/mob_instance = allocate(mob_type)
|
|
if(!islist(mob_instance.faction))
|
|
TEST_FAIL("[mob_type] faction variable is not a list")
|