From Dark and Darker Wiki

(Updated status notification to use DropTable status instead of LootTable status.)
(Added tabs for Junk tier.)
Line 6: Line 6:
--><includeonly>{{#vardefine:active}}<!--
--><includeonly>{{#vardefine:active}}<!--
Rarity flags for whether or not the item has a drop table for that rarity.
Rarity flags for whether or not the item has a drop table for that rarity.
-->{{#vardefine:Junk|<!--
-->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 0<!--
-->|1<!-- Var Junk is set to 1 if the DropTable exists.
-->{{#if:{{#var:active}}<!-- First DropTable that exists is set to active.
-->||{{#vardefine:active|Junk}} }} }} }}<!--
-->{{#vardefine:Poor|<!--
-->{{#vardefine:Poor|<!--
-->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 1<!--
-->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 1<!--
-->|1<!-- Var Poor is set to 1 if the DropTable exists.
-->|1<!--
-->{{#if:{{#var:active}}<!-- First DropTable that exists is set to active.
-->{{#if:{{#var:active}}<!--
-->||{{#vardefine:active|Poor}} }} }} }}<!--
-->||{{#vardefine:active|Poor}} }} }} }}<!--
-->{{#vardefine:Common|<!--
-->{{#vardefine:Common|<!--
Line 47: Line 52:
-->|<span style="width:100%; display:inline-block;"><h2>Dropped By</h2><br><!--
-->|<span style="width:100%; display:inline-block;"><h2>Dropped By</h2><br><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:9px; border-radius:10px;">Drop Tables last updated for {{:TODO|DropTables}}</p><br><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:9px; border-radius:10px;">Drop Tables last updated for {{:TODO|DropTables}}</p><br><!--
-->{{#if:{{#var:Junk}}<!-- If the item has a drop table for the rarity, display the tab for it.
-->|{{TabToggle|Junk|Junk|active={{#ifeq:Junk|{{#var:active}}|yes|no}} }} }}<!--
-->{{#if:{{#var:Poor}}<!-- If the item has a drop table for the rarity, display the tab for it.
-->{{#if:{{#var:Poor}}<!-- If the item has a drop table for the rarity, display the tab for it.
-->|{{TabToggle|Poor|Poor|active={{#ifeq:Poor|{{#var:active}}|yes|no}} }} }}<!--
-->|{{TabToggle|Poor|Poor|active={{#ifeq:Poor|{{#var:active}}|yes|no}} }} }}<!--
Line 62: Line 69:
-->|{{TabToggle|Unique|Unique|active={{#ifeq:Unique|{{#var:active}}|yes|no}} }} }}<!--
-->|{{TabToggle|Unique|Unique|active={{#ifeq:Unique|{{#var:active}}|yes|no}} }} }}<!--


-->{{#if:{{#var:Junk}}<!--
-->|<div class="Junk-data" style="width:50%;{{#ifeq:Junk|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 0}}</div>}}<!--
-->{{#if:{{#var:Poor}}<!--
-->{{#if:{{#var:Poor}}<!--
-->|<div class="Poor-data" style="width:50%;{{#ifeq:Poor|{{#var:active}}|| display:none;}}"><!--
-->|<div class="Poor-data" style="width:50%;{{#ifeq:Poor|{{#var:active}}|| display:none;}}"><!--

Revision as of 01:54, 14 May 2024

Generate Drop Tables

Intended usage for individual pages:

{{GenerateDropTables}}

default value for item is -PAGENAME-, therefore the above code is same as

{{GenerateDropTables|{{PAGENAME}} }}

Example 1

{{GenerateDropTables|Longbow}}

Dropped By


Drop Tables last updated for Patch:6.6#Hotfix 69-2$green


Common
Uncommon
Rare
Epic
Legendary

Example 2

{{GenerateDropTables|Armet}}

Dropped By


Drop Tables last updated for Patch:6.6#Hotfix 69-2$green


Poor
Common
Uncommon
Rare
Epic
Legendary
Unique
Drop Source Table at 0 Luck
NameSorted by Total Expected Value (TEV) in Descending Order
TEV = Sum of all (Count * Probability)
TypeCountProbability
Containers10.3205%

Example 3

Only displays the rarity it can drop

{{GenerateDropTables|Bone}}

Dropped By


Drop Tables last updated for Patch:6.6#Hotfix 69-2$green


Common
Drop Source Table at 0 Luck
NameSorted by Total Expected Value (TEV) in Descending Order
TEV = Sum of all (Count * Probability)
TypeCountProbability
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%
Monster16.6667%

Example 4

Doesn't display anything if there are no drops

{{GenerateDropTables|Potion of Luck}}