From Dark and Darker Wiki

< Module:Enchantments

(initial examples)
 
m (draw_socket_cost_table example)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


=Functions=
=Functions=
==draw_table==
==draw_roll_range_table==
Create's a table of enchants for the [[Enchantments]] page
Create's a table of enchants for the [[Enchantments]] page


Line 10: Line 10:


===Examples===
===Examples===
<pre>{{#invoke:Enchantments|draw_table|gem}}</pre>
<pre>{{#invoke:Enchantments|draw_roll_range_table|gem}}</pre>




{{#invoke:Enchantments|draw_table|gem}}
{{#invoke:Enchantments|draw_roll_range_table|gem}}
 
==draw_socket_cost_table==
Create's a table of socket's cost per rarity for the [[Enchantments]] page
 
===Parameters===
none
 
===Examples===
<pre>{{#invoke:Enchantments|draw_socket_cost_table}}</pre>
 
 
{{#invoke:Enchantments|draw_socket_cost_table}}

Latest revision as of 00:06, 28 February 2025

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.61.52.41.52.411.619.2
Physical Power
Ruby.png
11121212121111112121215
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.42.542.541.52.429.6
Magical Damage
Magical Power Bonus
Ruby.png
11.611.61.52.41.52.41.52.41.52.411.611.611.611.611.61.52.41.52.411.619.2
Magical Power
Blue Sapphire.png
11121212121111112121215
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.42.542.541.52.429.6
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
712712122012201220122071271271271271212201220712148
Physical Damage Reduction
Emerald.png
0.71.20.71.21.221.221.221.220.71.20.71.20.71.20.71.20.71.21.221.220.71.214.8
Projectile Damage Reduction
Emerald.png
11.611.61.52.41.52.41.52.41.52.411.611.611.611.611.61.52.41.52.411.619.2
Magical Damage Reduction
Blue Sapphire.png
0.71.20.71.21.221.221.221.220.71.20.71.20.71.20.71.20.71.21.221.220.71.214.8
Magical Resistance
Blue Sapphire.png
712712122012201220122071271271271271212201220712148
Cooldown Reduction Bonus
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.234.834.823.238.4
Undead Race Damage Reduction
Blue Sapphire.png
23.223.234.834.834.834.823.223.223.223.223.234.834.823.238.4
Demon Race Damage Reduction
Blue Sapphire.png
23.223.234.834.834.834.823.223.223.223.223.234.834.823.238.4
Actions
Action Speed
Blue Sapphire.png
11.611.61.52.41.52.41.52.41.52.411.611.611.611.611.61.52.41.52.411.619.2
Regular Interaction Speed
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.234.834.823.238.4
Magical Interaction Speed
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.234.834.823.238.4
Spell Casting Speed
Blue Sapphire.png
1.52.41.52.42.542.542.542.541.52.41.52.41.52.41.52.41.52.42.542.541.52.429.6
Healing
Outgoing Physical Healing Add
Emerald.png
111111121218
Outgoing Magical Healing Add
Emerald.png
111111121218
Statuses
Buff Duration Bonus
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.234.834.823.238.4
Debuff Duration Bonus
Emerald.png
23.223.234.834.834.834.823.223.223.223.223.234.834.823.238.4
Memory
Memory Capacity Add
Emerald.png
242446464646242424242446462448
Memory Capacity Bonus
Emerald.png
610610101610161016101661061061061061010161016610122
Misc
Luck
Blue Sapphire.png
15241524254025402540254015241524152415241524254025401524296

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