Space Station 13 - Nebula13 - Modules - TypesVar Details - Proc Details

stack

Vars

crafting_stack_typeSet this to a specific type to restrict the recipes generated by this stack.
indefinite_articleIf unset, picks a/an based off of if the first letter is a vowel or not.
matter_per_pieceA copy of initial matter list when this atom initialized. Stack matter should always assume a single tile.

Procs

can_merge_stacksWhether a stack type has the capability to be merged.
can_splitWhether a stack has the capability to be split.
can_useReturn 1 if an immediate subsequent call to use() would succeed. Ensures that code dealing with stacks uses the same logic.
get_string_for_amountReturns the string describing an amount of the stack, i.e. "an ingot" vs "a flag"

Var Details

crafting_stack_type

Set this to a specific type to restrict the recipes generated by this stack.

indefinite_article

If unset, picks a/an based off of if the first letter is a vowel or not.

matter_per_piece

A copy of initial matter list when this atom initialized. Stack matter should always assume a single tile.

Proc Details

can_merge_stacks

Whether a stack type has the capability to be merged.

can_split

Whether a stack has the capability to be split.

can_use

Return 1 if an immediate subsequent call to use() would succeed. Ensures that code dealing with stacks uses the same logic.

get_string_for_amount

Returns the string describing an amount of the stack, i.e. "an ingot" vs "a flag"