item
Vars | |
armour_penetration_flat | Flat armour reduction, occurs after percentage armour penetration. |
---|---|
armour_penetration_percentage | Percentage armour reduction, happens before flat armour reduction. |
attack_effect_override | Allows you to override the attack animation with an attack effect |
drop_sound | Sound uses when dropping the item, or when its thrown. |
equip_sound | Sound used when equipping the item into a valid slot |
hit_reaction_chance | Used to give a reaction chance on hit that is not a block. If less than 0, will remove the block message, allowing overides. |
hitsound | Sound played when you hit something with the item |
in_storage | Is this item inside a storage object? |
item_state | The icon state used to display the item in your inventory. If null then the icon_state value itself will be used |
mob_throw_hit_sound | Used when yate into a mob |
outline_filter | Holder var for the item outline filter, null when no outline filter on the item. |
pickup_sound | Sound uses when picking the item up (into your hands) |
stealthy_audio | Whether or not we use stealthy audio levels for this item's attack sounds |
thrownby | UID of a /mob |
usesound | Played when the item is used, for example tools |
Procs | |
can_enter_storage | Called to check if this item can be put into a storage item. |
cyborg_recharge | Called on cyborg items that need special charging behavior. Override as needed for specific items. |
dropped | Called when a mob drops an item. |
is_robot_module | Checks whether this item is a module of the robot it is located in. |
Var Details
armour_penetration_flat
Flat armour reduction, occurs after percentage armour penetration.
armour_penetration_percentage
Percentage armour reduction, happens before flat armour reduction.
attack_effect_override
Allows you to override the attack animation with an attack effect
drop_sound
Sound uses when dropping the item, or when its thrown.
equip_sound
Sound used when equipping the item into a valid slot
hit_reaction_chance
Used to give a reaction chance on hit that is not a block. If less than 0, will remove the block message, allowing overides.
hitsound
Sound played when you hit something with the item
in_storage
Is this item inside a storage object?
item_state
The icon state used to display the item in your inventory. If null then the icon_state value itself will be used
mob_throw_hit_sound
Used when yate into a mob
outline_filter
Holder var for the item outline filter, null when no outline filter on the item.
pickup_sound
Sound uses when picking the item up (into your hands)
stealthy_audio
Whether or not we use stealthy audio levels for this item's attack sounds
thrownby
UID of a /mob
usesound
Played when the item is used, for example tools
Proc Details
can_enter_storage
Called to check if this item can be put into a storage item.
Return FALSE
if src
can't be inserted, and TRUE
if it can.
Arguments:
- S - The /obj/item/storage that
src
is being inserted into. - user - The mob trying to insert the item.
cyborg_recharge
Called on cyborg items that need special charging behavior. Override as needed for specific items.
dropped
Called when a mob drops an item.
is_robot_module
Checks whether this item is a module of the robot it is located in.