Files
Aurora.3/code/unit_tests/overmap_tests.dm
2020-05-23 23:14:08 +03:00

18 lines
679 B
Plaintext

// 513 does not allow white or no color as a filter color
/datum/unit_test/overmap_effects_shall_have_non_white_color
name = "OVERMAP: Shall have non-white color"
/datum/unit_test/overmap_effects_shall_have_non_white_color/start_test()
var/list/invalid_overmap_types = list()
for(var/omt in subtypesof(/obj/effect/overmap))
var/obj/overmap = omt
var/color = initial(overmap.color)
if(!color || color == COLOR_WHITE)
invalid_overmap_types += omt
if(invalid_overmap_types.len)
fail("Following /obj/effect/overmap types types have invalid colors: [english_list(invalid_overmap_types)]")
else
pass("All /obj/effect/overmap types have a valid color")
return TRUE