mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-31 09:00:25 +01:00
s5hrth (#18358)
Signed-off-by: Matt Atlas <mattiathebest2000@hotmail.it> Co-authored-by: DreamySkrell <> Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>
This commit is contained in:
co-authored by
DreamySkrell <>
Matt Atlas
parent
8508252cc2
commit
d54addff98
@@ -1,3 +1,7 @@
|
||||
|
||||
/// Exoplanet turfs try to take the atmos and area of the exoplanet they were spawned on,
|
||||
/// so that exoplanets have consistent atmosphere everywhere on the surface.
|
||||
/// If not located on an exoplanet, default or mapped in atmos is kept.
|
||||
/turf/simulated/floor/exoplanet
|
||||
name = "space land"
|
||||
icon = 'icons/turf/desert.dmi'
|
||||
@@ -14,6 +18,7 @@
|
||||
var/has_edge_icon = TRUE
|
||||
|
||||
/turf/simulated/floor/exoplanet/New()
|
||||
// try to get the the atmos and area of the exoplanet
|
||||
if(SSatlas.current_map.use_overmap)
|
||||
var/obj/effect/overmap/visitable/sector/exoplanet/E = GLOB.map_sectors["[z]"]
|
||||
if(istype(E))
|
||||
@@ -27,8 +32,7 @@
|
||||
set_light(MINIMUM_USEFUL_LIGHT_RANGE, E.lightlevel, COLOR_WHITE)
|
||||
if(E.planetary_area && istype(loc, world.area))
|
||||
ChangeArea(src, E.planetary_area)
|
||||
else
|
||||
log_module_exoplanets("Simulated exoplanet turf NAME: [src.name] LOC [src.x]-[src.y]-[src.z] did not find any exoplanet to copy info from!")
|
||||
// if not on an exoplanet, instead just keep the default or mapped in atmos
|
||||
..()
|
||||
|
||||
/turf/simulated/floor/exoplanet/attackby(obj/item/C, mob/user)
|
||||
|
||||
Reference in New Issue
Block a user