From Dark and Darker Wiki

< Module:Enchantments

Revision as of 00:06, 28 February 2025 by Sur (talk | contribs) (draw_socket_cost_table example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
Strength0
Vigor0
Agility0
Dexterity0
Will0
Knowledge0
Resourcefulness0
Physical Damage
Physical Power Bonus
Ruby.png
0.60.90.60.91.21.91.21.91.21.91.21.90.91.40.91.40.60.90.60.90.60.90.60.90.91.40.60.911.5
Physical Power
Ruby.png
1111111111111111
Physical Gear Weapon Damage
Ruby.png
1111112
Physical Damage Add
Ruby.png
11115
True Physical Damage
Ruby.png
11115
Armor Penetration
Ruby.png
11.611.623.223.223.223.21.52.41.52.411.611.611.611.61.52.411.620
Magical Damage
Magical Power Bonus
Ruby.png
0.50.90.50.91.21.91.21.91.21.91.21.90.71.40.71.40.50.90.50.90.50.90.50.90.71.40.50.911.5
Magical Power
Blue Sapphire.png
1111111111111111
Magical Damage Add
Blue Sapphire.png
11115
True Magical Damage
Blue Sapphire.png
11115
Magical Penetration
Blue Sapphire.png
11.611.623.223.223.223.21.52.41.52.411.611.611.611.61.52.411.620
Neutral Damage
Headshot Damage Modifier
Ruby.png
11.611.623.223.223.223.21.52.41.52.411.611.611.611.61.52.411.620
Undead Race Damage Bonus
Ruby.png
11.611.623.223.223.223.21.52.41.52.411.611.611.611.61.52.411.620
Demon Race Damage Bonus
Ruby.png
11.611.623.223.223.223.21.52.41.52.411.611.611.611.61.52.411.620
Reductions
Armor Rating Add
Emerald.png
343469696969585834343434583457
Physical Damage Reduction
Emerald.png
0.50.80.50.811.611.611.611.60.71.20.71.20.50.80.50.80.50.80.50.80.71.20.50.810
Projectile Damage Reduction
Emerald.png
0.71.20.71.223.223.223.223.211.611.60.71.20.71.20.71.20.71.211.60.71.215.2
Magical Damage Reduction
Blue Sapphire.png
0.50.80.50.811.611.611.611.60.71.20.71.20.50.80.50.80.50.80.50.80.71.20.50.810
Magical Resistance
Blue Sapphire.png
343469696969585834343434583457
Cooldown Reduction Bonus
Emerald.png
0.71.20.71.21.52.41.52.41.52.41.52.411.611.60.71.20.71.20.71.20.71.211.60.71.214.4
Undead Race Damage Reduction
Blue Sapphire.png
11.611.623.223.223.223.21.52.41.52.411.611.611.611.61.52.411.620
Demon Race Damage Reduction
Blue Sapphire.png
11.611.623.223.223.223.21.52.41.52.411.611.611.611.61.52.411.620
Actions
Action Speed
Blue Sapphire.png
0.60.90.60.91.21.91.21.91.21.91.21.90.91.40.91.40.60.90.60.90.60.90.60.90.91.40.60.911.5
Regular Interaction Speed0
Magical Interaction Speed0
Spell Casting Speed
Blue Sapphire.png
11.611.623.223.223.223.21.221.2211.611.611.611.61.2211.618.8
Move Speed Add
Blue Sapphire.png
144
Move Speed Bonus
Blue Sapphire.png
0.31.21.2
Health
Max Health Add
Emerald.png
1123232323232312121212231224
Max Health Bonus
Emerald.png
0.71.20.71.21.52.41.52.41.52.41.52.41.52.41.52.411.611.611.611.61.52.411.619.2
Healing
Outgoing Physical Healing Add
Emerald.png
1111111111111111
Outgoing Magical Healing Add
Emerald.png
1111111111111111
Statuses
Buff Duration Bonus
Emerald.png
0.71.20.71.21.52.41.52.41.52.41.52.411.611.60.71.20.71.20.71.20.71.211.60.71.214.4
Debuff Duration Bonus
Emerald.png
0.71.20.71.21.52.41.52.41.52.41.52.411.611.60.71.20.71.20.71.20.71.211.60.71.214.4
Memory
Memory Capacity Add
Emerald.png
11232323232323111123118
Memory Capacity Bonus
Emerald.png
1.52.41.52.434.834.834.834.82.23.62.23.61.52.41.52.41.52.41.52.42.23.61.52.430
Misc
Luck
Blue Sapphire.png
15241524304830483048304822362236152415241524152422361524300

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
Epic100
Legend150
Unique200