mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 07:32:02 +00:00
18 lines
679 B
Plaintext
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 |