From 75d5e9086cf6ed697eb9465967d0dfaaa12d2206 Mon Sep 17 00:00:00 2001 From: VoiceInYourHead Date: Fri, 7 Jun 2024 12:29:40 +0300 Subject: [PATCH] Light fix on Snow Cage + fixing light on some props --- mods/_fd/_maps/snow_cage/code/snow_cage.dm | 11 ++--------- mods/_fd/fd_assets/code/structures/decor.dm | 4 ++-- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/mods/_fd/_maps/snow_cage/code/snow_cage.dm b/mods/_fd/_maps/snow_cage/code/snow_cage.dm index 31f86f220c0f0..bc0c4c70acb1f 100644 --- a/mods/_fd/_maps/snow_cage/code/snow_cage.dm +++ b/mods/_fd/_maps/snow_cage/code/snow_cage.dm @@ -10,26 +10,19 @@ ) var/list/lightmain - var/list/lightunderground /obj/overmap/visitable/sector/snow_cage/Initialize() ..() lightmain = block(locate(world.maxx, world.maxy, max(map_z)), locate(1, 1, min(map_z))) - lightunderground = block(locate(world.maxx, world.maxy, max(map_z)), locate(1, 1, min(map_z))) for(var/atom/A as anything in lightmain) if(!istype(A.loc, /area/splanet/outdoors) || A.density || istype(A.loc, /area/splanet/underground)) lightmain -= A - for(var/atom/A as anything in lightunderground) - if(!istype(A.loc, /area/splanet/underground) || A.density || istype(A.loc, /area/splanet/outdoors)) - lightunderground -= A update_daynight() -/obj/overmap/visitable/sector/snow_cage/proc/update_daynight(light = 0.7, light_color_m = "#5bbbc5", light_color_s = "#1f538f") +/obj/overmap/visitable/sector/snow_cage/proc/update_daynight(light = 0.7, light_color_m = "#5bbbc5") for(var/turf/T as anything in lightmain) - T.set_light(light, 0.1, 2, l_color = light_color_m) - for(var/turf/T as anything in lightunderground) - T.set_light(light, 0.1, 2, l_color = light_color_s) + T.set_light(1, light, l_color = light_color_m) /datum/map_template/ruin/away_site/snow_cage name = "arctic planet" diff --git a/mods/_fd/fd_assets/code/structures/decor.dm b/mods/_fd/fd_assets/code/structures/decor.dm index c6a1ee68f4ec8..8ed17189630e7 100644 --- a/mods/_fd/fd_assets/code/structures/decor.dm +++ b/mods/_fd/fd_assets/code/structures/decor.dm @@ -305,7 +305,7 @@ /obj/structure/fd/bs_lamp/Initialize() . = ..() - set_light(0.3, 1, 3, 1, COLOR_CYAN) + set_light(3, 0.3, l_color = COLOR_CYAN) /obj/structure/fd/bs_vines name = "bluespace corrupted vines" @@ -321,7 +321,7 @@ /obj/structure/fd/bs_vines/Initialize() . = ..() - set_light(0.3, 1, 2, 1, COLOR_CYAN) + set_light(1, 0.3, l_color = COLOR_CYAN) /obj/structure/fd/bs_vines/user_unbuckle_mob(mob/user) if(buckled_mob && !user.stat && !user.restrained())