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 | 1 | 1 | 1 | 1 | 2 | 1 | 12 | |||||||||||||||||||
Vigor | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 12 | |||||||||||||||||||
Agility | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 12 | |||||||||||||||||||
Dexterity | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 12 | |||||||||||||||||||
Will | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 12 | |||||||||||||||||||
Knowledge | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 12 | |||||||||||||||||||
Resourcefulness | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 12 | |||||||||||||||||||
Physical Damage | |||||||||||||||||||||||||||||||
Physical Power Bonus | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 0.5 | 1 | 12.5 | ||||||
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 | 1 | 1.5 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1.5 | 2 | 1 | 1.5 | 18 | ||||||||
Magical Damage | |||||||||||||||||||||||||||||||
Magical Power Bonus | 0.5 | 1 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 0.5 | 1 | 12.5 | ||||||||
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 | 2 | 5 | 2 | 8 | 2 | 8 | 2 | 8 | 2 | 5 | 2 | 5 | 2 | 5 | 2 | 5 | 2 | 8 | 2 | 5 | 62 | ||||||||||
Physical Damage Reduction | 0.5 | 1 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 1 | 1.2 | 12.4 | ||||||||||
Projectile Damage Reduction | 0.5 | 1 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 0.5 | 1 | 12 | ||||||||||
Magical Damage Reduction | 0.5 | 1 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 1 | 1.2 | 12.4 | ||||||||||
Magical Resistance | 1 | 5 | 5 | 10 | 5 | 10 | 5 | 10 | 1 | 5 | 1 | 5 | 1 | 5 | 1 | 5 | 5 | 10 | 1 | 5 | 70 | ||||||||||
Cooldown Reduction Bonus | 0 | ||||||||||||||||||||||||||||||
Actions | |||||||||||||||||||||||||||||||
Action Speed | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 0.5 | 1 | 12.5 | ||
Regular Interaction Speed | 0 | ||||||||||||||||||||||||||||||
Magical Interaction Speed | 0 | ||||||||||||||||||||||||||||||
Spell Casting Speed | 0.5 | 1 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 12 | ||||||||
Move Speed Add | 1 | 1 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 14 | |||||||||
Move Speed Bonus | 0.1 | 0.5 | 0.1 | 0.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.1 | 0.5 | 0.1 | 0.5 | 0.1 | 0.5 | 0.1 | 0.5 | 0.5 | 1 | 0.1 | 0.5 | 7 | ||
Health | |||||||||||||||||||||||||||||||
Max Health Add | 1 | 1 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 14 | |||||||||
Max Health Bonus | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 1 | 1.5 | 0.5 | 1 | 12.5 | ||
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 | 1 | 1.5 | 1 | 1.5 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1.5 | 2 | 1 | 1.5 | 18 | ||
Debuff Duration Bonus | 1 | 1.5 | 1 | 1.5 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1.5 | 2 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1 | 1.5 | 1.5 | 2 | 1 | 1.5 | 18 | ||
Memory | |||||||||||||||||||||||||||||||
Memory Capacity Add | 1 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 14 | ||||||||||||||
Memory Capacity Bonus | 1.5 | 3 | 2 | 4 | 2 | 4 | 2 | 4 | 2 | 4 | 1.5 | 3 | 1.5 | 3 | 1.5 | 3 | 1.5 | 3 | 2 | 4 | 1.5 | 3 | 36 | ||||||||
Misc | |||||||||||||||||||||||||||||||
Luck | 20 | 25 | 20 | 25 | 7 | 12 | 7 | 12 | 7 | 12 | 7 | 12 | 20 | 25 | 7 | 12 | 147 |
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 |