en:rpd:luck_enchantment_enchantment
Table of Contents
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
- Each hit has a chance to deal additional damage based on the weapon's level
- For each level of the weapon, it makes an additional damage roll that could exceed the original damage
- The higher the weapon level, the more potential for additional damage
- The effect is variable and not guaranteed to increase damage every hit
Technical Details
- Additional damage = max(0, attacker.damageRoll() - i) for i from 1 to (weapon level + 1)
- This means it tries multiple times to exceed the original damage, taking the highest extra damage value
- The calculation is: for each level+1 attempts, it takes the maximum damage that exceeds the original damage by i points
Source Code
- Java: Luck.java
- The effect compares multiple damage rolls and applies the highest bonus damage
- The enchantment glows green (RGB: 0x00FF00) to indicate its luck property
Configuration Files
- Luck.json - Sprite configuration for luck enchantment visual effect
String Resources
- Luck strings - English names and descriptions
- Russian Luck strings - Russian localization
See Also
- Enchantments - List of all weapon enchantments
- Weapons - Equipment that can have enchantments
en/rpd/luck_enchantment_enchantment.txt · Last modified: by 127.0.0.1

