/datum/component/two_handed
Two Handed Component
When applied to an item it will make it two handed
Vars | |
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 |
Procs | |
Initialize | The amount of increase recived from sharpening the item Two Handed component |
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 |
unwield | Unwield the two handed item |
wield | Wield 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:
- require_twohands (optional) Does the item need both hands to be carried
- wieldsound (optional) The sound to play when wielded
- unwieldsound (optional) The sound to play when unwielded
- attacksound (optional) The sound to play when wielded and attacking
- force_multiplier (optional) The force multiplier when wielded, do not use with force_wielded, and force_unwielded
- force_wielded (optional) The force setting when the item is wielded, do not use with force_multiplier
- force_unwielded (optional) The force setting when the item is unwielded, do not use with force_multiplier
- icon_wielded (optional) The icon to be used when wielded
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:
- user The mob/living/carbon that is unwielding the item
- show_message (option) show a message to chat on unwield
wield
Wield the two handed item in both hands
vars:
- user The mob/living/carbon that is wielding the item