Files
Bubberstation/code/modules/unit_tests/crayons.dm
SkyratBot 5f188e17ac [MIRROR] Syndicate Duffelbag Rerework [MDB IGNORE] (#22699)
* Syndicate Duffelbag Rerework

* Update backpack.dm

---------

Co-authored-by: carlarctg <53100513+carlarctg@users.noreply.github.com>
Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
2023-07-26 14:14:41 -04:00

12 lines
667 B
Plaintext

/// Makes sure that crayons have their crayon_color in their initial name (to differentiate them in the crafting menu).
/datum/unit_test/crayon_naming
/datum/unit_test/crayon_naming/Run()
for(var/obj/item/toy/crayon/crayon_path as anything in typesof(/obj/item/toy/crayon))
if(is_path_in_list(crayon_path, list(/obj/item/toy/crayon/spraycan, /obj/item/toy/crayon)))
continue
var/obj/item/toy/crayon/real_crayon = new crayon_path
if(!findtext(initial(real_crayon.name),real_crayon.crayon_color))
TEST_FAIL("[real_crayon] does not have its crayon_color ([real_crayon.crayon_color]) in its initial name ([initial(real_crayon.name)]).")
qdel(real_crayon)