From Dark and Darker Wiki
m (Testing page layout) |
m (Changing Template to use calls that work with Weapon Data.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:active}}<!-- | <!-- | ||
NOTE TO FUTURE EDITORS: | |||
This template makes the assumption that Artifacts only exist for weapons. If this is not the case, the template will need to be updated to account for that. | |||
--><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:Poor|<!-- | -->{{#vardefine:Poor|<!-- | ||
Line 32: | Line 37: | ||
-->||{{#vardefine:active|Legendary}} }} }} }}<!-- | -->||{{#vardefine:active|Legendary}} }} }} }}<!-- | ||
-->{{#vardefine:Unique|<!-- | -->{{#vardefine:Unique|<!-- | ||
If the item has a unique variant check the DropTable for it. Else check the DropTable for the item itself. | If the item has a unique weapon variant check the DropTable for it. Else check the DropTable for the item itself. | ||
-->{{#ifexist:DropTable:{{#if:{{ | -->{{#ifexist:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}} 7|{{{1|{{PAGENAME}}}}} 7}}<!-- | ||
-->|1<!-- | -->|1<!-- | ||
-->{{#if:{{#var:active}}<!-- | -->{{#if:{{#var:active}}<!-- | ||
Line 78: | Line 83: | ||
-->|<div class="Unique-data"style="width:50%;{{#ifeq:Unique|{{#var:active}}|| display:none;}}"><!-- | -->|<div class="Unique-data"style="width:50%;{{#ifeq:Unique|{{#var:active}}|| display:none;}}"><!-- | ||
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 artifact variant display the DropTable for it. Else display the DropTable for the item itself. | ||
-->{{:DropTable:{{#if:{{ | -->{{:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}<!-- | ||
-->|{{ | -->|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}<!-- | ||
-->|{{{1|{{PAGENAME}}}}}}}<!-- | -->|{{{1|{{PAGENAME}}}}}}}<!-- | ||
--> 7}}</div>}}</span>}}<!-- | --> 7}}</div>}}</span>}}<!-- | ||
Line 90: | Line 95: | ||
==Example 1== | ==Example 1== | ||
<pre>{{GenerateDropTables| | <pre>{{GenerateDropTables|Longbow}}</pre> | ||
{{GenerateDropTables| | {{GenerateDropTables|Longbow}} | ||
==Example 2== | ==Example 2== |
Revision as of 01:25, 19 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|Longbow}}
Dropped By
Loot/Drop tables last updated for Patch:6.6#Patch 6$red
Common
Uncommon
Rare
Epic
Legendary
Unique
NameSorted by Total Expected Value in Descending Order Sum of all (Count * Probability) | Type | Count | Probability |
---|---|---|---|
Monster | 1 | 5.4208% | |
Monster | 1 | 4.0888% | |
Loose Loot | 1 | 2.2222% | |
Monster | 1 | 1.8071% | |
Monster | 1 | 1.8071% | |
Monster | 1 | 1.8071% | |
Monster | 1 | 1.8071% | |
Monster | 1 | 1.8071% | |
Monster | 1 | 1.8071% | |
Monster | 1 | 1.4596% | |
Monster | 1 | 0.8743% | |
Monster | 1 | 0.8743% | |
Monster | 1 | 0.8743% | |
Monster | 1 | 0.8743% | |
Monster | 1 | 0.8743% | |
Monster | 1 | 0.8743% | |
Containers | 1 | 0.37% | |
Containers | 1 | 0.37% | |
Containers | 1 | 0.37% | |
Containers | 1 | 0.37% | |
Monster | 1 | 0.3464% | |
Monster | 1 | 0.3163% | |
Containers | 1 | 0.3153% | |
Containers | 1 | 0.3153% | |
Containers | 1 | 0.28% | |
Containers | 1 | 0.28% | |
Containers | 1 | 0.28% | |
Containers | 1 | 0.28% | |
Containers | 1 | 0.28% | |
Monster | 1 | 0.2515% | |
Monster | 1 | 0.2459% | |
Containers | 1 | 0.2432% | |
Containers | 1 | 0.216% | |
Containers | 1 | 0.2158% | |
Containers | 1 | 0.2158% | |
Containers | 1 | 0.2158% | |
Containers | 1 | 0.2158% | |
Containers | 1 | 0.2158% | |
Containers | 1 | 0.2158% | |
Monster | 1 | 0.153% | |
Containers | 1 | 0.1464% | |
Containers | 1 | 0.1464% | |
Containers | 1 | 0.1081% |
Example 2
{{GenerateDropTables|Armet}}
Example 3
Only displays the rarity it can drop
{{GenerateDropTables|Bone}}
Example 4
Doesn't display anything if there are no drops
{{GenerateDropTables|Potion of Luck}}