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. |
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 | Actually attach this accessory to the passed clothing article. |
detach | Detach this accessory from the passed clothing article |
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 |
successful_attach | Called after attach is completely successful and the accessory is in the clothing's loc |
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.
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
Actually 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.
detach
Detach this accessory from the passed clothing article
We may have exited the clothing's loc at this point
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
successful_attach
Called after attach is completely successful and the accessory is in the clothing's loc