Goonstation 13 - Modules - TypesDefine Details

_std/map.dm

Z_LEVEL_NULLNullspace/Z0/The Darkness
Z_LEVEL_STATIONThe station Z-level.
Z_LEVEL_ADVENTUREThe Z-level used for Adventure Zones.
Z_LEVEL_DEBRISThe debris Z-level. Blank on underwater maps.
Z_LEVEL_SECRETThe Z-level used for secret things.
Z_LEVEL_MININGThe mining Z-level. Trench on underwater maps
Z_LEVEL_DYNAMICThe Z-level used for dynamically loaded maps. See: region_allocator
PERLIN_LAYER_HEIGHTMap generation defines
REGION_TILESLets you iterate over things in an allocated region.
REGION_TURFSProvides a list of all turfs in allocated region.
/proc/random_nonrestrictedz_turfReturns a random turf on a non-restricted z-level.
/proc/random_space_turfTries to return a random space turf. Tries a given number of times and if it fails it returns null instead.

Define Details

PERLIN_LAYER_HEIGHT

Map generation defines

REGION_TILES

Lets you iterate over things in an allocated region.

Example:

for(var/mob/M in REGION_TILES(src.region))
	M.gib()

REGION_TURFS

Provides a list of all turfs in allocated region.

Z_LEVEL_ADVENTURE

The Z-level used for Adventure Zones.

Z_LEVEL_DEBRIS

The debris Z-level. Blank on underwater maps.

Z_LEVEL_DYNAMIC

The Z-level used for dynamically loaded maps. See: region_allocator

Z_LEVEL_MINING

The mining Z-level. Trench on underwater maps

Z_LEVEL_NULL

Nullspace/Z0/The Darkness

Z_LEVEL_SECRET

The Z-level used for secret things.

Z_LEVEL_STATION

The station Z-level.