mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Merge pull request #8242 from PsiOmegaDelta/StarDimmer
Makes starlight strength configurable.
This commit is contained in:
@@ -606,7 +606,8 @@
|
|||||||
config.event_delay_upper[EVENT_LEVEL_MAJOR] = MinutesToTicks(values[3])
|
config.event_delay_upper[EVENT_LEVEL_MAJOR] = MinutesToTicks(values[3])
|
||||||
|
|
||||||
if("starlight")
|
if("starlight")
|
||||||
config.starlight = 1
|
value = text2num(value)
|
||||||
|
config.starlight = value >= 0 ? value : 0
|
||||||
|
|
||||||
else
|
else
|
||||||
log_misc("Unknown setting in configuration: '[name]'")
|
log_misc("Unknown setting in configuration: '[name]'")
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ var/list/accessible_z_levels = list("1" = 5, "3" = 10, "4" = 15, "5" = 10, "6" =
|
|||||||
if(!config.starlight)
|
if(!config.starlight)
|
||||||
return
|
return
|
||||||
if(locate(/turf/simulated) in orange(src,1))
|
if(locate(/turf/simulated) in orange(src,1))
|
||||||
SetLuminosity(3)
|
SetLuminosity(config.starlight)
|
||||||
else
|
else
|
||||||
SetLuminosity(0)
|
SetLuminosity(0)
|
||||||
|
|
||||||
|
|||||||
@@ -322,5 +322,5 @@ EVENT_CUSTOM_START_MAJOR 80;100
|
|||||||
## Uncomment to disable respawning by default.
|
## Uncomment to disable respawning by default.
|
||||||
#DISABLE_RESPAWN
|
#DISABLE_RESPAWN
|
||||||
|
|
||||||
## Uncomment to make space turfs have a short-range ambient light.
|
## Strength of ambient star light. Set to 0 or less to turn off.
|
||||||
# STARLIGHT
|
STARLIGHT 0
|
||||||
|
|||||||
Reference in New Issue
Block a user