Skip to content

Commit

Permalink
Light fix on Snow Cage + fixing light on some props
Browse files Browse the repository at this point in the history
  • Loading branch information
VoiceInYourHead committed Jun 7, 2024
1 parent 84878ee commit 75d5e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions mods/_fd/_maps/snow_cage/code/snow_cage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions mods/_fd/fd_assets/code/structures/decor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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())
Expand Down

0 comments on commit 75d5e90

Please sign in to comment.