During unit tests, does extra verification on text based overlays (#59553)

This makes it so during unit tests, adding a text based overlay to something will runtime if the icon does not have an icon state matching that text. I would do this during normal compiles as well but getting the icon states from an icon is surprisingly expensive.

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
Emmett Gaines
2021-06-20 14:02:01 -07:00
committed by GitHub
co-authored by LemonInTheDark
parent 0f5e8357ae
commit 5adb8df64a
22 changed files with 72 additions and 26 deletions
+3 -3
View File
@@ -28,10 +28,10 @@
icon = 'icons/obj/computer.dmi'
icon_state = "computer"
/obj/structure/showcase/fakesec/Initialize()
/obj/structure/showcase/fakesec/update_overlays()
. = ..()
add_overlay("security")
add_overlay("security_key")
. += "security"
. += "security_key"
/obj/structure/showcase/horrific_experiment
name = "horrific experiment"