mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
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:
co-authored by
LemonInTheDark
parent
0f5e8357ae
commit
5adb8df64a
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user