accessory 
Clothing accessories.
These items can be slotted onto an undershirt to provide a bit of flair.
These should be very light on their effects. Armor should be avoided entirely.
Multiple accessories can be equipped on a mob, and only the firstmost one is shown on their sprite. The rest are still shown on examine, but this may create unfair circumstances when you can't examine someone.
Vars | |
| above_suit | Whether or not the accessory displays through suits and the like. |
|---|---|
| attachment_slot | What equipment slot the accessory attaches to. If NONE, can always attach, while if supplied, can only attach if the clothing covers this slot. |
| icon_state_is_worn | Whether the icon_state is also the worn_icon_state. If false, don't forget to set worn_icon_state. |
| minimize_when_attached | TRUE if shown as a small icon in corner, FALSE if overlayed |
Procs | |
| accessory_dropped | Called when the uniform this accessory is pinned to is dropped |
| accessory_equipped | Called when the uniform this accessory is pinned to is equipped in a valid slot |
| attach | Called after try_attach returns TRUE and thus the accessory can be finally be moved into its target |
| detach | Detach this accessory from the passed clothing article |
| generate_accessory_overlay | Setup the final version of accessory's overlay given custom species options. |
| on_uniform_adjusted | Signal proc for COMSIG_CLOTHING_UNDER_ADJUSTED on the uniform we're pinned to Checks if we can no longer be attached to the uniform, and if so, drops us |
| on_uniform_dropped | Signal proc for COMSIG_ITEM_DROPPED on the uniform we're pinned to |
| on_uniform_equipped | Signal proc for COMSIG_ITEM_EQUIPPED on the uniform we're pinned to |
| on_uniform_update | Signal proc for COMSIG_ATOM_UPDATE_OVERLAYS on the uniform we're pinned to to add our overlays to the inventory icon |
| try_attach | Try to attach this accessory to the passed clothing article. |
Var Details
above_suit 
Whether or not the accessory displays through suits and the like.
attachment_slot 
What equipment slot the accessory attaches to. If NONE, can always attach, while if supplied, can only attach if the clothing covers this slot.
icon_state_is_worn 
Whether the icon_state is also the worn_icon_state. If false, don't forget to set worn_icon_state.
minimize_when_attached 
TRUE if shown as a small icon in corner, FALSE if overlayed
Proc Details
accessory_dropped
Called when the uniform this accessory is pinned to is dropped
accessory_equipped
Called when the uniform this accessory is pinned to is equipped in a valid slot
attach
Called after try_attach returns TRUE and thus the accessory can be finally be moved into its target
detach
Detach this accessory from the passed clothing article
We may have exited the clothing's loc at this point
generate_accessory_overlay
Setup the final version of accessory's overlay given custom species options.
on_uniform_adjusted
Signal proc for COMSIG_CLOTHING_UNDER_ADJUSTED on the uniform we're pinned to Checks if we can no longer be attached to the uniform, and if so, drops us
on_uniform_dropped
Signal proc for COMSIG_ITEM_DROPPED on the uniform we're pinned to
on_uniform_equipped
Signal proc for COMSIG_ITEM_EQUIPPED on the uniform we're pinned to
on_uniform_update
Signal proc for COMSIG_ATOM_UPDATE_OVERLAYS on the uniform we're pinned to to add our overlays to the inventory icon
try_attach
Try to attach this accessory to the passed clothing article.
The accessory is not yet within the clothing's loc at this point, this hapens after success.