mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
Extend raver station trait to Lavaland. (#27695)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user