mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 02:32:10 +00:00
Replace z_is_planet with a Z trait (#39581)
This commit is contained in:
committed by
vuonojenmustaturska
parent
3a32240a9e
commit
d66b8dc8c4
@@ -145,17 +145,15 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava)
|
||||
var/turf/T = get_turf(src)
|
||||
T.flags_1 |= NO_LAVA_GEN_1
|
||||
|
||||
//Contains the list of planetary z-levels defined by the planet_z helper.
|
||||
GLOBAL_LIST_EMPTY(z_is_planet)
|
||||
|
||||
/obj/effect/mapping_helpers/planet_z //adds the map it is on to the z_is_planet list
|
||||
/// Adds the map it is on to the z_is_planet list
|
||||
/obj/effect/mapping_helpers/planet_z
|
||||
name = "planet z helper"
|
||||
layer = POINT_LAYER
|
||||
|
||||
/obj/effect/mapping_helpers/planet_z/Initialize()
|
||||
. = ..()
|
||||
var/turf/T = get_turf(src)
|
||||
GLOB.z_is_planet["[T.z]"] = TRUE
|
||||
var/datum/space_level/S = SSmapping.get_level(z)
|
||||
S.traits[ZTRAIT_PLANET] = TRUE
|
||||
|
||||
|
||||
//This helper applies components to things on the map directly.
|
||||
|
||||
Reference in New Issue
Block a user