From Dark and Darker Wiki

(Changing Template to use structure that works with the new Item Data.)
m (Testing space)
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}}<!--
-->|<h2>Dropped By</h2><br><!--
-->|<div><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 82: Line 82:
-->|{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{{1|{{PAGENAME}}}}}}}<!--
-->|{{{1|{{PAGENAME}}}}}}}<!--
--> 7}}</div>}}<br>}}<!--
--> 7}}</div>}}</div>}}<!--
--></includeonly><noinclude>
--></includeonly><noinclude>
=Generate Drop Tables=
=Generate Drop Tables=

Revision as of 22:26, 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.6#Hotfix 69-2$green


Common
Uncommon
Rare
Epic
Legendary
Drop Source Table at 0 Luck
NameSorted by Total Expected Value (TEV) in Descending Order
TEV = Sum of all (Count * Probability)
TypeCountProbability
Loose Loot12.2222%
Monster11.575%
Monster11.575%
Monster11.3696%
Monster11.25%
Monster10.7683%
Monster10.7683%
Monster10.7683%
Monster10.7683%
Monster10.725%
Monster10.6304%
Loose Loot10.6178%
Loose Loot10.6178%
Monster10.5875%
Containers10.5059%
Containers10.5059%
Monster10.3537%
Monster10.3537%
Containers10.3398%
Containers10.3398%
Monster10.2866%
Containers10.2689%
Containers10.2689%
Monster10.2625%
Containers10.2534%
Containers10.2534%
Containers10.2534%
Containers10.2534%
Containers10.2534%
Containers10.2534%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.253%
Containers10.2189%
Containers10.2189%
Containers10.2189%
Monster10.1208%
Containers10.1079%
Containers10.1079%
Containers10.0865%
Containers10.0865%

Example 2

{{GenerateDropTables|Armet}}

Dropped By


Loot/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


Loot/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}}