BandaStation - Modules - TypesVar Details - Proc Details

Loadout item datum

Singleton that holds all the information about each loadout items, and how to equip them.

Vars

abstract_typeThe abstract parent of this loadout item, to determine which items to not instantiate
animatedIs this item animated?
categoryThe category of the loadout item. Set automatically in New
groupTitle of a group that this item will be bundled under Defaults to parent category's title if unset
item_pathThe actual item path of the loadout item.
job_greyscale_palettesA list of greyscale colors that are used for items that have greyscale support, but don't allow full customization. This is an assoc list of /datum/job_department -> colors, or /datum/job -> colors, allowing for preset colors based on player chosen job. Jobs are prioritized over departments. Note: You don't need to set a color for every job or department!
loadout_flagsLoadout flags, see LOADOUT_FLAG_* defines
nameDisplayed name of the loadout item. Defaults to the item's name if unset.
required_holidayIf set, this item can only be selected during the holiday specified.
reskin_datumBase typepath to what reskin datum this item can use to reskin into Doesn't verify that the item_path actually has these reskins
ui_iconIcon file (DMI) for the UI to use for preview icons. Set automatically if null
ui_icon_stateIcon state for the UI to use for preview icons. Set automatically if null

Procs

default_one_color_job_paletteDefault job gags colors for one color gags items
get_item_informationReturns a list of information to display about this item in the loadout UI. Icon -> tooltip displayed when its hovered over
get_job_colorWhen passed an outfit, attempts to select a job-appropriate color from job_greyscale_palettes
get_reskin_optionsReturns a list of options this item can be reskinned into.
get_ui_buttonsReturns a list of buttons that are shown in the loadout UI for customizing this item.
handle_loadout_actionTakes in an action from a loadout manager and applies it
insert_path_into_outfitPlace our [item_path] into the passed [outfit].
is_disabledChecks if this item is disabled and cannot be selected or granted
is_equippableChecks if this item is disabled or unequippable for the given item details.
is_greyscale_itemChecks if the item is capable of being recolored / is a GAGS item.
on_equip_itemCalled When the item is equipped on [equipper].
set_item_colorOpens up the GAGS editing menu.
set_nameSets the name of the item.
set_skinUsed for reskinning an item to an alt skin.
set_slot_greyscaleCallback for GAGS menu to set this item's color.

Var Details

abstract_type

The abstract parent of this loadout item, to determine which items to not instantiate

animated

Is this item animated?

category

The category of the loadout item. Set automatically in New

group

Title of a group that this item will be bundled under Defaults to parent category's title if unset

item_path

The actual item path of the loadout item.

job_greyscale_palettes

A list of greyscale colors that are used for items that have greyscale support, but don't allow full customization. This is an assoc list of /datum/job_department -> colors, or /datum/job -> colors, allowing for preset colors based on player chosen job. Jobs are prioritized over departments. Note: You don't need to set a color for every job or department!

loadout_flags

Loadout flags, see LOADOUT_FLAG_* defines

name

Displayed name of the loadout item. Defaults to the item's name if unset.

required_holiday

If set, this item can only be selected during the holiday specified.

reskin_datum

Base typepath to what reskin datum this item can use to reskin into Doesn't verify that the item_path actually has these reskins

ui_icon

Icon file (DMI) for the UI to use for preview icons. Set automatically if null

ui_icon_state

Icon state for the UI to use for preview icons. Set automatically if null

Proc Details

default_one_color_job_palette

Default job gags colors for one color gags items

get_item_information

Returns a list of information to display about this item in the loadout UI. Icon -> tooltip displayed when its hovered over

get_job_color

When passed an outfit, attempts to select a job-appropriate color from job_greyscale_palettes

get_reskin_options

Returns a list of options this item can be reskinned into.

get_ui_buttons

Returns a list of buttons that are shown in the loadout UI for customizing this item.

Buttons contain

handle_loadout_action

Takes in an action from a loadout manager and applies it

Useful for subtypes of loadout items with unique actions

Return TRUE to force an update to the UI / character preview

insert_path_into_outfit

Place our [item_path] into the passed [outfit].

By default, just adds the item into the outfit's backpack contents, if non-visual.

Arguments:

is_disabled

Checks if this item is disabled and cannot be selected or granted

is_equippable

Checks if this item is disabled or unequippable for the given item details.

is_greyscale_item

Checks if the item is capable of being recolored / is a GAGS item.

on_equip_item

Called When the item is equipped on [equipper].

At this point the item is in the mob's contents

Arguments:

Return a bitflag of slot flags to update

set_item_color

Opens up the GAGS editing menu.

set_name

Sets the name of the item.

set_skin

Used for reskinning an item to an alt skin.

set_slot_greyscale

Callback for GAGS menu to set this item's color.