Yogstation 13 - Modules - TypesVar Details - Proc Details

item

Vars

belt_icon_stateIcon state for the belt overlay, if null the normal icon_state will be used.
cryo_preserveShould the cryo console preserve this item
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
fryableIs this item fryable without a syndicate frying pan
greyscale_config_beltThe config type to use for greyscaled belt overlays. Both this and greyscale_colors must be assigned to work.
greyscale_config_inhand_leftThe config type to use for greyscaled left inhand sprites. Both this and greyscale_colors must be assigned to work.
greyscale_config_inhand_rightThe config type to use for greyscaled right inhand sprites. Both this and greyscale_colors must be assigned to work.
greyscale_config_wornThe config type to use for greyscaled worn sprites. Both this and greyscale_colors must be assigned to work.
item_stateicon state name for inhand overlays
lefthand_fileIcon file for left hand inhand overlays
mob_throw_hit_soundUsed when yate into a mob
outline_filteritem hover FX
pickup_soundSound uses when picking the item up (into your hands)
range_cooldown_modmultiplier to increase/decrease effects of range on attack cooldown, 0 to ignore range
righthand_fileIcon file for right inhand overlays
sharpnessAll items with sharpness of SHARP_EDGED or higher will automatically get the butchering component.
syndicateDoes this item have syndicate only functionality via hud buttons? Needs to be in this scope to encompass all Chameleon items - Hopek
undyeableWhether the item is unaffected by standard dying.
weapon_statsA list of statistics used when a weapon hits someone, swing speed = multiplier for melee attack cd, encumbrance = slowdown, encumbrance_time = slowdown length, reach = reach, embed chance = chance for applicable weapons to embed on hit, damage_low/high = range of damage the weapon takes on hitting a mob
worn_iconIcon file for mob worn overlays.
worn_icon_stateIcon state for mob worn overlays, if null the normal icon_state will be used.

Procs

AdjacentYog code for spacepods I guess???
GetAccessGet the accesses on the item
GetIDGet the ID in the object, used for PDAs
GetJobNameGets the name of a job from the ID
add_item_actionAdds an item action to our list of item actions. Item actions are actions linked to our item, that are granted to mobs who equip us. This also ensures that the actions are properly tracked in the actions list and removed if they're deleted. Can be be passed a typepath of an action or an instance of an action.
afterattack_secondaryCalled at the end of the attack chain if the user right-clicked.
attackCalled from [/mob/living/proc/attackby]
attack_secondaryThe equivalent of /obj/item/proc/attack but for alternate attacks, AKA right clicking
attack_self_secondaryCalled when the item is in the active hand, and right-clicked. Intended for alternate or opposite functions, such as lowering reagent transfer amount. At the moment, there is no verb or hotkey.
cyborg_equipParent proc - triggers when an item/module is equipped from a cyborg.
cyborg_unequipParent proc - triggers when an item/module is unequipped from a cyborg.
get_temperatureReturns the temperature of src. If you want to know if an item is hot use this proc.
give_item_actionGives one of our item actions to a mob, when equipped to a certain slot
item_action_slot_checkSometimes we only want to grant the item's action if it's equipped in a specific slot.
mark_targetUsed to mark a target for the demo system during a melee attack chain, call this before return
on_action_deletedCalled when an action associated with our item is deleted
pre_attack_secondaryCalled on the item before it hits something, when right clicking.
remove_item_actionRemoves an instance of an action from our list of item actions.
update_greyscaleChecks if this atom uses the GAGS system and if so updates the worn and inhand icons
update_item_action_buttonsUpdates all action buttons associated with this item

Var Details

belt_icon_state

Icon state for the belt overlay, if null the normal icon_state will be used.

cryo_preserve

Should the cryo console preserve this item

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

fryable

Is this item fryable without a syndicate frying pan

greyscale_config_belt

The config type to use for greyscaled belt overlays. Both this and greyscale_colors must be assigned to work.

greyscale_config_inhand_left

The config type to use for greyscaled left inhand sprites. Both this and greyscale_colors must be assigned to work.

greyscale_config_inhand_right

The config type to use for greyscaled right inhand sprites. Both this and greyscale_colors must be assigned to work.

greyscale_config_worn

The config type to use for greyscaled worn sprites. Both this and greyscale_colors must be assigned to work.

item_state

icon state name for inhand overlays

lefthand_file

Icon file for left hand inhand overlays

mob_throw_hit_sound

Used when yate into a mob

outline_filter

item hover FX

pickup_sound

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

range_cooldown_mod

multiplier to increase/decrease effects of range on attack cooldown, 0 to ignore range

righthand_file

Icon file for right inhand overlays

sharpness

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

syndicate

Does this item have syndicate only functionality via hud buttons? Needs to be in this scope to encompass all Chameleon items - Hopek

undyeable

Whether the item is unaffected by standard dying.

weapon_stats

A list of statistics used when a weapon hits someone, swing speed = multiplier for melee attack cd, encumbrance = slowdown, encumbrance_time = slowdown length, reach = reach, embed chance = chance for applicable weapons to embed on hit, damage_low/high = range of damage the weapon takes on hitting a mob

worn_icon

Icon file for mob worn overlays.

worn_icon_state

Icon state for mob worn overlays, if null the normal icon_state will be used.

Proc Details

Adjacent

Yog code for spacepods I guess???

GetAccess

Get the accesses on the item

GetID

Get the ID in the object, used for PDAs

GetJobName

Gets the name of a job from the ID

add_item_action

Adds an item action to our list of item actions. Item actions are actions linked to our item, that are granted to mobs who equip us. This also ensures that the actions are properly tracked in the actions list and removed if they're deleted. Can be be passed a typepath of an action or an instance of an action.

afterattack_secondary

Called at the end of the attack chain if the user right-clicked.

Arguments:

attack

Called from [/mob/living/proc/attackby]

Arguments:

attack_secondary

The equivalent of /obj/item/proc/attack but for alternate attacks, AKA right clicking

attack_self_secondary

Called when the item is in the active hand, and right-clicked. Intended for alternate or opposite functions, such as lowering reagent transfer amount. At the moment, there is no verb or hotkey.

cyborg_equip

Parent proc - triggers when an item/module is equipped from a cyborg.

cyborg_unequip

Parent proc - triggers when an item/module is unequipped from a cyborg.

get_temperature

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

give_item_action

Gives one of our item actions to a mob, when equipped to a certain slot

item_action_slot_check

Sometimes we only want to grant the item's action if it's equipped in a specific slot.

mark_target

Used to mark a target for the demo system during a melee attack chain, call this before return

on_action_deleted

Called when an action associated with our item is deleted

pre_attack_secondary

Called on the item before it hits something, when right clicking.

Arguments:

See: [/obj/item/proc/melee_attack_chain]

remove_item_action

Removes an instance of an action from our list of item actions.

update_greyscale

Checks if this atom uses the GAGS system and if so updates the worn and inhand icons

update_item_action_buttons

Updates all action buttons associated with this item

Arguments: