/tg/ Station 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 when unwielded
force_multiplierAre we holding the two handed item properly
force_unwieldedThe force of the item when weilded
force_wieldedThe multiplier applied to force when wielded, does not work with force_wielded, and force_unwielded
icon_wieldedDoes it have to be held in both hands
offhand_itemThe icon that will be used when wielded
require_twohandsPlay sound on attack when wielded
sharpened_increaseReference to the offhand created for the item
unwieldsoundPlay sound when wielded
wieldsoundThe force of the item when unweilded

Procs

InitializeThe amount of increase recived from sharpening the item Two 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_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_swap_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 when unwielded

force_multiplier

Are we holding the two handed item properly

force_unwielded

The force of the item when weilded

force_wielded

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

icon_wielded

Does it have to be held in both hands

offhand_item

The icon that will be used when wielded

require_twohands

Play sound on attack when wielded

sharpened_increase

Reference to the offhand created for the item

unwieldsound

Play sound when wielded

wieldsound

The force of the item when unweilded

Proc Details

Initialize

The amount of increase recived from sharpening the item 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_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_swap_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: