From Dark and Darker Wiki

m (Testing space)
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}}<!--
-->|<div><h2>Dropped By</h2><br><!--
-->|<span style="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 82: Line 82:
-->|{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{Item Data|Weapon|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{{1|{{PAGENAME}}}}}}}<!--
-->|{{{1|{{PAGENAME}}}}}}}<!--
--> 7}}</div>}}</div>}}<!--
--> 7}}</div>}}</span>}}<!--
--></includeonly><noinclude>
--></includeonly><noinclude>
=Generate Drop Tables=
=Generate Drop Tables=

Revision as of 22:30, 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#Patch 6$red


Common
Uncommon
Rare
Epic
Legendary
Drop Source Table
NameSorted by Total Expected Value in Descending Order
Sum of all (Count * Probability)
TypeCountProbability
Loose Loot12.2222%
Monster11.8975%
Monster11.8975%
Monster11.65%
Monster11.3545%
Monster10.9256%
Monster10.9256%
Monster10.9256%
Monster10.9256%
Monster10.918%
Monster10.918%
Monster10.7983%
Monster10.664%
Containers10.6271%
Containers10.6271%
Monster10.4832%
Monster10.4832%
Containers10.4746%
Monster10.4478%
Monster10.4478%
Monster10.4478%
Containers10.4205%
Containers10.4205%
Monster10.3495%
Monster10.3495%
Monster10.3464%
Containers10.3182%
Monster10.3163%
Containers10.3153%
Containers10.3153%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Containers10.3136%
Monster10.306%
Monster10.306%
Containers10.2966%
Containers10.2966%
Containers10.2966%
Containers10.28%
Containers10.28%
Containers10.28%
Monster10.2515%
Containers10.2432%
Containers10.2373%
Containers10.2373%
Containers10.2373%
Containers10.2373%
Containers10.2288%
Monster10.2213%
Monster10.2213%
Containers10.216%
Containers10.2158%
Containers10.2158%
Containers10.2158%
Containers10.2158%
Containers10.2158%
Containers10.2158%
Containers10.2022%
Containers10.2022%
Monster10.153%
Containers10.1464%
Containers10.1464%
Containers10.1461%
Containers10.1081%

Example 2

{{GenerateDropTables|Armet}}

Template:GenerateDropTables

Example 3

Only displays the rarity it can drop

{{GenerateDropTables|Bone}}

Template:GenerateDropTables

Example 4

Doesn't display anything if there are no drops

{{GenerateDropTables|Potion of Luck}}