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 | ||||||||||||||||||||||||||||||
| Physical Power | 0 | ||||||||||||||||||||||||||||||
| Physical Gear Weapon Damage | 0 | ||||||||||||||||||||||||||||||
| Physical Damage Add | 0 | ||||||||||||||||||||||||||||||
| True Physical Damage | 0 | ||||||||||||||||||||||||||||||
| Armor Penetration | 0 | ||||||||||||||||||||||||||||||
| Magical Damage | |||||||||||||||||||||||||||||||
| Magical Power Bonus | 0 | ||||||||||||||||||||||||||||||
| Magical Power | 0 | ||||||||||||||||||||||||||||||
| Magical Damage Add | 0 | ||||||||||||||||||||||||||||||
| True Magical Damage | 0 | ||||||||||||||||||||||||||||||
| Magical Penetration | 0 | ||||||||||||||||||||||||||||||
| Neutral Damage | |||||||||||||||||||||||||||||||
| Headshot Damage Modifier | 0 | ||||||||||||||||||||||||||||||
| Undead Race Damage Bonus | 0 | ||||||||||||||||||||||||||||||
| Demon Race Damage Bonus | 0 | ||||||||||||||||||||||||||||||
| Reductions | |||||||||||||||||||||||||||||||
| Armor Rating Add | 0 | ||||||||||||||||||||||||||||||
| Physical Damage Reduction | 0 | ||||||||||||||||||||||||||||||
| Projectile Damage Reduction | 0 | ||||||||||||||||||||||||||||||
| Magical Damage Reduction | 0 | ||||||||||||||||||||||||||||||
| Magical Resistance | 0 | ||||||||||||||||||||||||||||||
| Cooldown Reduction Bonus | 0 | ||||||||||||||||||||||||||||||
| Undead Race Damage Reduction | 0 | ||||||||||||||||||||||||||||||
| Demon Race Damage Reduction | 0 | ||||||||||||||||||||||||||||||
| Actions | |||||||||||||||||||||||||||||||
| Action Speed | 0 | ||||||||||||||||||||||||||||||
| Regular Interaction Speed | 0 | ||||||||||||||||||||||||||||||
| Magical Interaction Speed | 0 | ||||||||||||||||||||||||||||||
| Spell Casting Speed | 1.7 | 2.8 | 2.8 | ||||||||||||||||||||||||||||
| Item Swap Speed | 0 | ||||||||||||||||||||||||||||||
| Move Speed Add | 0 | ||||||||||||||||||||||||||||||
| Move Speed Bonus | 0 | ||||||||||||||||||||||||||||||
| Health | |||||||||||||||||||||||||||||||
| Max Health Add | 0 | ||||||||||||||||||||||||||||||
| Max Health Bonus | 0 | ||||||||||||||||||||||||||||||
| Healing | |||||||||||||||||||||||||||||||
| Outgoing Physical Healing Add | 0 | ||||||||||||||||||||||||||||||
| Outgoing Magical Healing Add | 0 | ||||||||||||||||||||||||||||||
| Statuses | |||||||||||||||||||||||||||||||
| Buff Duration Bonus | 0 | ||||||||||||||||||||||||||||||
| Debuff Duration Bonus | 0 | ||||||||||||||||||||||||||||||
| Memory | |||||||||||||||||||||||||||||||
| Memory Capacity Add | 0 | ||||||||||||||||||||||||||||||
| Memory Capacity Bonus | 0 | ||||||||||||||||||||||||||||||
| Misc | |||||||||||||||||||||||||||||||
| Luck | 0 | ||||||||||||||||||||||||||||||
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 | 40 |
| Legend | 80 |
| Unique | 120 |