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
121212121210
Vigor
Diamond.png
121212121210
Agility
Diamond.png
121212121210
Dexterity
Diamond.png
121212121210
Will
Diamond.png
121212121210
Knowledge
Diamond.png
121212121210
Resourcefulness
Diamond.png
121212121210
Physical Damage
Physical Power Bonus
Ruby.png
11.811.822.722.722.722.711.811.811.814.4
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
2.5346.546.522.522.52.532.5311.821.1
Magical Damage
Magical Power Bonus
Ruby.png
11.822.722.722.722.711.811.811.814.4
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
10122025585834343434583473
Physical Damage Reduction
Emerald.png
22.544.51.51.81.51.811.211.211.211.21.51.811.217.1
Projectile Damage Reduction
Emerald.png
22.544.51.51.81.51.811.211.211.211.21.51.811.217.1
Magical Damage Reduction
Blue Sapphire.png
22.544.51.51.81.51.811.211.211.211.21.51.811.217.1
Magical Resistance
Blue Sapphire.png
10122025585834343434583473
Actions
Action Speed
Blue Sapphire.png
11.211.21.51.81.51.81.51.81.51.81.51.811.211.21.51.81.51.811.214.4
Spell Casting Speed
Blue Sapphire.png
1.51.81.51.811.211.21.51.81.51.811.212
Move Speed Add
Blue Sapphire.png
344
Move Speed Bonus
Blue Sapphire.png
11.21.2
Health
Max Health Add
Emerald.png
121234343434343412121212341228
Max Health Bonus
Emerald.png
11.211.21.52.51.52.51.52.51.52.51.51.81.51.811.211.211.211.21.51.811.215.1
Healing
Outgoing Physical Healing Add
Emerald.png
121216
Outgoing Magical Healing Add
Emerald.png
111212121218
Statuses
Buff Duration Bonus
Emerald.png
34.534.559595959595934.534.534.534.55934.563
Debuff Duration Bonus
Emerald.png
12.512.524.524.524.524.524.524.512.512.512.512.524.512.533.5
Memory
Memory Capacity Add
Emerald.png
1111212111112114
Memory Capacity Bonus
Emerald.png
24.55959595924.524.524.524.55924.563
Misc
Luck
Blue Sapphire.png
2545254515221522152225451522245

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