From Dark and Darker Wiki
This is the documentation page for Module:Enchantments
Overview
Functions for Enchantments. Data comes from Data:Enchantments.json.
Functions
draw_roll_range_table
Create's a table of enchants for the Enchantments page
Parameters
- base_or_gem - List 'base' (traditional) or 'gem' enchant roll ranges?
Examples
{{#invoke:Enchantments|draw_roll_range_table|gem}}
| Enchantments | Required Gem | 1H | 1H Shield | 2H Shield | 2H Physical | 2H Hybrid | 2H Magical | Chest | Legs | Foot | Head | Hands | Cloak | Necklace | Ring | Max Total Possible | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | ||||
| Attributes | |||||||||||||||||||||||||||||||
| All Attributes | 0 | ||||||||||||||||||||||||||||||
| Strength | 0 | ||||||||||||||||||||||||||||||
| Vigor | 0 | ||||||||||||||||||||||||||||||
| Agility | 0 | ||||||||||||||||||||||||||||||
| Dexterity | 0 | ||||||||||||||||||||||||||||||
| Will | 0 | ||||||||||||||||||||||||||||||
| Knowledge | 0 | ||||||||||||||||||||||||||||||
| Resourcefulness | 0 | ||||||||||||||||||||||||||||||
| Physical Damage | |||||||||||||||||||||||||||||||
| Physical Power Bonus | 0.6 | 0.9 | 0.6 | 0.9 | 1.2 | 1.9 | 1.2 | 1.9 | 1.2 | 1.9 | 1.2 | 1.9 | 0.9 | 1.4 | 0.9 | 1.4 | 0.6 | 0.9 | 0.6 | 0.9 | 0.6 | 0.9 | 0.6 | 0.9 | 0.9 | 1.4 | 0.6 | 0.9 | 11.5 | ||
| Physical Power | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 11 | ||||||||||||||||
| Physical Gear Weapon Damage | 1 | 1 | 1 | 1 | 1 | 1 | 2 | ||||||||||||||||||||||||
| Physical Damage Add | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
| True Physical Damage | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
| Armor Penetration | 1 | 1.6 | 1 | 1.6 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.5 | 2.4 | 1 | 1.6 | 20 | ||
| Magical Damage | |||||||||||||||||||||||||||||||
| Magical Power Bonus | 0.5 | 0.9 | 0.5 | 0.9 | 1.2 | 1.9 | 1.2 | 1.9 | 1.2 | 1.9 | 1.2 | 1.9 | 0.7 | 1.4 | 0.7 | 1.4 | 0.5 | 0.9 | 0.5 | 0.9 | 0.5 | 0.9 | 0.5 | 0.9 | 0.7 | 1.4 | 0.5 | 0.9 | 11.5 | ||
| Magical Power | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 11 | ||||||||||||||||
| Magical Damage Add | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
| True Magical Damage | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
| Magical Penetration | 1 | 1.6 | 1 | 1.6 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.5 | 2.4 | 1 | 1.6 | 20 | ||
| Neutral Damage | |||||||||||||||||||||||||||||||
| Headshot Damage Modifier | 1 | 1.6 | 1 | 1.6 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.5 | 2.4 | 1 | 1.6 | 20 | ||
| Undead Race Damage Bonus | 1 | 1.6 | 1 | 1.6 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.5 | 2.4 | 1 | 1.6 | 20 | ||
| Demon Race Damage Bonus | 1 | 1.6 | 1 | 1.6 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.5 | 2.4 | 1 | 1.6 | 20 | ||
| Reductions | |||||||||||||||||||||||||||||||
| Armor Rating Add | 3 | 4 | 3 | 4 | 6 | 9 | 6 | 9 | 6 | 9 | 6 | 9 | 5 | 8 | 5 | 8 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 5 | 8 | 3 | 4 | 57 | ||
| Physical Damage Reduction | 0.5 | 0.8 | 0.5 | 0.8 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 0.7 | 1.2 | 0.7 | 1.2 | 0.5 | 0.8 | 0.5 | 0.8 | 0.5 | 0.8 | 0.5 | 0.8 | 0.7 | 1.2 | 0.5 | 0.8 | 10 | ||
| Projectile Damage Reduction | 0.7 | 1.2 | 0.7 | 1.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1 | 1.6 | 1 | 1.6 | 0.7 | 1.2 | 0.7 | 1.2 | 0.7 | 1.2 | 0.7 | 1.2 | 1 | 1.6 | 0.7 | 1.2 | 15.2 | ||
| Magical Damage Reduction | 0.5 | 0.8 | 0.5 | 0.8 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 0.7 | 1.2 | 0.7 | 1.2 | 0.5 | 0.8 | 0.5 | 0.8 | 0.5 | 0.8 | 0.5 | 0.8 | 0.7 | 1.2 | 0.5 | 0.8 | 10 | ||
| Magical Resistance | 3 | 4 | 3 | 4 | 6 | 9 | 6 | 9 | 6 | 9 | 6 | 9 | 5 | 8 | 5 | 8 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 5 | 8 | 3 | 4 | 57 | ||
| Cooldown Reduction Bonus | 0.7 | 1.2 | 0.7 | 1.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 0.7 | 1.2 | 0.7 | 1.2 | 0.7 | 1.2 | 0.7 | 1.2 | 1 | 1.6 | 0.7 | 1.2 | 14.4 | ||
| Undead Race Damage Reduction | 1 | 1.6 | 1 | 1.6 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.5 | 2.4 | 1 | 1.6 | 20 | ||
| Demon Race Damage Reduction | 1 | 1.6 | 1 | 1.6 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.5 | 2.4 | 1 | 1.6 | 20 | ||
| Actions | |||||||||||||||||||||||||||||||
| Action Speed | 0.6 | 0.9 | 0.6 | 0.9 | 1.2 | 1.9 | 1.2 | 1.9 | 1.2 | 1.9 | 1.2 | 1.9 | 0.9 | 1.4 | 0.9 | 1.4 | 0.6 | 0.9 | 0.6 | 0.9 | 0.6 | 0.9 | 0.6 | 0.9 | 0.9 | 1.4 | 0.6 | 0.9 | 11.5 | ||
| Regular Interaction Speed | 0 | ||||||||||||||||||||||||||||||
| Magical Interaction Speed | 0 | ||||||||||||||||||||||||||||||
| Spell Casting Speed | 1 | 1.6 | 1 | 1.6 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 2 | 3.2 | 1.2 | 2 | 1.2 | 2 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.2 | 2 | 1 | 1.6 | 18.8 | ||
| Move Speed Add | 1 | 4 | 4 | ||||||||||||||||||||||||||||
| Move Speed Bonus | 0.3 | 1.2 | 1.2 | ||||||||||||||||||||||||||||
| Health | |||||||||||||||||||||||||||||||
| Max Health Add | 1 | 1 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 2 | 3 | 1 | 2 | 24 | ||||
| Max Health Bonus | 0.7 | 1.2 | 0.7 | 1.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1 | 1.6 | 1.5 | 2.4 | 1 | 1.6 | 19.2 | ||
| Healing | |||||||||||||||||||||||||||||||
| Outgoing Physical Healing Add | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 11 | ||||||||||||||||
| Outgoing Magical Healing Add | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 11 | ||||||||||||||||
| Statuses | |||||||||||||||||||||||||||||||
| Buff Duration Bonus | 0.7 | 1.2 | 0.7 | 1.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 0.7 | 1.2 | 0.7 | 1.2 | 0.7 | 1.2 | 0.7 | 1.2 | 1 | 1.6 | 0.7 | 1.2 | 14.4 | ||
| Debuff Duration Bonus | 0.7 | 1.2 | 0.7 | 1.2 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1 | 1.6 | 1 | 1.6 | 0.7 | 1.2 | 0.7 | 1.2 | 0.7 | 1.2 | 0.7 | 1.2 | 1 | 1.6 | 0.7 | 1.2 | 14.4 | ||
| Memory | |||||||||||||||||||||||||||||||
| Memory Capacity Add | 1 | 1 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 1 | 1 | 1 | 2 | 3 | 1 | 18 | |||||||||
| Memory Capacity Bonus | 1.5 | 2.4 | 1.5 | 2.4 | 3 | 4.8 | 3 | 4.8 | 3 | 4.8 | 3 | 4.8 | 2.2 | 3.6 | 2.2 | 3.6 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 1.5 | 2.4 | 2.2 | 3.6 | 1.5 | 2.4 | 30 | ||
| Misc | |||||||||||||||||||||||||||||||
| Luck | 15 | 24 | 15 | 24 | 30 | 48 | 30 | 48 | 30 | 48 | 30 | 48 | 22 | 36 | 22 | 36 | 15 | 24 | 15 | 24 | 15 | 24 | 15 | 24 | 22 | 36 | 15 | 24 | 300 | ||
draw_socket_cost_table
Create's a table of socket's cost per rarity for the Enchantments page
Parameters
none
Examples
{{#invoke:Enchantments|draw_socket_cost_table}}
| Rarity | Cost |
|---|---|
| Poor | 10 |
| Common | 10 |
| Uncommon | 10 |
| Rare | 20 |
| Epic | 100 |
| Legend | 150 |
| Unique | 200 |