From Dark and Darker Wiki
(initial examples) |
m (draw_socket_cost_table example) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
=Functions= | =Functions= | ||
== | ==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| | <pre>{{#invoke:Enchantments|draw_roll_range_table|gem}}</pre> | ||
{{#invoke:Enchantments| | {{#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}}
Enchantments | Required Gem | 1H | 1H Shield | 2H Shield | 2H Physical | 2H Hybrid | 2H Magical | Chest | Legs | Foot | Head | Hands | Cloak | Necklace | Ring | Max Total Possible | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | Min | Max | ||||
Attributes | |||||||||||||||||||||||||||||||
All Attributes | 1 | 1 | 1 | 3 | |||||||||||||||||||||||||||
Strength | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 21 | ||||||||||||||
Vigor | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 21 | ||||||||||||||
Agility | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 21 | ||||||||||||||
Dexterity | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 21 | ||||||||||||||
Will | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 21 | ||||||||||||||
Knowledge | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 21 | ||||||||||||||
Resourcefulness | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 21 | ||||||||||||||
Physical Damage | |||||||||||||||||||||||||||||||
Physical Power Bonus | 1 | 2 | 1 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 2 | 3 | 1 | 2 | 25 | ||||||
Physical Power | 1 | 2 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 25 | ||||||||
Physical Gear Weapon Damage | 1 | 1 | 1 | 2 | 1 | 2 | 2 | ||||||||||||||||||||||||
Physical Damage Add | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
True Physical Damage | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
Armor Penetration | 2 | 3 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 3 | 4 | 2 | 3 | 36 | ||||||||
Magical Damage | |||||||||||||||||||||||||||||||
Magical Power Bonus | 1 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 2 | 3 | 1 | 2 | 25 | ||||||||
Magical Power | 1 | 2 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 2 | 25 | ||||||||
Magical Damage Add | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
True Magical Damage | 1 | 1 | 1 | 1 | 5 | ||||||||||||||||||||||||||
Magical Penetration | 0 | ||||||||||||||||||||||||||||||
Reductions | |||||||||||||||||||||||||||||||
Armor Rating Add | 5 | 10 | 5 | 15 | 5 | 15 | 5 | 15 | 5 | 10 | 5 | 10 | 5 | 10 | 5 | 10 | 5 | 15 | 5 | 10 | 120 | ||||||||||
Physical Damage Reduction | 1 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 2 | 3 | 1 | 1.5 | 23 | ||||||||||
Projectile Damage Reduction | 1 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 2 | 3 | 1 | 2 | 24 | ||||||||||
Magical Damage Reduction | 1 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 2 | 3 | 1 | 1.5 | 23 | ||||||||||
Magical Resistance | 5 | 10 | 10 | 20 | 10 | 20 | 10 | 20 | 5 | 10 | 5 | 10 | 5 | 10 | 5 | 10 | 10 | 20 | 5 | 10 | 140 | ||||||||||
Cooldown Reduction Bonus | 0 | ||||||||||||||||||||||||||||||
Actions | |||||||||||||||||||||||||||||||
Action Speed | 1 | 2 | 1 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 2 | 3 | 1 | 2 | 25 | ||
Regular Interaction Speed | 0 | ||||||||||||||||||||||||||||||
Magical Interaction Speed | 0 | ||||||||||||||||||||||||||||||
Spell Casting Speed | 1 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 24 | ||||||||
Move Speed Add | 1 | 3 | 1 | 3 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 4 | 1 | 3 | 36 | ||
Move Speed Bonus | 0.5 | 1 | 0.5 | 1 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 0.5 | 1 | 1 | 2 | 0.5 | 1 | 14 | ||
Health | |||||||||||||||||||||||||||||||
Max Health Add | 1 | 3 | 1 | 3 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 4 | 1 | 3 | 36 | ||
Max Health Bonus | 1 | 2 | 1 | 2 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 2 | 3 | 1 | 2 | 25 | ||
Healing | |||||||||||||||||||||||||||||||
Outgoing Physical Healing Add | 1 | 3 | 1 | 3 | 1 | 2 | 10 | ||||||||||||||||||||||||
Outgoing Magical Healing Add | 1 | 2 | 1 | 2 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 2 | 14 | ||||||||||||||||
Statuses | |||||||||||||||||||||||||||||||
Buff Duration Bonus | 2 | 3 | 2 | 3 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 3 | 4 | 2 | 3 | 36 | ||
Debuff Duration Bonus | 2 | 3 | 2 | 3 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 3 | 4 | 2 | 3 | 2 | 3 | 2 | 3 | 2 | 3 | 3 | 4 | 2 | 3 | 36 | ||
Memory | |||||||||||||||||||||||||||||||
Memory Capacity Add | 1 | 3 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 4 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 3 | 1 | 4 | 1 | 3 | 36 | ||||||||
Memory Capacity Bonus | 3 | 6 | 4 | 8 | 4 | 8 | 4 | 8 | 4 | 8 | 3 | 6 | 3 | 6 | 3 | 6 | 3 | 6 | 4 | 8 | 3 | 6 | 72 | ||||||||
Misc | |||||||||||||||||||||||||||||||
Luck | 40 | 50 | 40 | 50 | 15 | 25 | 15 | 25 | 15 | 25 | 15 | 25 | 40 | 50 | 15 | 25 | 300 |
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}}
Rarity | Cost |
---|---|
Poor | 10 |
Common | 20 |
Uncommon | 30 |
Rare | 50 |
Epic | 100 |
Legend | 150 |
Unique | 200 |