From Dark and Darker Wiki

m (Typo)
(Fixed potion of luck effect)
 
(6 intermediate revisions by 2 users not shown)
Line 14: Line 14:
Create an array that will be filtered out from the stats data cell.
Create an array that will be filtered out from the stats data cell.
-->{{#arraydefine:stats_filter|Move Speed,Physical Base Weapon Damage}}<!--
-->{{#arraydefine:stats_filter|Move Speed,Physical Base Weapon Damage}}<!--
-->{{#arraydefine:allstats|{{Utility Data|{{#var:current}}|Stats|AllStats}} }}{{#arraydiff:allstats|allstats|stats_filter}}<!--
-->{{#arraydefine:allstats|{{Utility Data|{{{1|{{PAGENAME}}}}}|Stats|AllStats}} }}{{#arraydiff:allstats|allstats|stats_filter}}<!--
-->{{#arraydefine:all_abilities|{{Utility Data|{{#var:current}}|Abilities|All}} }}<!--
-->{{#arraydefine:all_abilities|{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|All}} }}<!--
-->{{#arraydefine:effects_filter|Scaling,Duration}}<!--
-->{{#arraydefine:effects_filter|Scaling,Duration}}<!--
-->{{#arraydefine:ability_filter|Consume,Throw}}<!--
-->{{#arraydefine:ability_filter|Consume,Throw}}<!--
Line 43: Line 43:
-->|{{#var:utility_stat}}<!--
-->|{{#var:utility_stat}}<!--
-->|{{Utility Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}} }} }}
-->|{{Utility Data|{{{1}}}|stats|{{#var:stat}} {{{2}}}}} }} }}
    |special ={{Utility Data|{{{1}}}|artifactpower}}
|compact_effect ={{#switch:1<!--
|compact_effect ={{#switch:1<!--
-->|{{#ifeq:{{{1|{{PAGENAME}}}}}|Potion of Luck|1}}=<!--
-->|{{#if:{{#pos:{{#var:current}}|Potion of Luck}}|1}}=<!--
-->{{Effects|Potion of Luck|{{#var:rarities}} }}<!--
-->{{Effects|Potion of Luck|{{#var:rarities}}}}<!--


-->|{{#if:{{#var:is_consumable}}|1}}=<!--
-->|{{#if:{{#var:is_consumable}}|1}}=<!--
-->{{#switch:{{lc:{{{1|{{PAGENAME}}}}} }}<!--
-->{{#switch:{{lc:{{{1|{{PAGENAME}}}}} }}<!--
-->|skull key=Opens the [[Skull Stone Door|Skull Door]]. This door can only be found on the Inferno map that features Ghost King, in the Demon Gate module.<!--
-->|skull key=Opens the [[Skull Stone Door|Skull Door]]. This door can only be found on the Inferno map that features Ghost King, in the Demon Gate module.<!--
-->|forzen iron key=Opens the [[Frozen Iron Door]]. This door can only be found in Ice Abyss, in the Charnel House module.<!--
-->|frozen iron key=Opens the [[Frozen Iron Door]]. This door can only be found in Ice Abyss, in the Charnel House module.<!--
-->|golden key=Opens the [[Golden Door]]. This door can be found in various modules of the Crypts maps, specifically: the Treasure Room, the Armory, and the Wheel.<!--
-->|golden key=Opens the [[Golden Door]]. This door can be found in various modules of the Crypts maps, specifically: the Treasure Room, the Armory, and the Wheel.<!--
-->|old rusty key=Opens the [[Rusty Iron Door]]. This door can only be found in Ruins.<!--
-->|old rusty key=Opens the [[Rusty Iron Door]]. This door can only be found in Ruins.<!--
Line 124: Line 125:
-->|{{#if:{{#var:is_throwable}}|1}}=<!--
-->|{{#if:{{#var:is_throwable}}|1}}=<!--
-->Throw a {{lc:{{{1|{{PAGENAME}}}}} }} at the target location.}}
-->Throw a {{lc:{{{1|{{PAGENAME}}}}} }} at the target location.}}
|actiontime ={{#if:{{#var:is_musicalinstrument}}{{#var:is_lightsource}}{{#var:is_throwable}}{{#var:is_mining}}{{#var:is_soulheart}}{{#var:is_healing_consumable}}{{#var:is_consumable}}<!--
-->||<!--
-->{{#vardefine:self_effects|{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|Other|Self|Effects|All}} }}<!--
-->{{#vardefine:duration|<!--
-->{{#switch:1<!--
-->|{{#if:{{#vardefineecho:global|{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|Other|Self|Effects|DrinkPotionActivateState|Rarity|Global|Duration}} }}|1}}=<!--
-->{{#var:global}} s (100% Scaling)<!--
-->|{{#if:{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|Other|Self|Effects|{{#var:self_effects}}|Rarity|5|Duration}}|1}}=<!--
-->{{#loop:i|0|{{#arraysize:rarities}}<!--
-->|{{#ifeq:{{#var:i}}|0||&nbsp;{{!}}&nbsp;}}<!--
--><span class="colorrarity{{#var:rarities}}"><!--
-->{{Utility Data|{{{1|{{PAGENAME}}}}}|Abilities|Other|Self|Effects|{{#var:self_effects}}|Rarity|{{#var:rarities}}|Duration}}</span>}} s (100% Scaling)}} }}<!--
-->{{#if:{{#var:duration}}|{{#var:duration}} }} }}
|interactiontime ={{#if:{{#var:is_installable}}{{#var:is_healing_consumable}}{{#var:is_consumable}}
|{{#switch:{{lc:{{{1|{{PAGENAME}}}}} }}<!--
-->|campfire kit=<!--
-->10 s (100% Scaling)<!--
-->|hunting trap=<!--
-->{{#switch:{{#var:rarities}}
|1=<span class="colorrarity1">6</span> s
|2=<span class="colorrarity2">5</span> s
|3=<span class="colorrarity3">4</span> s
|4=<span class="colorrarity4">3</span> s
|5=<span class="colorrarity5">2</span> s
|6=<span class="colorrarity6">1</span> s
|7=<span class="colorrarity7">1</span> s}}<!--
--> (100% Scaling)<!--
-->|bandage=<!--
-->4 s (50% Scaling)<!--
-->|surgical kit=<!--
-->{{#switch:{{#var:rarities}}
|1=<span class="colorrarity1">15</span> s
|2=<span class="colorrarity2">13</span> s
|3=<span class="colorrarity3">11</span> s
|4=<span class="colorrarity4">9</span> s
|5=<span class="colorrarity5">7</span> s
|6=<span class="colorrarity6">5</span> s
|7=<span class="colorrarity7">3</span> s}}<!--
--> (50% Scaling)}} }}
|type ={{Utility Data|{{{1}}}|types|all}}
|type ={{Utility Data|{{{1}}}|types|all}}
|description={{Utility Data|{{{1}}}|flavortext}}
|description={{Utility Data|{{{1}}}|flavortext}}
Line 129: Line 169:
|itemachieve={{Utility Data|{{{1}}}|AP|{{{2|{{#var:rarity}}}}}}}
|itemachieve={{Utility Data|{{{1}}}|AP|{{{2|{{#var:rarity}}}}}}}
|stacksize ={{Utility Data|{{{1}}}|maxcount}}
|stacksize ={{Utility Data|{{{1}}}|maxcount}}
|gearscore  ={{Utility Data|{{{1}}}|GearScore|{{{2}}}}}
|sellprice  ={{Utility Data|{{{1}}}|SellPrices|{{{2}}}}}
|sellprice  ={{Utility Data|{{{1}}}|SellPrices|{{{2}}}}}
|nomargin =1
|nomargin =1

Latest revision as of 06:18, 28 December 2024

Auto creates Utility infobox

Example

{{GenerateUtilityInfobox|Campfire Kit|1}}
{{GenerateUtilityInfobox|Campfire Kit|2}}
{{GenerateUtilityInfobox|Campfire Kit|3}}
{{GenerateUtilityInfobox|Campfire Kit|4}}
{{GenerateUtilityInfobox|Campfire Kit|5}}
{{GenerateUtilityInfobox|Campfire Kit|6}}
{{GenerateUtilityInfobox|Campfire Kit|7}}
{{GenerateUtilityInfobox|Potion of Healing|1}}
{{GenerateUtilityInfobox|Potion of Healing|2}}
{{GenerateUtilityInfobox|Potion of Healing|3}}
{{GenerateUtilityInfobox|Potion of Healing|4}}
{{GenerateUtilityInfobox|Potion of Healing|5}}
{{GenerateUtilityInfobox|Potion of Healing|6}}
{{GenerateUtilityInfobox|Potion of Healing|7}}
{{GenerateUtilityInfobox|Potion of Protection|1}}
{{GenerateUtilityInfobox|Potion of Protection|2}}
{{GenerateUtilityInfobox|Potion of Protection|3}}
{{GenerateUtilityInfobox|Potion of Protection|4}}
{{GenerateUtilityInfobox|Potion of Protection|5}}
{{GenerateUtilityInfobox|Potion of Protection|6}}
{{GenerateUtilityInfobox|Potion of Protection|7}}
{{GenerateUtilityInfobox|Pickaxe|4}}
{{GenerateUtilityInfobox|Lantern}}
Campfire Kit.png
-
Move Speed -10
-
Build a Campfire over 10s that will recover 3 HP and 34 Skill Points per second for 18s
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
2x2InvSlot.jpg
Stack Size:
1
Gear Score:
0
Sell Price:
0
A crackling campfire that you can rest near and recover.
Campfire Kit.png
-
Move Speed -10
-
Build a Campfire over 10s that will recover 3 HP and 34 Skill Points per second for 21s
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
2x2InvSlot.jpg
Stack Size:
1
Gear Score:
0
Sell Price:
5
A crackling campfire that you can rest near and recover.
Campfire Kit.png
-
Move Speed -10
-
Build a Campfire over 10s that will recover 3 HP and 34 Skill Points per second for 24s
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
2x2InvSlot.jpg
Stack Size:
1
Gear Score:
6
Sell Price:
7
A crackling campfire that you can rest near and recover.
Campfire Kit.png
-
Move Speed -10
-
Build a Campfire over 10s that will recover 3 HP and 34 Skill Points per second for 27s
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
2x2InvSlot.jpg
Stack Size:
1
Gear Score:
8
Sell Price:
11
A crackling campfire that you can rest near and recover.
Campfire Kit.png
-
Move Speed -10
-
Build a Campfire over 10s that will recover 3 HP and 34 Skill Points per second for 30s
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
2x2InvSlot.jpg
Stack Size:
1
Gear Score:
12
Sell Price:
19
A crackling campfire that you can rest near and recover.
Campfire Kit.png
-
Move Speed -10
-
Build a Campfire over 10s that will recover 3 HP and 34 Skill Points per second for 33s
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
2x2InvSlot.jpg
Stack Size:
1
Gear Score:
16
Sell Price:
30
A crackling campfire that you can rest near and recover.
Campfire Kit.png
-
Move Speed -10
-
Build a Campfire over 10s that will recover 3 HP and 34 Skill Points per second for 36s
Type:
Installable,CampfireKit
Interaction Time:
10 s (100% Scaling)
2x2InvSlot.jpg
Stack Size:
1
Gear Score:
20
Sell Price:
50
A crackling campfire that you can rest near and recover.
Potion of Healing.png
-
Move Speed -10
-
Heals 20 health points over 20 seconds. This counts as magical base healing and has 50% scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
0
Sell Price:
0
Potion used to recover a bit of health.
Potion of Healing.png
-
Move Speed -10
-
Heals 20 health points over 17.5 seconds. This counts as magical base healing and has 50% scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
0
Sell Price:
2
Potion used to recover a bit of health.
Potion of Healing.png
-
Move Speed -10
-
Heals 20 health points over 15 seconds. This counts as magical base healing and has 50% scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
6
Sell Price:
3
Potion used to recover a bit of health.
Potion of Healing.png
-
Move Speed -10
-
Heals 20 health points over 12.5 seconds. This counts as magical base healing and has 50% scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
8
Sell Price:
5
Potion used to recover a bit of health.
Potion of Healing.png
-
Move Speed -10
-
Heals 20 health points over 10 seconds. This counts as magical base healing and has 50% scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
12
Sell Price:
9
Potion used to recover a bit of health.
Potion of Healing.png
-
Move Speed -10
-
Heals 20 health points over 7.5 seconds. This counts as magical base healing and has 50% scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
16
Sell Price:
14
Potion used to recover a bit of health.
Potion of Healing.png
-
Move Speed -10
-
Heals 20 health points over 5 seconds. This counts as magical base healing and has 50% scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
20
Sell Price:
23
Potion used to recover a bit of health.
Potion of Protection.png
-
Move Speed -10
-
Creates a physical base shield that blocks 10 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
0
Sell Price:
0
Potion that gives a temporary defensive shield around the user.
Potion of Protection.png
-
Move Speed -10
-
Creates a physical base shield that blocks 15 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
0
Sell Price:
2
Potion that gives a temporary defensive shield around the user.
Potion of Protection.png
-
Move Speed -10
-
Creates a physical base shield that blocks 20 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
6
Sell Price:
4
Potion that gives a temporary defensive shield around the user.
Potion of Protection.png
-
Move Speed -10
-
Creates a physical base shield that blocks 25 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
8
Sell Price:
6
Potion that gives a temporary defensive shield around the user.
Potion of Protection.png
-
Move Speed -10
-
Creates a physical base shield that blocks 30 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
12
Sell Price:
10
Potion that gives a temporary defensive shield around the user.
Potion of Protection.png
-
Move Speed -10
-
Creates a physical base shield that blocks 35 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
16
Sell Price:
16
Potion that gives a temporary defensive shield around the user.
Potion of Protection.png
-
Move Speed -10
-
Creates a physical base shield that blocks 40 physical damage for 24 seconds. Damage blocked by the shield will be unaffected by Damage Reduction or limb/headshot multipliers. The shield has no scaling. 
Type:
Drink
Action Time:
3 s (100% Scaling)
1x1InvSlot.jpg
Stack Size:
3
Gear Score:
20
Sell Price:
27
Potion that gives a temporary defensive shield around the user.
Pickaxe.png
-
Physical Base Weapon Damage 28
-
-
Regular Interaction Speed 10%
-
-
Move Speed -45
-
Enables the player to interact with mining nodes to produce ore.
Type:
Mining
2x3InvSlot.jpg
Stack Size:
1
Gear Score:
8
Sell Price:
6
Item Achieve:
12
A trusty iron pickaxe that can chip away at most ore.
Mystical Gem.png
-
Move Speed -10
-
Opens the Goblin Stone Door. This door can only be found in Goblin Caves, in the Goblin Rooms module.
Type:
Consumable
1x1InvSlot.jpg
Stack Size:
1
Item Achieve:
10
A beautiful jewel that shines mysteriously. There are elaborate parts that seem to fit somewhere.