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

echolocation

Vars

active_imagesAssoc list of world.time to atom ref to active image
background_pathsTypepache of atom types that will have an image generated on WALL_PLANE, so they stick out from the floor but they don't obstruct game objects.
black_white_matrixA matrix that turns everything except #ffffff into pure blackness, used for our images (the outlines are #ffffff).
combined_filterCombined typecache of all (UNCHANGING) types we want to echolocate, for faster checking.
deafness_checkCheck every few seconds if we lost our hearing, disable sight_bypass if so (turning us really blind).
echo_rangeRadius of our echolocation.
fade_in_timeTime for the image to fade in.
fade_out_timeTime for the image to fade out and delete itself.
focusThe focus action for adjusting echolocation settings.
highlighted_pathsTypepache of atom types that will be highlighted with an image on ABOVE_GAME_PLANE.
image_expiry_timeTime for the image to start fading out.
overlay_statesTypecache of overlay icon states to the typecache of types that get that overlay.
planesList of planes we apply our filters to.
saved_appearancesAll the saved appearances, keyed by icon-icon_state.

Procs

deafness_checkAdd or remove SIGHT_BYPASS depending on if we are deaf or not
hud_createdIf the mob had no hud when they gained echolocation we need to apply the effect now

Var Details

active_images

Assoc list of world.time to atom ref to active image

background_paths

Typepache of atom types that will have an image generated on WALL_PLANE, so they stick out from the floor but they don't obstruct game objects.

black_white_matrix

A matrix that turns everything except #ffffff into pure blackness, used for our images (the outlines are #ffffff).

combined_filter

Combined typecache of all (UNCHANGING) types we want to echolocate, for faster checking.

deafness_check

Check every few seconds if we lost our hearing, disable sight_bypass if so (turning us really blind).

echo_range

Radius of our echolocation.

fade_in_time

Time for the image to fade in.

fade_out_time

Time for the image to fade out and delete itself.

focus

The focus action for adjusting echolocation settings.

highlighted_paths

Typepache of atom types that will be highlighted with an image on ABOVE_GAME_PLANE.

image_expiry_time

Time for the image to start fading out.

overlay_states

Typecache of overlay icon states to the typecache of types that get that overlay.

planes

List of planes we apply our filters to.

saved_appearances

All the saved appearances, keyed by icon-icon_state.

Proc Details

deafness_check

Add or remove SIGHT_BYPASS depending on if we are deaf or not

hud_created

If the mob had no hud when they gained echolocation we need to apply the effect now