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
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.611.61.52.41.52.41.52.41.52.411.611.611.611.611.611.61.52.411.618.4
Physical Power
Ruby.png
111212121211111123113
Physical Gear Weapon Damage
Ruby.png
1111112
Physical Damage Add
Ruby.png
11115
Armor Penetration
Ruby.png
1.52.41.52.42.542.542.542.541.52.41.52.41.52.41.52.41.52.41.52.42.541.52.428
Magical Damage
Magical Power Bonus
Ruby.png
11.611.61.52.41.52.41.52.41.52.411.611.611.611.611.611.61.52.411.618.4
Magical Power
Blue Sapphire.png
111212121211111123113
Magical Damage Add
Blue Sapphire.png
11115
Magical Penetration
Blue Sapphire.png
1.52.41.52.42.542.542.542.541.52.41.52.41.52.41.52.41.52.41.52.42.541.52.428
Neutral Damage
Headshot Damage Modifier
Ruby.png
23.223.246.446.446.446.423.223.223.223.223.223.234.823.236.8
Undead Race Damage Bonus
Ruby.png
23.223.246.446.446.446.423.223.223.223.223.223.234.823.236.8
Demon Race Damage Bonus
Ruby.png
23.223.246.446.446.446.423.223.223.223.223.223.234.823.236.8
Reductions
Armor Rating Add
Emerald.png
71271212201220122012207127127127127127121220712140
Physical Damage Reduction
Emerald.png
0.71.20.71.21.221.221.221.220.71.20.71.20.71.20.71.20.71.20.71.21.220.71.214
Projectile Damage Reduction
Emerald.png
11.611.61.52.41.52.41.52.41.52.411.611.611.611.611.611.61.52.411.618.4
Magical Damage Reduction
Blue Sapphire.png
0.71.20.71.21.221.221.221.220.71.20.71.20.71.20.71.20.71.20.71.21.220.71.214
Magical Resistance
Blue Sapphire.png
71271212201220122012207127127127127127121220712140
Cooldown Reduction Bonus
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.223.234.823.236.8
Undead Race Damage Reduction
Blue Sapphire.png
23.223.234.834.834.834.823.223.223.223.223.223.234.823.236.8
Demon Race Damage Reduction
Blue Sapphire.png
23.223.234.834.834.834.823.223.223.223.223.223.234.823.236.8
Actions
Action Speed
Blue Sapphire.png
11.611.61.52.41.52.41.52.41.52.411.611.611.611.611.611.61.52.411.618.4
Regular Interaction Speed
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.223.234.823.236.8
Magical Interaction Speed
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.223.234.823.236.8
Spell Casting Speed
Blue Sapphire.png
1.52.42.542.541.52.41.52.41.52.41.52.41.52.41.52.42.541.52.428
Healing
Outgoing Physical Healing Add
Emerald.png
11111111128
Outgoing Magical Healing Add
Emerald.png
11111111128
Statuses
Buff Duration Bonus
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.223.234.823.236.8
Debuff Duration Bonus
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.223.234.823.236.8
Memory
Memory Capacity Add
Emerald.png
244646242424242424462446
Memory Capacity Bonus
Emerald.png
610101610166106106106106106101016610116
Misc
Luck
Blue Sapphire.png
15241524254025402540254015241524152415241524152425401524280

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
Common10
Uncommon10
Rare20
Epic40
Legend80
Unique120