From Dark and Darker Wiki

< Module:Enchantments

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}}


EnchantmentsRequired Gem1H1H Shield2H Shield2H Physical2H Hybrid2H MagicalChestLegsFootHeadHandsCloakNecklaceRingMax Total Possible
MinMaxMinMaxMinMaxMinMaxMinMaxMinMaxMinMaxMinMaxMinMaxMinMaxMinMaxMinMaxMinMaxMinMax
Attributes
All Attributes0
Strength
Diamond.png
1212111112112
Vigor
Diamond.png
1212111112112
Agility
Diamond.png
1212111112112
Dexterity
Diamond.png
1212111112112
Will
Diamond.png
1212111112112
Knowledge
Diamond.png
1212111112112
Resourcefulness
Diamond.png
1212111112112
Physical Damage
Physical Power Bonus
Ruby.png
0.510.5111.511.511.511.50.510.510.510.5111.50.5112.5
Physical Power
Ruby.png
112121212111112114
Physical Gear Weapon Damage
Ruby.png
11112
Physical Damage Add
Ruby.png
11115
True Physical Damage
Ruby.png
11115
Armor Penetration
Ruby.png
11.51.521.521.521.5211.511.511.511.51.5211.518
Magical Damage
Magical Power Bonus
Ruby.png
0.5111.511.511.511.50.510.510.510.5111.50.5112.5
Magical Power
Blue Sapphire.png
112121212111112114
Magical Damage Add
Blue Sapphire.png
11115
True Magical Damage
Blue Sapphire.png
11115
Magical Penetration0
Reductions
Armor Rating Add
Emerald.png
2528282825252525282562
Physical Damage Reduction
Emerald.png
0.5111.511.511.50.510.510.510.5111.511.212.4
Projectile Damage Reduction
Emerald.png
0.5111.511.511.50.510.510.510.5111.50.5112
Magical Damage Reduction
Blue Sapphire.png
0.5111.511.511.50.510.510.510.5111.511.212.4
Magical Resistance
Blue Sapphire.png
15510510510151515155101570
Cooldown Reduction Bonus0
Actions
Action Speed
Blue Sapphire.png
0.510.5111.511.511.511.511.511.50.510.510.510.5111.50.5112.5
Regular Interaction Speed0
Magical Interaction Speed0
Spell Casting Speed
Blue Sapphire.png
0.5111.511.511.511.50.510.510.510.510.510.5112
Move Speed Add
Blue Sapphire.png
11121212121212111112114
Move Speed Bonus
Blue Sapphire.png
0.10.50.10.50.510.510.510.510.510.510.10.50.10.50.10.50.10.50.510.10.57
Health
Max Health Add
Emerald.png
11121212121212111112114
Max Health Bonus
Emerald.png
0.510.5111.511.511.511.511.511.50.510.510.510.5111.50.5112.5
Healing
Outgoing Physical Healing Add
Emerald.png
121216
Outgoing Magical Healing Add
Emerald.png
111212121218
Statuses
Buff Duration Bonus
Emerald.png
11.511.51.521.521.521.521.521.5211.511.511.511.51.5211.518
Debuff Duration Bonus
Emerald.png
11.511.51.521.521.521.521.521.5211.511.511.511.51.5211.518
Memory
Memory Capacity Add
Emerald.png
112121212111112114
Memory Capacity Bonus
Emerald.png
1.53242424241.531.531.531.53241.5336
Misc
Luck
Blue Sapphire.png
202520257127127127122025712147

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}}


RarityCost
Poor10
Common20
Uncommon30
Rare50
Epic100
Legend150
Unique200