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.623.223.223.223.211.611.611.611.611.611.611.623.220.8
Physical Power
Ruby.png
112323232311111112316
Physical Gear Weapon Damage
Ruby.png
1111112
Physical Damage Add
Ruby.png
11115
Armor Penetration
Ruby.png
1.52.41.52.434.834.834.834.81.52.41.52.41.52.41.52.41.52.434.834.81.52.431.2
Magical Damage
Magical Power Bonus
Ruby.png
11.611.623.223.223.223.211.611.611.611.611.611.611.623.220.8
Magical Power
Blue Sapphire.png
112323232311111112316
Magical Damage Add
Blue Sapphire.png
11115
Magical Penetration
Blue Sapphire.png
1.52.41.52.434.834.834.834.81.52.41.52.41.52.41.52.41.52.434.834.81.52.431.2
Neutral Damage
Headshot Damage Modifier
Ruby.png
23.223.246.446.446.446.423.223.223.223.223.234.834.823.238.4
Undead Race Damage Bonus
Ruby.png
23.223.246.446.446.446.423.223.223.223.223.234.834.823.238.4
Demon Race Damage Bonus
Ruby.png
23.223.246.446.446.446.423.223.223.223.223.234.834.823.238.4
Reductions
Armor Rating Add
Emerald.png
712712152415241524152471271271271271215241524712156
Physical Damage Reduction
Emerald.png
0.71.20.71.21.52.41.52.41.52.41.52.40.71.20.71.20.71.20.71.20.71.21.52.41.52.40.71.215.6
Projectile Damage Reduction
Emerald.png
11.611.623.223.223.223.211.611.611.611.611.623.223.211.620.8
Magical Damage Reduction
Blue Sapphire.png
0.71.20.71.21.52.41.52.41.52.41.52.40.71.20.71.20.71.20.71.20.71.21.52.41.52.40.71.215.6
Magical Resistance
Blue Sapphire.png
712712152415241524152471271271271271215241524712156
Cooldown Reduction Bonus
Emerald.png
1.52.41.52.434.834.834.834.81.52.41.52.41.52.41.52.41.52.423.223.21.52.428
Undead Race Damage Reduction
Blue Sapphire.png
1.52.41.52.434.834.834.834.81.52.41.52.41.52.41.52.41.52.434.834.81.52.431.2
Demon Race Damage Reduction
Blue Sapphire.png
1.52.41.52.434.834.834.834.81.52.41.52.41.52.41.52.41.52.434.834.81.52.431.2
Actions
Action Speed
Blue Sapphire.png
11.611.623.223.223.223.211.611.611.611.611.623.223.211.620.8
Regular Interaction Speed0
Magical Interaction Speed0
Spell Casting Speed
Blue Sapphire.png
1.52.41.52.434.834.834.834.81.52.41.52.41.52.41.52.41.52.434.834.81.52.431.2
Healing
Outgoing Physical Healing Add
Emerald.png
111111112310
Outgoing Magical Healing Add
Emerald.png
111111112310
Statuses
Buff Duration Bonus
Emerald.png
1.52.41.52.434.834.834.834.81.52.41.52.41.52.41.52.41.52.434.834.81.52.431.2
Debuff Duration Bonus
Emerald.png
1.52.41.52.434.834.834.834.81.52.41.52.41.52.41.52.41.52.434.834.81.52.431.2
Memory
Memory Capacity Add
Emerald.png
1123232323121212121223231223
Memory Capacity Bonus
Emerald.png
2.542.54585858583.763.763.763.763.7658583.7666
Misc
Luck
Blue Sapphire.png
15241524304830483048304815241524152415241524304830481524312

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