User Tools

Site Tools


en:rpd:luck_enchantment_enchantment

Luck Enchantment

Luck Enchantment

Description

The Luck enchantment can deal additional damage with each hit. The effect is based on the weapon's level and provides a chance for extra damage beyond the normal attack damage.

Mechanics

  1. Each hit has a chance to deal additional damage based on the weapon's level
  2. For each level of the weapon, it makes an additional damage roll that could exceed the original damage
  3. The higher the weapon level, the more potential for additional damage
  4. The effect is variable and not guaranteed to increase damage every hit

Technical Details

  1. Additional damage = max(0, attacker.damageRoll() - i) for i from 1 to (weapon level + 1)
  2. This means it tries multiple times to exceed the original damage, taking the highest extra damage value
  3. The calculation is: for each level+1 attempts, it takes the maximum damage that exceeds the original damage by i points

Source Code

  1. Java: Luck.java
  2. The effect compares multiple damage rolls and applies the highest bonus damage
  3. The enchantment glows green (RGB: 0x00FF00) to indicate its luck property

Configuration Files

  1. Luck.json - Sprite configuration for luck enchantment visual effect

String Resources

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

See Also

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