[MIRROR] Micros the lighting subsystem (Saves a second of init) [MDB IGNORE] (#16461)

* Micros the lighting subsystem (Saves a second of init)

* Update stat_tracking.dm

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-28 12:19:43 -07:00
committed by GitHub
co-authored by LemonInTheDark Zonespace
parent bc982a87f6
commit 110fd07f34
9 changed files with 146 additions and 123 deletions
@@ -18,4 +18,8 @@
else // in case a single trait is passed in
SSmapping.z_trait_levels[new_traits] += list(new_z)
if(length(GLOB.default_lighting_underlays_by_z) < z_value)
GLOB.default_lighting_underlays_by_z.len = z_value
GLOB.default_lighting_underlays_by_z[z_value] = mutable_appearance(LIGHTING_ICON, "transparent", new_z, LIGHTING_PLANE, 255, RESET_COLOR | RESET_ALPHA | RESET_TRANSFORM)
set_linkage(new_traits[ZTRAIT_LINKAGE])