strippable_item

A representation of an item that can be stripped down
Vars | |
key | The STRIPPABLE_ITEM_* key |
---|---|
Procs | |
alternate_action | Performs an alternative action on this strippable_item.
has_alternate_action needs to be TRUE. |
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. |
finish_unequip_mob | A utility function for /datum/strippable_item s to finish unequipping an item from a mob. |
get_alternate_action | 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_item | Gets the item from the given source. |
get_obscuring | Returns a STRIPPABLE_OBSCURING_* define to report on whether or not this is obscured. |
get_strippable_alternate_action_strap | Getter proc for the alternate action for removing nodrop traits from items with straps |
is_unavailable | Returns TRUE if the item is present for the mob, but not available. This is used, for example, for pockets when a jumpsuit is not worn. |
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. |
start_unequip_mob | A utility function for /datum/strippable_item s to start unequipping an item from a mob. |
strippable_alternate_action_strap | The proc that actually does the alternate action |
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. |
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.
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.
finish_unequip_mob
A utility function for /datum/strippable_item
s to finish unequipping an item from a mob.
get_alternate_action
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_item
Gets the item from the given source.
get_obscuring
Returns a STRIPPABLE_OBSCURING_* define to report on whether or not this is obscured.
get_strippable_alternate_action_strap
Getter proc for the alternate action for removing nodrop traits from items with straps
is_unavailable
Returns TRUE if the item is present for the mob, but not available. This is used, for example, for pockets when a jumpsuit is not worn.
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.
start_unequip_mob
A utility function for /datum/strippable_item
s to start unequipping an item from a mob.
strippable_alternate_action_strap
The proc that actually does the alternate action
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.