/tg/ Station 13 - Modules - TypesVar Details - Proc Details

knuckleduster

Vars

armour_type_against_stunThe armor type checked against when performing stamina attacks (defaults to MELEE)
granted_styleWhat martial art do we grant when equipped?
is_worn_as_gloveTracks whether the item is currently worn as gloves (used to manage bonuses and effects)
stamina_damageAmount of stamina damage dealt on right-click attacks against living targets
stun_armour_penetrationArmor penetration value that only applies to stamina-based stun attacks

Procs

InitializeSets up the martial art component and registers equipment/drop signals
add_glove_effectsAdds all glove-related bonuses, effects, and traits. Called when the knuckledusters are equipped from the glove slot.
afterattackApplies stamina damage on right-click attacks against living targets. Checks armor with penetration before applying stamina damage and plays hit sound.
knuckle_droppedSignal handler for when the knuckledusters are dropped or unequipped. Ensures all glove effects are properly removed.
knuckle_equippedSignal handler for when the knuckledusters are equipped. Applies bonuses and effects when worn in the glove slot, including:
pre_attack_secondaryHandles right-click attacks to perform non-lethal stamina damage instead of brute. Zeros out the brute force damage for right-click attacks; stamina is applied in afterattack().
remove_glove_effectsRemoves all glove-related bonuses, effects, and traits. Called when the knuckledusters are unequipped from the glove slot.
worn_overlaysClears all worn overlays to ensure complete invisibility when equipped. Works in conjunction with build_worn_icon() for total concealment.

Var Details

armour_type_against_stun

The armor type checked against when performing stamina attacks (defaults to MELEE)

granted_style

What martial art do we grant when equipped?

is_worn_as_glove

Tracks whether the item is currently worn as gloves (used to manage bonuses and effects)

stamina_damage

Amount of stamina damage dealt on right-click attacks against living targets

stun_armour_penetration

Armor penetration value that only applies to stamina-based stun attacks

Proc Details

Initialize

Sets up the martial art component and registers equipment/drop signals

add_glove_effects

Adds all glove-related bonuses, effects, and traits. Called when the knuckledusters are equipped from the glove slot.

Arguments:

afterattack

Applies stamina damage on right-click attacks against living targets. Checks armor with penetration before applying stamina damage and plays hit sound.

Arguments:

knuckle_dropped

Signal handler for when the knuckledusters are dropped or unequipped. Ensures all glove effects are properly removed.

Arguments:

knuckle_equipped

Signal handler for when the knuckledusters are equipped. Applies bonuses and effects when worn in the glove slot, including:

Arguments:

pre_attack_secondary

Handles right-click attacks to perform non-lethal stamina damage instead of brute. Zeros out the brute force damage for right-click attacks; stamina is applied in afterattack().

Arguments:

Returns SECONDARY_ATTACK_CONTINUE_CHAIN to proceed with the attack chain

remove_glove_effects

Removes all glove-related bonuses, effects, and traits. Called when the knuckledusters are unequipped from the glove slot.

Arguments:

worn_overlays

Clears all worn overlays to ensure complete invisibility when equipped. Works in conjunction with build_worn_icon() for total concealment.