mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Fix exoplanet theming and lighting (#15083)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user