/tg/ Station 13 - Modules - TypesVar Details - Proc Details

/turf/open/floor/plating/asteroid/airless/cave

Vars

backward_cave_dirBackwards cave direction for tracking
choose_turf_typeOptional turf types instead of turf_type, weighted list
data_having_typeThe non-cave creating type
flora_spawn_listFlora that can spawn in the tunnel, weighted list
forward_cave_dirCave direction to move
going_backwardsIf the tunnel is moving backwards
has_dataIf this is a cave creating type
lengthLength of the tunnel
megafauna_spawn_listMegafauna that can spawn in the tunnel, weighted list
mob_spawn_listMobs that can spawn in the tunnel, weighted list
pick_tunnel_widthOption tunnel width, weighted list
sanityIf the tunnel should keep being created
terrain_spawn_listTerrain that can spawn in the tunnel, weighted list

Procs

SpawnFloorSpawns the floor of the tunnel and any type of structure or mob it can have
SpawnFloraSpawns a random flora in the tunnel, can spawn clumps of them
SpawnMonsterSpawns a random mob or megafauna in the tunnel
SpawnTerrainSpawns a random terrain object in the tunnel
get_cave_dataSets the tunnel length and direction
make_tunnelMakes the tunnel and spawns things inside of it
produce_tunnel_from_dataGets the tunnel length and direction then makes the tunnel

Var Details

backward_cave_dir

Backwards cave direction for tracking

choose_turf_type

Optional turf types instead of turf_type, weighted list

data_having_type

The non-cave creating type

flora_spawn_list

Flora that can spawn in the tunnel, weighted list

forward_cave_dir

Cave direction to move

going_backwards

If the tunnel is moving backwards

has_data

If this is a cave creating type

length

Length of the tunnel

megafauna_spawn_list

Megafauna that can spawn in the tunnel, weighted list

mob_spawn_list

Mobs that can spawn in the tunnel, weighted list

pick_tunnel_width

Option tunnel width, weighted list

sanity

If the tunnel should keep being created

terrain_spawn_list

Terrain that can spawn in the tunnel, weighted list

Proc Details

SpawnFloor

Spawns the floor of the tunnel and any type of structure or mob it can have

SpawnFlora

Spawns a random flora in the tunnel, can spawn clumps of them

SpawnMonster

Spawns a random mob or megafauna in the tunnel

SpawnTerrain

Spawns a random terrain object in the tunnel

get_cave_data

Sets the tunnel length and direction

make_tunnel

Makes the tunnel and spawns things inside of it

Picks a tunnel width for the tunnel and then starts spawning turfs in the direction it moves in Can randomly change directions of the tunnel, stops if it hits the edge of the map, or a no tunnel area Can randomly make new tunnels out of itself

produce_tunnel_from_data

Gets the tunnel length and direction then makes the tunnel