Ghost lighting now updates prefs (#91592)

This commit is contained in:
John Willard
2025-06-14 02:16:37 -04:00
committed by GitHub
parent 867d3f4aa2
commit d8a032cb56
5 changed files with 25 additions and 28 deletions
@@ -1,10 +1,3 @@
GLOBAL_LIST_INIT(ghost_lighting_options, list(
"Fullbright" = LIGHTING_CUTOFF_FULLBRIGHT,
"Night Vision" = LIGHTING_CUTOFF_HIGH,
"Darker" = LIGHTING_CUTOFF_MEDIUM,
"Normal" = LIGHTING_CUTOFF_VISIBLE,
))
/// How bright a ghost's lighting plane is
/datum/preference/choiced/ghost_lighting
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
@@ -16,7 +9,7 @@ GLOBAL_LIST_INIT(ghost_lighting_options, list(
/datum/preference/choiced/ghost_lighting/init_possible_values()
var/list/values = list()
for(var/option_name in GLOB.ghost_lighting_options)
for(var/option_name in GLOB.ghost_lightings)
values += option_name
return values