User Tools

Site Tools


en:rpd:piercing_enchantment_enchantment

Piercing Enchantment

Piercing Enchantment

Description

The Piercing enchantment allows attacks to damage multiple enemies in a straight line. When hitting an enemy, the attack can continue through them to hit other enemies in the same direction, dealing reduced damage to each subsequent target.

Mechanics

  1. On a successful hit, the damage can continue through the target in a straight line
  2. Each subsequent target receives reduced damage compared to the previous one
  3. The damage reduction is calculated as: maxDamage = (int)(damage * Math.pow(2, -1d / (level + 1)))
  4. Can potentially hit multiple enemies in the same direction until the damage falls below 1 or the edge of the level is reached
  5. Damage dealt to subsequent targets uses the same damage calculation as the original hit

Technical Details

  1. The damage reduction is based on the weapon's level
  2. Higher-level weapons maintain more of the original damage when piercing
  3. The line of effect continues until it reaches the edge of the level or encounters no more targets
  4. The effect is limited by a minimum damage threshold (below 1 damage prevents further piercing)

Source Code

  1. The effect applies damage to enemies in a straight line continuation from the initial target
  2. The direction is calculated as: direction = target_pos - attacker_pos

Configuration Files

  1. Piercing.json - Sprite configuration for piercing enchantment visual effect

String Resources

  1. Piercing strings - English names and descriptions
  2. Russian Piercing strings - Russian localization

See Also

  1. Enchantments - List of all weapon enchantments
  2. Weapons - Equipment that can have enchantments
en/rpd/piercing_enchantment_enchantment.txt · Last modified: by 127.0.0.1