Extend raver station trait to Lavaland. (#27695)

This commit is contained in:
warriorstar-orion
2024-12-25 02:52:42 +00:00
committed by GitHub
parent baeb0ba2c4
commit fa8c9f476a
+7 -7
View File
@@ -93,10 +93,10 @@
. = ..()
for(var/obj/machinery/light/light in GLOB.machines)
var/turf/our_turf = get_turf(light)
if(!is_station_level(our_turf.z))
continue
var/list/rgb = hsl2rgb(rand(0, 255) / 255, rand((0.4 * 255), 255) / 255, rand((0.5 * 255), (0.8 * 255)) / 255)
var/new_color = "#[num2hex(rgb[1], 2)][num2hex(rgb[2], 2)][num2hex(rgb[3], 2)]"
light.color = new_color
light.brightness_color = new_color
light.update(FALSE, TRUE, FALSE)
var/area/our_area = get_area(light)
if(is_station_level(our_turf.z) || istype(our_area, /area/mine/outpost) || istype(our_area, /area/mine/laborcamp))
var/list/rgb = hsl2rgb(rand(0, 255) / 255, rand((0.4 * 255), 255) / 255, rand((0.5 * 255), (0.8 * 255)) / 255)
var/new_color = "#[num2hex(rgb[1], 2)][num2hex(rgb[2], 2)][num2hex(rgb[3], 2)]"
light.color = new_color
light.brightness_color = new_color
light.update(FALSE, TRUE, FALSE)