Area-Based Light Ambience (#31921)

* Basetype and Light init

* Custom Area Vars

* maybe fixes the ~8000 runtimes

* Testing mapchecks

* Maybe fixes the ~8000 runtimes attempt 2

* Contra Suggestions, please dont break the checks

* kills whitespace
This commit is contained in:
MixityMaxity
2026-05-02 10:45:32 +10:00
committed by GitHub
parent 17e33da381
commit e5f570ec11
11 changed files with 42 additions and 3 deletions
+7 -2
View File
@@ -299,7 +299,7 @@
/// Light intensity when in night shift mode
var/nightshift_light_power = 0.45
/// The colour of the light while it's in night shift mode
var/nightshift_light_color = "#e0eeff"
var/nightshift_light_color = "#fafaeb"
/// The colour of the light while it's in emergency mode
var/bulb_emergency_colour = "#FF3232"
@@ -320,7 +320,7 @@
exposure_icon_state = "circle"
base_state = "bulb"
brightness_range = 4
brightness_color = "#faca92"
brightness_color = "#fac192"
nightshift_light_range = 4
nightshift_light_color = "#e29a5f" // #a0a080
light_type = /obj/item/light/bulb
@@ -437,6 +437,11 @@
break_light_tube(TRUE)
update(FALSE, TRUE, FALSE)
if(A.area_light_color)
brightness_color = A.area_light_color
if(A.area_nightlight_color)
nightshift_light_color = A.area_nightlight_color
/obj/machinery/light/proc/on_security_level_change_planned(datum/source, previous_level_number, new_level_number)
SIGNAL_HANDLER