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 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 10 | ||||||||||||||||||||
Vigor | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 10 | ||||||||||||||||||||
Agility | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 10 | ||||||||||||||||||||
Dexterity | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 10 | ||||||||||||||||||||
Will | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 10 | ||||||||||||||||||||
Knowledge | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 10 | ||||||||||||||||||||
Resourcefulness | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 10 | ||||||||||||||||||||
Physical Damage | |||||||||||||||||||||||||||||||
Physical Power Bonus | 1 | 1.8 | 1 | 1.8 | 2 | 2.7 | 2 | 2.7 | 2 | 2.7 | 2 | 2.7 | 1 | 1.8 | 1 | 1.8 | 1 | 1.8 | 14.4 | ||||||||||||
Physical Power | 1 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 14 | ||||||||||||||
Physical Gear Weapon Damage | 1 | 1 | 1 | 1 | 2 | ||||||||||||||||||||||||||
Physical Damage Add | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
True Physical Damage | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
Armor Penetration | 2.5 | 3 | 4 | 6.5 | 4 | 6.5 | 2 | 2.5 | 2 | 2.5 | 2.5 | 3 | 2.5 | 3 | 1 | 1.8 | 21.1 | ||||||||||||||
Magical Damage | |||||||||||||||||||||||||||||||
Magical Power Bonus | 1 | 1.8 | 2 | 2.7 | 2 | 2.7 | 2 | 2.7 | 2 | 2.7 | 1 | 1.8 | 1 | 1.8 | 1 | 1.8 | 14.4 | ||||||||||||||
Magical Power | 1 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 14 | ||||||||||||||
Magical Damage Add | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
True Magical Damage | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
Magical Penetration | 0 | ||||||||||||||||||||||||||||||
Reductions | |||||||||||||||||||||||||||||||
Armor Rating Add | 10 | 12 | 20 | 25 | 5 | 8 | 5 | 8 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 5 | 8 | 3 | 4 | 73 | ||||||||||
Physical Damage Reduction | 2 | 2.5 | 4 | 4.5 | 1.5 | 1.8 | 1.5 | 1.8 | 1 | 1.2 | 1 | 1.2 | 1 | 1.2 | 1 | 1.2 | 1.5 | 1.8 | 1 | 1.2 | 17.1 | ||||||||||
Projectile Damage Reduction | 2 | 2.5 | 4 | 4.5 | 1.5 | 1.8 | 1.5 | 1.8 | 1 | 1.2 | 1 | 1.2 | 1 | 1.2 | 1 | 1.2 | 1.5 | 1.8 | 1 | 1.2 | 17.1 | ||||||||||
Magical Damage Reduction | 2 | 2.5 | 4 | 4.5 | 1.5 | 1.8 | 1.5 | 1.8 | 1 | 1.2 | 1 | 1.2 | 1 | 1.2 | 1 | 1.2 | 1.5 | 1.8 | 1 | 1.2 | 17.1 | ||||||||||
Magical Resistance | 10 | 12 | 20 | 25 | 5 | 8 | 5 | 8 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 5 | 8 | 3 | 4 | 73 | ||||||||||
Actions | |||||||||||||||||||||||||||||||
Action Speed | 1 | 1.2 | 1 | 1.2 | 1.5 | 1.8 | 1.5 | 1.8 | 1.5 | 1.8 | 1.5 | 1.8 | 1.5 | 1.8 | 1 | 1.2 | 1 | 1.2 | 1.5 | 1.8 | 1.5 | 1.8 | 1 | 1.2 | 14.4 | ||||||
Spell Casting Speed | 1.5 | 1.8 | 1.5 | 1.8 | 1 | 1.2 | 1 | 1.2 | 1.5 | 1.8 | 1.5 | 1.8 | 1 | 1.2 | 12 | ||||||||||||||||
Move Speed Add | 3 | 4 | 4 | ||||||||||||||||||||||||||||
Move Speed Bonus | 1 | 1.2 | 1.2 | ||||||||||||||||||||||||||||
Health | |||||||||||||||||||||||||||||||
Max Health Add | 1 | 2 | 1 | 2 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 3 | 4 | 1 | 2 | 28 | ||
Max Health Bonus | 1 | 1.2 | 1 | 1.2 | 1.5 | 2.5 | 1.5 | 2.5 | 1.5 | 2.5 | 1.5 | 2.5 | 1.5 | 1.8 | 1.5 | 1.8 | 1 | 1.2 | 1 | 1.2 | 1 | 1.2 | 1 | 1.2 | 1.5 | 1.8 | 1 | 1.2 | 15.1 | ||
Healing | |||||||||||||||||||||||||||||||
Outgoing Physical Healing Add | 1 | 2 | 1 | 2 | 1 | 6 | |||||||||||||||||||||||||
Outgoing Magical Healing Add | 1 | 1 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 8 | |||||||||||||||||||
Statuses | |||||||||||||||||||||||||||||||
Buff Duration Bonus | 3 | 4.5 | 3 | 4.5 | 5 | 9 | 5 | 9 | 5 | 9 | 5 | 9 | 5 | 9 | 5 | 9 | 3 | 4.5 | 3 | 4.5 | 3 | 4.5 | 3 | 4.5 | 5 | 9 | 3 | 4.5 | 63 | ||
Debuff Duration Bonus | 1 | 2.5 | 1 | 2.5 | 2 | 4.5 | 2 | 4.5 | 2 | 4.5 | 2 | 4.5 | 2 | 4.5 | 2 | 4.5 | 1 | 2.5 | 1 | 2.5 | 1 | 2.5 | 1 | 2.5 | 2 | 4.5 | 1 | 2.5 | 33.5 | ||
Memory | |||||||||||||||||||||||||||||||
Memory Capacity Add | 1 | 1 | 1 | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 14 | ||||||||||||||||
Memory Capacity Bonus | 2 | 4.5 | 5 | 9 | 5 | 9 | 5 | 9 | 5 | 9 | 2 | 4.5 | 2 | 4.5 | 2 | 4.5 | 2 | 4.5 | 5 | 9 | 2 | 4.5 | 63 | ||||||||
Misc | |||||||||||||||||||||||||||||||
Luck | 25 | 45 | 25 | 45 | 15 | 22 | 15 | 22 | 15 | 22 | 25 | 45 | 15 | 22 | 245 |
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 | 20 |
Uncommon | 30 |
Rare | 50 |
Epic | 100 |
Legend | 150 |
Unique | 200 |