knuckleduster 
Vars | |
| 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 |
Procs | |
| 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. |
| afterattack | Applies stamina damage on right-click attacks against living targets. Checks armor with penetration before applying stamina damage and plays hit sound. |
| knuckle_dropped | Signal handler for when the knuckledusters are dropped or unequipped. Ensures all glove effects are properly removed. |
| knuckle_equipped | Signal handler for when the knuckledusters are equipped. Applies bonuses and effects when worn in the glove slot, including: |
| 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(). |
| remove_glove_effects | Removes all glove-related bonuses, effects, and traits. Called when the knuckledusters are unequipped from the glove slot. |
| worn_overlays | Clears 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:
- user - The mob that was wearing the knuckledusters
afterattack
Applies stamina damage on right-click attacks against living targets. Checks armor with penetration before applying stamina damage and plays hit sound.
Arguments:
- target - The atom being attacked
- user - The mob performing the attack
- modifiers - List of click modifiers (checked for RIGHT_CLICK)
- attack_modifiers - List of attack parameters
knuckle_dropped
Signal handler for when the knuckledusters are dropped or unequipped. Ensures all glove effects are properly removed.
Arguments:
- source - The item being dropped (src)
- user - The mob dropping the item
knuckle_equipped
Signal handler for when the knuckledusters are equipped. Applies bonuses and effects when worn in the glove slot, including:
- Increased force damage
- Examine concealment (TRAIT_EXAMINE_SKIP)
- Chunky fingers trait to prevent fine manipulation
Arguments:
- source - The item being equipped (src)
- user - The mob equipping the item
- slot - The inventory slot the item is being equipped to
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:
- target - The atom being attacked
- user - The mob performing the attack
- modifiers - List of click modifiers (contains RIGHT_CLICK info)
- attack_modifiers - List of attack parameters that can be modified
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:
- user - The mob that was wearing the knuckledusters
worn_overlays
Clears all worn overlays to ensure complete invisibility when equipped. Works in conjunction with build_worn_icon() for total concealment.