From Dark and Darker Wiki

m (Testing page layout)
m (Testing page layout)
Line 40: Line 40:
If the item has no drop tables, don't display anything.
If the item has no drop tables, don't display anything.
-->{{#if:{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}<!--
-->{{#if:{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}<!--
-->|<span style="width:90%; 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;">Loot/Drop tables last updated for {{:TODO|LootTables}}</p><br><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:9px; border-radius:10px;">Loot/Drop tables last updated for {{:TODO|LootTables}}</p><br><!--
-->{{#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.
Line 58: Line 58:


-->{{#if:{{#var:Poor}}<!--
-->{{#if:{{#var:Poor}}<!--
-->|<div class="Poor-data" {{#ifeq:Poor|{{#var:active}}||style="display:none"}}><!--
-->|<div class="Poor-data" style="width:50%;{{#ifeq:Poor|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 1}}</div>}}<!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 1}}</div>}}<!--
-->{{#if:{{#var:Common}}<!--
-->{{#if:{{#var:Common}}<!--
-->|<div class="Common-data" {{#ifeq:Common|{{#var:active}}||style="display:none"}}><!--
-->|<div class="Common-data"style="width:50%;{{#ifeq:Common|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 2}}</div>}}<!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 2}}</div>}}<!--
-->{{#if:{{#var:Uncommon}}<!--
-->{{#if:{{#var:Uncommon}}<!--
-->|<div class="Uncommon-data" {{#ifeq:Uncommon|{{#var:active}}||style="display:none"}}><!--
-->|<div class="Uncommon-data"style="width:50%;{{#ifeq:Uncommon|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 3}}</div>}}<!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 3}}</div>}}<!--
-->{{#if:{{#var:Rare}}<!--
-->{{#if:{{#var:Rare}}<!--
-->|<div class="Rare-data" {{#ifeq:Rare|{{#var:active}}||style="display:none"}}><!--
-->|<div class="Rare-data"style="width:50%;{{#ifeq:Rare|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 4}}</div>}}<!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 4}}</div>}}<!--
-->{{#if:{{#var:Epic}}<!--
-->{{#if:{{#var:Epic}}<!--
-->|<div class="Epic-data" {{#ifeq:Epic|{{#var:active}}||style="display:none"}}><!--
-->|<div class="Epic-data"style="width:50%;{{#ifeq:Epic|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 5}}</div>}}<!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 5}}</div>}}<!--
-->{{#if:{{#var:Legendary}}<!--
-->{{#if:{{#var:Legendary}}<!--
-->|<div class="Legendary-data" {{#ifeq:Legendary|{{#var:active}}||style="display:none"}}><!--
-->|<div class="Legendary-data"style="width:50%;{{#ifeq:Legendary|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 6}}</div>}}<!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 6}}</div>}}<!--
-->{{#if:{{#var:Unique}}<!--
-->{{#if:{{#var:Unique}}<!--
-->|<div class="Unique-data" {{#ifeq:Unique|{{#var:active}}||style="display:none"}}><!--
-->|<div class="Unique-data"style="width:50%;{{#ifeq:Unique|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:<!--
If the item has a artifact variant display the DropTable for it. Else display the DropTable for the item itself.
If the item has a unique variant display the DropTable for it. Else display the DropTable for the item itself.
-->{{:DropTable:{{#if:{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->{{#if:{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{{1|{{PAGENAME}}}}}}}<!--
-->|{{{1|{{PAGENAME}}}}}}}<!--
--> 7}}</div>}}</span>}}<!--
--> 7}}</div>}}</span>}}<!--
--></includeonly><noinclude>
--></includeonly><noinclude>
=Generate Drop Tables=
=Generate Drop Tables=

Revision as of 22:48, 15 March 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|Arming Sword}}

Dropped By


Loot/Drop tables last updated for Patch:6.7#Hotfix 79$green


Common
Uncommon
Rare
Epic
Legendary
Drop source table at 0 luck
NameSorted by total expected value in descending order
TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count)
TypeItem countProbability of 1+ drops per instance1-(1-probability per roll)(loot table roll count)

Some loot tables are rolled multiple times per instance (i.e. monster kill/container interaction/loose loot generation).

For further information, please reference the loot tables on the associated source page.
Loose Loot12.2222%
Monster11.575%
Monster11.575%
Monster11.26%
Monster11.26%
Monster11.25%
Containers1-20.9164%
Containers1-20.9164%
Monster10.7683%
Monster10.725%
Monster10.7159%
Monster10.7159%
Monster10.7159%
Monster10.7159%
Loose Loot10.6178%
Loose Loot10.6178%
Containers1-20.6155%
Containers1-20.6155%
Monster10.5875%
Monster10.58%
Containers1-20.4969%
Containers1-20.4969%
Containers1-20.463%
Containers1-20.463%
Containers1-20.463%
Containers1-20.463%
Containers1-20.463%
Containers1-20.463%
Containers1-20.4623%
Containers1-20.4623%
Containers1-20.4623%
Containers1-20.4623%
Containers1-20.4623%
Containers1-20.4623%
Containers1-20.4623%
Containers1-20.4623%
Containers1-20.4623%
Containers1-20.4084%
Containers1-20.4084%
Containers1-20.4084%
Monster10.3295%
Monster10.3295%
Monster10.2866%
Monster10.267%
Containers1-30.2398%
Containers1-30.2398%
Monster10.2316%
Containers1-20.1958%
Containers1-20.1958%
Monster10.1066%

Example 2

{{GenerateDropTables|Armet}}

Dropped By


Loot/Drop tables last updated for Patch:6.7#Hotfix 79$green


Poor
Common
Uncommon
Rare
Epic
Legendary
Unique
Drop source table at 0 luck
NameSorted by total expected value in descending order
TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count)
TypeItem countProbability of 1+ drops per instance1-(1-probability per roll)(loot table roll count)

Some loot tables are rolled multiple times per instance (i.e. monster kill/container interaction/loose loot generation).

For further information, please reference the loot tables on the associated source page.
Containers1-20.5874%

Example 3

Only displays the rarity it can drop

{{GenerateDropTables|Bone}}

Dropped By


Loot/Drop tables last updated for Patch:6.7#Hotfix 79$green


Common
Drop source table at 0 luck
NameSorted by total expected value in descending order
TEV = Sum of all (Probability of 1 drop * Item count per roll * Roll count)
TypeItem countProbability of 1+ drops per instance1-(1-probability per roll)(loot table roll count)

Some loot tables are rolled multiple times per instance (i.e. monster kill/container interaction/loose loot generation).

For further information, please reference the loot tables on the associated source page.
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%
Monster16.6667%
Monster16.6667%

Example 4

Doesn't display anything if there are no drops

{{GenerateDropTables|Potion of Luck}}