Paradise Station 13 - Modules - TypesVar Details - Proc Details

rcd

Vars

allowed_targetsA list of valid atoms that RCDs can target. Clicking on an atom with an RCD which is not in this list, will do nothing.
canRwallIf the RCD can deconstruct reinforced walls.
door_accesses_listAn associative list containing all station accesses. Includes their name and access number. For use with the UI.
door_nameThe name that newly build airlocks will receive.
door_typeThe current airlock type that will be build.
door_types_ui_listAn associative list containing an airlock's name, type path, and image. For use with the UI.
lockedIs the RCD's airlock access selection menu locked?
matterThe current amount of matter stored.
max_matterThe max amount of matter that can be stored.
modeThe RCD's current build mode.
one_accessIf this is TRUE, any airlocks that gets built will require only ONE of the checked accesses. If FALSE, it will require ALL of them.
rcd_door_typesAn associative list of airlock type paths as keys, and their names as values.
selected_accessesA list of access numbers which have been checked off by the user in the UI.
spark_systemThe spark system used to create sparks when the user interacts with the RCD.
ui_tabWhich airlock tab the UI is currently set to display.

Procs

checkResourceCalled in each of the four build modes before an object gets build. Makes sure there is enough matter to build the object.
check_menuRuns a series of pre-checks before opening the radial menu to the user.
detonate_pulseCalled from malf AI's "detonate RCD" ability.
detonate_pulse_explodeCalled in /obj/item/rcd/proc/detonate_pulse() via callback.
get_airlock_imageCreates and returns a base64 icon of the given airlock_type.
mode_airlockCalled in afterattack() if mode is set to MODE_AIRLOCK.
mode_deconCalled in afterattack() if mode is set to MODE_DECON.
mode_turfCalled in afterattack() if mode is set to MODE_TURF.
mode_windowCalled in afterattack() if mode is set to MODE_WINDOW.
radial_menuCreates and displays a radial menu to a user when they trigger the attack_self of the RCD.
ui_act_modalCalled in ui_act() to process modal actions
useResourceCalled in each of the four build modes after an object is successfully built.

Var Details

allowed_targets

A list of valid atoms that RCDs can target. Clicking on an atom with an RCD which is not in this list, will do nothing.

canRwall

If the RCD can deconstruct reinforced walls.

door_accesses_list

An associative list containing all station accesses. Includes their name and access number. For use with the UI.

door_name

The name that newly build airlocks will receive.

door_type

The current airlock type that will be build.

door_types_ui_list

An associative list containing an airlock's name, type path, and image. For use with the UI.

locked

Is the RCD's airlock access selection menu locked?

matter

The current amount of matter stored.

max_matter

The max amount of matter that can be stored.

mode

The RCD's current build mode.

one_access

If this is TRUE, any airlocks that gets built will require only ONE of the checked accesses. If FALSE, it will require ALL of them.

rcd_door_types

An associative list of airlock type paths as keys, and their names as values.

selected_accesses

A list of access numbers which have been checked off by the user in the UI.

spark_system

The spark system used to create sparks when the user interacts with the RCD.

ui_tab

Which airlock tab the UI is currently set to display.

Proc Details

checkResource

Called in each of the four build modes before an object gets build. Makes sure there is enough matter to build the object.

Arguments:

check_menu

Runs a series of pre-checks before opening the radial menu to the user.

Arguments:

detonate_pulse

Called from malf AI's "detonate RCD" ability.

Creates a delayed explosion centered around the RCD.

detonate_pulse_explode

Called in /obj/item/rcd/proc/detonate_pulse() via callback.

get_airlock_image

Creates and returns a base64 icon of the given airlock_type.

This is used for airlock icon previews in the UI.

Arugments:

mode_airlock

Called in afterattack() if mode is set to MODE_AIRLOCK.

Creates an door_type airlock at the given location A, and assigns it accesses from selected_accesses.

Arguments:

mode_decon

Called in afterattack() if mode is set to MODE_DECON.

Deconstrcts the target atom A. Valid atoms are: basic walls, reinforced walls (if canRwall is TRUE), airlocks, and windows.

Arguments:

mode_turf

Called in afterattack() if mode is set to MODE_TURF.

Creates either a plating, or a wall, depending on the turf that already exists at the location.

Arguments:

mode_window

Called in afterattack() if mode is set to MODE_WINDOW.

Constructs a grille and 4 reinforced window panes at the given location A.

Arguments:

radial_menu

Creates and displays a radial menu to a user when they trigger the attack_self of the RCD.

Arguments:

ui_act_modal

Called in ui_act() to process modal actions

Arguments:

useResource

Called in each of the four build modes after an object is successfully built.

Subtracts the amount of matter used from matter.

Arguments: