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

turf

Vars

affecting_lightsList of light sources affecting this turf.
atmos_adjacent_turfslist of open turfs adjacent to us
atmos_supeconductivitybitfield of dirs in which we are superconducitng
directional_opacityWhich directions does this turf block the vision of, taking into account both the turf's opacity and the movable opacity_sources.
dynamic_lumcountLumcount added by sources other than lighting datum objects, such as the overlay lighting component.
fixed_underlayIcon-smoothing variable to map a diagonal wall corner with a fixed underlay.
lighting_objectOur lighting object.
opacity_sourcesLazylist of movable atoms providing opacity sources.

Procs

InitializeTurf Initialize
add_opacity_sourceProc to add movable sources of opacity on the turf and let it handle lighting code.
conductivity_directionsSUPERCONDUCTIVITY
expose_reagentsHandles exposing a turf to reagents.
fromShuttleMoveBase procs
is_blocked_turfreturns if the turf has something dense inside it. if exclude_mobs is true, skips dense mobs like fat yoshi.
is_nearby_planetary_atmosRuns through all adjacent open turfs and checks if any are planetary_atmos returns true if even one passes.
recalculate_directional_opacityCalculate on which directions this turfs block view.
remove_opacity_sourceProc to remove movable sources of opacity on the turf and let it handle lighting code.
return_turf_delta_pFinds the greatest difference in pressure across a turf, only considers open turfs.
washCalled when this turf is being washed. Washing a turf will also wash any mopable floor decals

Var Details

affecting_lights

List of light sources affecting this turf.

atmos_adjacent_turfs

list of open turfs adjacent to us

atmos_supeconductivity

bitfield of dirs in which we are superconducitng

directional_opacity

Which directions does this turf block the vision of, taking into account both the turf's opacity and the movable opacity_sources.

dynamic_lumcount

Lumcount added by sources other than lighting datum objects, such as the overlay lighting component.

fixed_underlay

Icon-smoothing variable to map a diagonal wall corner with a fixed underlay.

lighting_object

Our lighting object.

opacity_sources

Lazylist of movable atoms providing opacity sources.

Proc Details

Initialize

Turf Initialize

Doesn't call parent, see /atom/proc/Initialize

add_opacity_source

Proc to add movable sources of opacity on the turf and let it handle lighting code.

conductivity_directions

SUPERCONDUCTIVITY

expose_reagents

Handles exposing a turf to reagents.

fromShuttleMove

Base procs

is_blocked_turf

returns if the turf has something dense inside it. if exclude_mobs is true, skips dense mobs like fat yoshi.

is_nearby_planetary_atmos

Runs through all adjacent open turfs and checks if any are planetary_atmos returns true if even one passes.

recalculate_directional_opacity

Calculate on which directions this turfs block view.

remove_opacity_source

Proc to remove movable sources of opacity on the turf and let it handle lighting code.

return_turf_delta_p

Finds the greatest difference in pressure across a turf, only considers open turfs.

wash

Called when this turf is being washed. Washing a turf will also wash any mopable floor decals