Skip to content

Commit

Permalink
Cage map fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VoiceInYourHead committed Jun 3, 2024
1 parent a328361 commit 360070b
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 83 deletions.
22 changes: 22 additions & 0 deletions mods/_fd/_maps/snow_cage/code/snow_cage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@
"nav_snowcage_3"
)

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")
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)

/datum/map_template/ruin/away_site/snow_cage
name = "arctic planet"
id = "awaysite_splanet"
Expand Down
12 changes: 5 additions & 7 deletions mods/_fd/_maps/snow_cage/maps/snow_cage-3.dmm
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"a" = (/turf/unsimulated/mineral,/area/splanet/underground)
"g" = (/turf/simulated/wall/r_titanium/ascent,/area/splanet/underground)
"o" = (/obj/landmark/light/snow_cage,/turf/simulated/open,/area/splanet/underground)
"D" = (/obj/structure/lattice,/turf/simulated/open,/area/splanet/underground)
"L" = (/obj/landmark/light/snow_cage,/turf/simulated/floor/exoplanet/barren,/area/splanet/underground)
"N" = (/turf/simulated/floor/ascent,/area/splan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