/tg/ Station 13 - Modules - TypesVar Details

limb_applicable

Limb Applicable

Allows item to be attached to limbs by clicking on humans with them while limb targeting

The item then goes in the limb's contents, where it will be added to the limb's applied_items list The applied_items is indexed by category so you can easily check for the presence of a given item or category of item

Vars

apply_categoryCategory that the parent is applied to Defaults to REF(parent), ie, you can apply any number of this item to a limb Setting it to a category will prevent multiple items of that category being applied unless override_existing is TRUE
can_applyCallback to determine if parent can be applied. (Return FALSE to block application)
on_applyCallback invoked after application
override_existingIf TRUE, replaces existing items with new ones If FALSE, application will fail if an item of the same category is already applied
valid_zonesList of body zones we can apply parent to

Var Details

apply_category

Category that the parent is applied to Defaults to REF(parent), ie, you can apply any number of this item to a limb Setting it to a category will prevent multiple items of that category being applied unless override_existing is TRUE

can_apply

Callback to determine if parent can be applied. (Return FALSE to block application)

on_apply

Callback invoked after application

override_existing

If TRUE, replaces existing items with new ones If FALSE, application will fail if an item of the same category is already applied

valid_zones

List of body zones we can apply parent to