rpd:luck_enchantment_enchantment
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| rpd:luck_enchantment_enchantment [2025/12/22 21:44] – Update wiki pages following naming conventions and fix redlinks mike | rpd:luck_enchantment_enchantment [2025/12/22 21:47] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Luck Enchantment ====== | ||
| + | {{ rpd: | ||
| + | |||
| + | ==== Description ==== | ||
| + | The Luck enchantment can deal additional damage with each hit. The effect is based on the weapon' | ||
| + | |||
| + | ==== Mechanics ==== | ||
| + | - Each hit has a chance to deal additional damage based on the weapon' | ||
| + | - 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: [[https:// | ||
| + | - 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 ==== | ||
| + | - [[https:// | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | - [[https:// | ||
| + | - [[https:// | ||
| + | |||
| + | ==== See Also ==== | ||
| + | - [[rpd: | ||
| + | - [[rpd: | ||
| + | |||
| + | {{tag> rpd items enchantments luck damage}} | ||
rpd/luck_enchantment_enchantment.txt · Last modified: by 127.0.0.1
