/tg/ Station 13 - Modules - Types — Var Details - Proc Details

cell_loaded

Vars

allowed_cellsList containing what cells are allowed to be installed by the gun. This includes all subtypes.
can_install_cellsWhether cells can be installed into this gun via item_interaction.
can_remove_cellsWhether cells can be removed from this gun via click_alt.
installed_cellsLazylist of the currently installed cells, in the order they were installed.
max_cellsThe maximum amount of cells that a cell loaded gun can hold at once.
radial_select_modeIf TRUE, attack_self shows a radial to pick a specific loaded cell instead of cycling linearly.
starting_cellsCell types to auto-populate installed_cells with on Initialize. Subtypes just override this list.

Procs

check_radial_menuReturns whether user can keep using the cell radial.
click_ctrl_shiftToggles attack_self() between cycling cells and picking one from a radial.
item_interactionHandles insertion of weapon cells
select_via_radialShows a radial of the installed cells and switches to the picked cell's firing mode.

Var Details

allowed_cells

List containing what cells are allowed to be installed by the gun. This includes all subtypes.

can_install_cells

Whether cells can be installed into this gun via item_interaction.

can_remove_cells

Whether cells can be removed from this gun via click_alt.

installed_cells

Lazylist of the currently installed cells, in the order they were installed.

max_cells

The maximum amount of cells that a cell loaded gun can hold at once.

radial_select_mode

If TRUE, attack_self shows a radial to pick a specific loaded cell instead of cycling linearly.

starting_cells

Cell types to auto-populate installed_cells with on Initialize. Subtypes just override this list.

Proc Details

check_radial_menu

Returns whether user can keep using the cell radial.

Arguments:

click_ctrl_shift

Toggles attack_self() between cycling cells and picking one from a radial.

item_interaction

Handles insertion of weapon cells

select_via_radial

Shows a radial of the installed cells and switches to the picked cell's firing mode.

Installing a cell appends its casing to ammo_type, and click_alt() removes the newest of each, so the last length(installed_cells) entries of ammo_type line up 1:1 with installed_cells.

Arguments: