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

uplink_handler

Uplink Handler

The uplink handler, used to handle a traitor's TC and experience points and the uplink UI.

Vars

assigned_roleThe role that this uplink handler is associated to.
assigned_speciesThe species this uplink handler is associated to.
can_replace_objectivesCallback which returns true if you can choose to replace your objectives with different ones
contractor_hubReference to a contractor hub that the infiltrator can run, if they purchase it.
debug_modeWhether this is in debug mode or not. If in debug mode, allows all purchases. Bypasses the shop lock.
extra_purchasableExtra stuff that can be purchased by an uplink, regardless of flag.
has_progressionThis uplink has progression
item_stockAssociative array of stock keys = stock left. For items that don't share stock, the key is their typepath
ownerThe owner of this uplink handler.
primary_objectivesObjectives that must be completed for traitor greentext. Set by the traitor datum.
progression_pointsThe amount of experience points this traitor has
purchase_logThe purchase log of this uplink handler
replace_objectivesCallback which performs that operation
shop_lockedWhether the shop is locked or not. If set to true, nothing can be purchased.
telecrystalsThe amount of telecrystals contained in this traitor has
uplink_flagThe current uplink flag of this uplink

Procs

add_telecrystalsHelper to add telecrystals to the uplink handler, calling set_telecrystals.
check_if_restrictedChecks for uplink flags as well as items restricted to roles and species
not_enough_populationChecks if there are enough joined players to purchase an item
not_enough_reputationChecks if traitor has enough reputation to purchase an item
on_updateCalled whenever an update occurs on this uplink handler. Used for UIs
set_telecrystalsSets how many telecrystals the uplink handler has, then updates the UI for any players watching.

Var Details

assigned_role

The role that this uplink handler is associated to.

assigned_species

The species this uplink handler is associated to.

can_replace_objectives

Callback which returns true if you can choose to replace your objectives with different ones

contractor_hub

Reference to a contractor hub that the infiltrator can run, if they purchase it.

debug_mode

Whether this is in debug mode or not. If in debug mode, allows all purchases. Bypasses the shop lock.

extra_purchasable

Extra stuff that can be purchased by an uplink, regardless of flag.

has_progression

This uplink has progression

item_stock

Associative array of stock keys = stock left. For items that don't share stock, the key is their typepath

owner

The owner of this uplink handler.

primary_objectives

Objectives that must be completed for traitor greentext. Set by the traitor datum.

progression_points

The amount of experience points this traitor has

purchase_log

The purchase log of this uplink handler

replace_objectives

Callback which performs that operation

shop_locked

Whether the shop is locked or not. If set to true, nothing can be purchased.

telecrystals

The amount of telecrystals contained in this traitor has

The current uplink flag of this uplink

Proc Details

add_telecrystals

Helper to add telecrystals to the uplink handler, calling set_telecrystals.

check_if_restricted

Checks for uplink flags as well as items restricted to roles and species

not_enough_population

Checks if there are enough joined players to purchase an item

not_enough_reputation

Checks if traitor has enough reputation to purchase an item

on_update

Called whenever an update occurs on this uplink handler. Used for UIs

set_telecrystals

Sets how many telecrystals the uplink handler has, then updates the UI for any players watching.