Yogstation 13 - Modules - TypesVar Details - Proc Details

/datum/component/two_handed

Two Handed Component

When applied to an item it will make it two handed

Vars

attacksoundPlay sound on attack when wielded
force_multiplierThe multiplier applied to force when wielded, does not work with force_wielded, and force_unwielded
force_wieldedAdditional force when wielded
icon_wieldedThe icon that will be used when wielded
offhand_itemReference to the offhand created for the item
require_twohandsDoes it have to be held in both hands
sharpened_increaseThe amount of increase recived from sharpening the item
unwield_callbackA callback on the parent to be called when the item is unwielded
unwielded_statskeep track of unwielded stats, we'll need it later for properly unwielding without causing runtimes
unwieldsoundPlay sound when unwielded
wield_callbackA callback on the parent to be called when the item is wielded
wieldedAre we holding the two handed item properly
wielded_statsstat list for wielded/unwielded, switches with weapon_stats when wielding or unwielding
wieldsoundPlay sound when wielded

Procs

InitializeTwo Handed component
on_attackon_attack triggers on attack with the parent item
on_attack_selfTriggered on attack self of the item containing the component
on_destroyTriggered on destroy of the component's offhand
on_dropTriggered on drop of item containing the component
on_equipTriggered on equip of the item containing the component
on_movedon_moved Triggers on item moved
on_sharpenon_sharpen Triggers on usage of a sharpening stone on the item
on_swapping_handson_swap_hands Triggers on swapping hands, blocks swap if the other hand is busy
on_update_iconon_update_icon triggers on call to update parent items icon
unwieldUnwield the two handed item
wieldWield the two handed item in both hands

Var Details

attacksound

Play sound on attack when wielded

force_multiplier

The multiplier applied to force when wielded, does not work with force_wielded, and force_unwielded

force_wielded

Additional force when wielded

icon_wielded

The icon that will be used when wielded

offhand_item

Reference to the offhand created for the item

require_twohands

Does it have to be held in both hands

sharpened_increase

The amount of increase recived from sharpening the item

unwield_callback

A callback on the parent to be called when the item is unwielded

unwielded_stats

keep track of unwielded stats, we'll need it later for properly unwielding without causing runtimes

unwieldsound

Play sound when unwielded

wield_callback

A callback on the parent to be called when the item is wielded

wielded

Are we holding the two handed item properly

wielded_stats

stat list for wielded/unwielded, switches with weapon_stats when wielding or unwielding

wieldsound

Play sound when wielded

Proc Details

Initialize

Two Handed component

vars:

on_attack

on_attack triggers on attack with the parent item

on_attack_self

Triggered on attack self of the item containing the component

on_destroy

Triggered on destroy of the component's offhand

on_drop

Triggered on drop of item containing the component

on_equip

Triggered on equip of the item containing the component

on_moved

on_moved Triggers on item moved

on_sharpen

on_sharpen Triggers on usage of a sharpening stone on the item

on_swapping_hands

on_swap_hands Triggers on swapping hands, blocks swap if the other hand is busy

on_update_icon

on_update_icon triggers on call to update parent items icon

Updates the icon using icon_wielded if set

unwield

Unwield the two handed item

vars:

wield

Wield the two handed item in both hands

vars: