mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 08:34:16 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user