Space Station 13 - Modules - TypesVar Details - Proc Details

strippable_item

A representation of an item that can be stripped down

Vars

keyThe STRIPPABLE_ITEM_* key

Procs

alternate_actionPerforms an alternative action on this strippable_item. has_alternate_action needs to be TRUE. Returns FALSE if blocked by signal, TRUE otherwise.
finish_equipThe proc that places the item on the source. This should not yield.
finish_unequipThe proc that unequips the item from the source. This should not yield.
get_alternate_actionsReturns the ID of this item's strippable action. Return null if there is no alternate action. Any return value of this must be in StripMenu.
get_body_actionActions that can happen to that body part, regardless if there is an item or not. As long as it is not obscured
get_itemGets the item from the given source.
get_obscuringReturns a STRIPPABLE_OBSCURING_* define to report on whether or not this is obscured.
in_thief_modeReturns whether the user is in "thief mode" where stripping/equipping is silent and stealing from pockets moves stuff to your hands
should_showReturns whether or not this item should show.
start_equipStart the equipping process. This is the proc you should yield in. Returns TRUE/FALSE depending on if it is allowed.
start_unequipStart the unequipping process. This is the proc you should yield in. Returns TRUE/FALSE depending on if it is allowed.
try_equipTries to equip the item onto the given source. Returns TRUE/FALSE depending on if it is allowed. This should be used for checking if an item CAN be equipped. It should not perform the equipping itself.
try_unequipTries to unequip the item from the given source. Returns TRUE/FALSE depending on if it is allowed. This should be used for checking if it CAN be unequipped. It should not perform the unequipping itself.

Var Details

key

The STRIPPABLE_ITEM_* key

Proc Details

alternate_action

Performs an alternative action on this strippable_item. has_alternate_action needs to be TRUE. Returns FALSE if blocked by signal, TRUE otherwise.

finish_equip

The proc that places the item on the source. This should not yield.

finish_unequip

The proc that unequips the item from the source. This should not yield.

get_alternate_actions

Returns the ID of this item's strippable action. Return null if there is no alternate action. Any return value of this must be in StripMenu.

get_body_action

Actions that can happen to that body part, regardless if there is an item or not. As long as it is not obscured

get_item

Gets the item from the given source.

get_obscuring

Returns a STRIPPABLE_OBSCURING_* define to report on whether or not this is obscured.

in_thief_mode

Returns whether the user is in "thief mode" where stripping/equipping is silent and stealing from pockets moves stuff to your hands

should_show

Returns whether or not this item should show.

start_equip

Start the equipping process. This is the proc you should yield in. Returns TRUE/FALSE depending on if it is allowed.

start_unequip

Start the unequipping process. This is the proc you should yield in. Returns TRUE/FALSE depending on if it is allowed.

try_equip

Tries to equip the item onto the given source. Returns TRUE/FALSE depending on if it is allowed. This should be used for checking if an item CAN be equipped. It should not perform the equipping itself.

try_unequip

Tries to unequip the item from the given source. Returns TRUE/FALSE depending on if it is allowed. This should be used for checking if it CAN be unequipped. It should not perform the unequipping itself.