mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[MIRROR] Slime Research Unittest (#12529)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Will
Kashargul
parent
833614918a
commit
65f4fe7af1
@@ -114,6 +114,7 @@
|
||||
#include "recipe_tests.dm"
|
||||
#include "recycler_vendor_tests.dm"
|
||||
#include "robot_tests.dm"
|
||||
#include "slime_tests.dm"
|
||||
#include "spritesheets.dm"
|
||||
#include "sqlite_tests.dm"
|
||||
#include "subsystem_init.dm"
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/datum/unit_test/all_slimes_must_have_research_values
|
||||
|
||||
/datum/unit_test/all_slimes_must_have_research_values/Run()
|
||||
var/failed = FALSE
|
||||
|
||||
for(var/slime in subtypesof(/obj/item/slime_extract))
|
||||
if(!(slime in SSresearch.techweb_point_items))
|
||||
TEST_NOTICE(src, "Slimes - [slime] type did not have a SSresearch.techweb_point_items value associated with it.")
|
||||
failed = TRUE
|
||||
|
||||
if(failed)
|
||||
TEST_FAIL("All xenobio slimes must have a research point value")
|
||||
Reference in New Issue
Block a user