starlight optimization (#17932)

* starlight optimization

* better
This commit is contained in:
Cameron Lennox
2025-06-29 18:55:22 +02:00
committed by GitHub
parent 900f22025f
commit 666d05d751
6 changed files with 11 additions and 15 deletions
@@ -581,7 +581,8 @@
/datum/config_entry/flag/allow_url_links
default = TRUE // honestly if I were you i'd leave this one off, only use in dire situations
/datum/config_entry/flag/starlight // Whether space turfs have ambient light or not
/datum/config_entry/number/starlight // Whether space turfs have ambient light or not and how strong it is.
default = 0
// FIXME: Unused
///datum/config_entry/str_list/ert_species
-5
View File
@@ -20,11 +20,6 @@ SUBSYSTEM_DEF(lighting)
/datum/controller/subsystem/lighting/Initialize()
if(!subsystem_initialized)
if (CONFIG_GET(flag/starlight))
for(var/area/A in world)
if (A.dynamic_lighting == DYNAMIC_LIGHTING_IFSTARLIGHT)
A.luminosity = 0
subsystem_initialized = TRUE
create_all_lighting_objects()