From fa8c9f476a58f04e1d78b1af110bd9c7b6129863 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Tue, 24 Dec 2024 21:52:42 -0500 Subject: [PATCH] Extend raver station trait to Lavaland. (#27695) --- code/datums/station_traits/neutral_traits.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/datums/station_traits/neutral_traits.dm b/code/datums/station_traits/neutral_traits.dm index 26862ba60c1..03cac88b537 100644 --- a/code/datums/station_traits/neutral_traits.dm +++ b/code/datums/station_traits/neutral_traits.dm @@ -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)