Fix exoplanet theming and lighting (#15083)

This commit is contained in:
Wildkins
2022-11-12 22:41:52 +01:00
committed by GitHub
parent b8677824ff
commit 158d7f68e2
10 changed files with 83 additions and 32 deletions
+21
View File
@@ -89,6 +89,17 @@ var/list/mineral_can_smooth_with = list(
rock_health = rand(10,20)
var/area/A = loc
if(!baseturf)
// Hard-coding this for performance reasons.
baseturf = A.base_turf || current_map.base_turf_by_z["[z]"] || /turf/space
if (current_map.use_overmap && istype(A, /area/exoplanet))
var/obj/effect/overmap/visitable/sector/exoplanet/E = map_sectors["[z]"]
if (istype(E) && istype(E.theme))
E.theme.on_turf_generation(src, E.planetary_area)
return INITIALIZE_HINT_NORMAL
/turf/simulated/mineral/examine(mob/user)
@@ -202,6 +213,11 @@ var/list/mineral_can_smooth_with = list(
if(!mapload)
queue_smooth_neighbors(src)
if (current_map.use_overmap && istype(loc, /area/exoplanet))
var/obj/effect/overmap/visitable/sector/exoplanet/E = map_sectors["[z]"]
if (istype(E) && istype(E.theme))
E.theme.on_turf_generation(src, E.planetary_area)
return INITIALIZE_HINT_NORMAL
#define SPREAD(the_dir) \
@@ -642,6 +658,11 @@ var/list/asteroid_floor_smooth = list(
if(light_range && light_power)
update_light()
if (current_map.use_overmap && istype(loc, /area/exoplanet))
var/obj/effect/overmap/visitable/sector/exoplanet/E = map_sectors["[z]"]
if (istype(E) && istype(E.theme))
E.theme.on_turf_generation(src, E.planetary_area)
return INITIALIZE_HINT_NORMAL
/turf/unsimulated/floor/asteroid/ex_act(severity)