/datum/component/two_handed
Two Handed Component
When applied to an item it will make it two handed
Vars | |
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 |
Procs | |
Initialize | 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_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 |
unwield | Unwield the two handed item |
wield | Wield 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:
- 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
- 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_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:
- user The mob/living/carbon that is unwielding the item
- show_message (option) show a message to chat on unwield
- can_drop (option) whether 'dropItemToGround' can be called or not.
wield
Wield the two handed item in both hands
vars:
- user The mob/living/carbon that is wielding the item