/tg/ Station 13 - Modules - TypesVar Details - Proc Details

item

Vars

drop_soundSound uses when dropping the item, or when its thrown.
dye_colorUsed as the dye color source in the washing machine only (at the moment). Can be a hex color or a key corresponding to a registry entry, see washing_machine.dm
dying_keyWhat dye registry should be looked at when dying this item; see washing_machine.dm
equip_soundSound used when equipping the item into a valid slot
item_stateicon state name for inhand overlays
lefthand_fileIcon file for left hand inhand overlays
mob_overlay_iconIcon file for mob worn overlays. no var for state because it should always be the same as icon_state
mob_throw_hit_soundUsed when yate into a mob
pickup_soundSound uses when picking the item up (into your hands)
righthand_fileIcon file for right inhand overlays
sharpnessAll items with sharpness of IS_SHARP or higher will automatically get the butchering component.
undyeableWhether the item is unaffected by standard dying.

Procs

get_sharpnessReturns the sharpness of src. If you want to get the sharpness of an item use this.
get_temperatureReturns the temperature of src. If you want to know if an item is hot use this proc.
melee_attack_chainThis is the proc that handles the order of an item_attack. The order of procs called is: tool_act on the target. If it returns TRUE, the chain will be stopped. pre_attack() on src. If this returns TRUE, the chain will be stopped. attackby on the target. If it returns TRUE, the chain will be stopped. and lastly afterattack. The return value does not matter.

Var Details

drop_sound

Sound uses when dropping the item, or when its thrown.

dye_color

Used as the dye color source in the washing machine only (at the moment). Can be a hex color or a key corresponding to a registry entry, see washing_machine.dm

dying_key

What dye registry should be looked at when dying this item; see washing_machine.dm

equip_sound

Sound used when equipping the item into a valid slot

item_state

icon state name for inhand overlays

lefthand_file

Icon file for left hand inhand overlays

mob_overlay_icon

Icon file for mob worn overlays. no var for state because it should always be the same as icon_state

mob_throw_hit_sound

Used when yate into a mob

pickup_sound

Sound uses when picking the item up (into your hands)

righthand_file

Icon file for right inhand overlays

sharpness

All items with sharpness of IS_SHARP or higher will automatically get the butchering component.

undyeable

Whether the item is unaffected by standard dying.

Proc Details

get_sharpness

Returns the sharpness of src. If you want to get the sharpness of an item use this.

get_temperature

Returns the temperature of src. If you want to know if an item is hot use this proc.

melee_attack_chain

This is the proc that handles the order of an item_attack. The order of procs called is: tool_act on the target. If it returns TRUE, the chain will be stopped. pre_attack() on src. If this returns TRUE, the chain will be stopped. attackby on the target. If it returns TRUE, the chain will be stopped. and lastly afterattack. The return value does not matter.