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

stackable_item

Stackble item component

This lets an item be attached to another item, combining the sprites and benefits of both

When the parent is equipped, so is the attached item. And when the parent is dropped, so is the attached item.

Vars

can_stackOptional callback that checks if incoming items are valid to attach.
on_dropOptional callback that is called when an item is dropped.
on_equipOptional callback that is called when an item is equipped.
stacked_onThe item actively stacked on our stackable item.
wearable_descriptorDescriptor for what you can attach to this item.
wearablesList of types that can be worn. Swap to a typecache if people make really large lists.

Procs

on_stacked_icon_updatePerforms a clothing update if our stacked item had their appearance change. Essentially just /datum/element/update_icon_updates_onmob, but for the linked item, becuase it's not technically "on-mob".

Var Details

can_stack

Optional callback that checks if incoming items are valid to attach.

on_drop

Optional callback that is called when an item is dropped.

on_equip

Optional callback that is called when an item is equipped.

stacked_on

The item actively stacked on our stackable item.

wearable_descriptor

Descriptor for what you can attach to this item.

wearables

List of types that can be worn. Swap to a typecache if people make really large lists.

Proc Details

on_stacked_icon_update

Performs a clothing update if our stacked item had their appearance change. Essentially just /datum/element/update_icon_updates_onmob, but for the linked item, becuase it's not technically "on-mob".