/tg/ Station 13 - Modules - TypesVar Details

Global Variables

Vars

GPS_listGlobal GPS_list. All GPS components get saved in here for easy reference.
acid_overlayACID
adamantine_recipesOthers
admin_statetgui state: admin_state
always_statetgui state: always_state
areas_by_typeAn association from typepath to area instance. Only includes areas with unique set.
conscious_statetgui state: conscious_state
contained_statetgui state: contained_state
deep_inventory_statetgui state: deep_inventory_state
default_statetgui state: default_state
gateway_destinationsList of possible gateway destinations.
hands_statetgui state: hands_state
hardcoded_gasesMathematical proofs: get_breath_partial_pressure(gas_pp) --> gas_pp/total_moles()breath_pp = pp get_true_breath_pressure(pp) --> gas_pp = pp/breath_pptotal_moles()
human_adjacent_statetgui state: human_adjacent_state
iconCacheFor the main html chat area
inventory_statetgui state: inventory_state
language_menu_statetgui state: language_menu_state
marker_beacon_colorsMarker Beacons
not_incapacitated_statetgui state: not_incapacitated_state
not_incapacitated_turf_statetgui state: not_incapacitated_turf_state
notcontained_statetgui state: notcontained_state
observer_statetgui state: observer_state
physical_obscured_statetgui state: physical_obscured_state
physical_statetgui state: physical_state
picture_log_directoryPicture logging
req_console_assistanceRequests Console
self_statetgui state: self_state
teleportlocsA list of teleport locations
the_gatewayStation home gateway
trait_name_mapvalue -> trait name, generated on use from trait_by_type global
z_statetgui state: z_state

Var Details

GPS_list

Global GPS_list. All GPS components get saved in here for easy reference.

acid_overlay

ACID

adamantine_recipes

Others

admin_state

tgui state: admin_state

Checks that the user is an admin, end-of-story.

always_state

tgui state: always_state

Always grants the user UI_INTERACTIVE. Period.

areas_by_type

An association from typepath to area instance. Only includes areas with unique set.

conscious_state

tgui state: conscious_state

Only checks if the user is conscious.

contained_state

tgui state: contained_state

Checks that the user is inside the src_object.

deep_inventory_state

tgui state: deep_inventory_state

Checks that the src_object is in the user's deep (backpack, box, toolbox, etc) inventory.

default_state

tgui state: default_state

Checks a number of things -- mostly physical distance for humans and view for robots.

gateway_destinations

List of possible gateway destinations.

hands_state

tgui state: hands_state

Checks that the src_object is in the user's hands.

hardcoded_gases

Mathematical proofs: get_breath_partial_pressure(gas_pp) --> gas_pp/total_moles()breath_pp = pp get_true_breath_pressure(pp) --> gas_pp = pp/breath_pptotal_moles()

10/205 = 2.5 10 = 2.5/520

human_adjacent_state

tgui state: human_adjacent_state

In addition to default checks, only allows interaction for a human adjacent user.

iconCache

For the main html chat area

inventory_state

tgui state: inventory_state

Checks that the src_object is in the user's top-level (hand, ear, pocket, belt, etc) inventory.

language_menu_state

tgui state: language_menu_state

marker_beacon_colors

Marker Beacons

not_incapacitated_state

tgui state: not_incapacitated_state

Checks that the user isn't incapacitated

not_incapacitated_turf_state

tgui state: not_incapacitated_turf_state

Checks that the user isn't incapacitated and that their loc is a turf

notcontained_state

tgui state: notcontained_state

Checks that the user is not inside src_object, and then makes the default checks.

observer_state

tgui state: observer_state

Checks that the user is an observer/ghost.

physical_obscured_state

tgui state: physical_obscured_state

Short-circuits the default state to only check physical distance, being in view doesn't matter

physical_state

tgui state: physical_state

Short-circuits the default state to only check physical distance.

picture_log_directory

Picture logging

req_console_assistance

Requests Console

Originally written by errorage, updated by: Carn, needs more work though. I just added some security fixes

self_state

tgui state: self_state

Only checks that the user and src_object are the same.

teleportlocs

A list of teleport locations

Adding a wizard area teleport list because motherfucking lag -- Urist I am far too lazy to make it a proper list of areas so I'll just make it run the usual telepot routine at the start of the game

the_gateway

Station home gateway

trait_name_map

value -> trait name, generated on use from trait_by_type global

z_state

tgui state: z_state

Only checks that the Z-level of the user and src_object are the same.