From Dark and Darker Wiki

(Fixed update status)
(Notice for tables being disabled.)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
<span style="font-size:18px; width:100%; display:inline-block"><h2>Dropped By</h2><!--
--><p style="padding:20px; color:red;">Iron Mace reworked the loot system. The current drop information is out of date and incredibly misleading.  Once things are fixed and loot information is accurate once more, this template will be re-enabled.</p></span><!--


NOTE TO FUTURE EDITORS:
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.
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}}<!--
--><noinclude><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|<!--
-->{{#vardefine:Junk|<!--
Line 42: Line 43:
-->||{{#vardefine:active|Legendary}} }} }} }}<!--
-->||{{#vardefine:active|Legendary}} }} }} }}<!--
-->{{#vardefine:Unique|<!--
-->{{#vardefine:Unique|<!--
-->{{#ifexist:DropTable:{{{1|{{PAGENAME}}}}} 7<!--
-->|1<!--
-->{{#if:{{#var:active}}<!--
-->||{{#vardefine:active|Unique}} }} }} }}<!--
-->{{#vardefine:Artifact|<!--
If the item has a unique weapon 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:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}} 7|{{{1|{{PAGENAME}}}}} 7}}<!--
-->{{#ifexist:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}} 8|{{{1|{{PAGENAME}}}}} 8}}<!--
-->|1<!--
-->|1<!--
-->{{#if:{{#var:active}}<!--
-->{{#if:{{#var:active}}<!--
-->||{{#vardefine:active|Unique}} }} }} }}<!--
-->||{{#vardefine:active|Artifact}} }} }} }}<!--


If the item has no drop tables, display nothing.
If the item has no drop tables, display nothing.
-->{{#if:{{#var:Junk}}{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}<!--
--><span style="width:100%; {{#if:{{#var:Junk}}{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}{{#var:Artifact}}<!--
-->|<span style="width:100%; display:inline-block;"><h2>Dropped By</h2><br><!--
-->|display:inline-block"><h2>Dropped By</h2><!--
-->|display:none">}}<!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:5px; font-weight:bold; margin:9px; border-radius:10px;">Drop Tables last updated for {{#explode:{{:TODO|DropTables}}|$|0|2}}</p><br><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:5px; font-weight:bold; margin:9px; border-radius:10px;">Drop Tables last updated for {{#explode:{{:TODO|DropTables}}|$|0|2}}</p><br><!--
-->{{#if:{{#var:Junk}}<!-- If the item has a drop table for the rarity, display the tab for it.
-->{{#if:{{#var:Junk}}<!-- If the item has a drop table for the rarity, display the tab for it.
Line 67: Line 74:
-->|{{TabToggle|Legendary|Legendary|active={{#ifeq:Legendary|{{#var:active}}|yes|no}} }} }}<!--
-->|{{TabToggle|Legendary|Legendary|active={{#ifeq:Legendary|{{#var:active}}|yes|no}} }} }}<!--
-->{{#if:{{#var:Unique}}<!--
-->{{#if:{{#var:Unique}}<!--
-->|{{TabToggle|Unique|Artifact|active={{#ifeq:Unique|{{#var:active}}|yes|no}} }} }}<!--
-->|{{TabToggle|Unique|Unique|active={{#ifeq:Unique|{{#var:active}}|yes|no}} }} }}<!--
-->{{#if:{{#var:Artifact}}<!--
-->|{{TabToggle|Artifact|Artifact|active={{#ifeq:Artifact|{{#var:active}}|yes|no}} }} }}<!--


-->{{#if:{{#var:Junk}}<!--
-->{{#if:{{#var:Junk}}<!--
-->|<div class="Junk-data" style="width:50%;{{#ifeq:Junk|{{#var:active}}|| display:none;}}"><!--
-->|<div class="Junk-data" style="width:75%;{{#ifeq:Junk|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 0}}</div>}}<!--
-->{{: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:75%;{{#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"style="width:50%;{{#ifeq:Common|{{#var:active}}|| display:none;}}"><!--
-->|<div class="Common-data"style="width:75%;{{#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"style="width:50%;{{#ifeq:Uncommon|{{#var:active}}|| display:none;}}"><!--
-->|<div class="Uncommon-data"style="width:75%;{{#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"style="width:50%;{{#ifeq:Rare|{{#var:active}}|| display:none;}}"><!--
-->|<div class="Rare-data"style="width:75%;{{#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"style="width:50%;{{#ifeq:Epic|{{#var:active}}|| display:none;}}"><!--
-->|<div class="Epic-data"style="width:75%;{{#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"style="width:50%;{{#ifeq:Legendary|{{#var:active}}|| display:none;}}"><!--
-->|<div class="Legendary-data"style="width:75%;{{#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"style="width:50%;{{#ifeq:Unique|{{#var:active}}|| display:none;}}"><!--
-->|<div class="Unique-data"style="width:75%;{{#ifeq:Unique|{{#var:active}}|| display:none;}}"><!--
-->{{:DropTable:{{{1|{{PAGENAME}}}}} 7}}</div>}}<!--
-->{{#if:{{#var:Artifact}}<!--
-->|<div class="Artifact-data"style="width:75%;{{#ifeq:Artifact|{{#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.
--><b style="font-size:36px">This table is missing values for [[Skull Key]] and [[Mystical Gem]].</b><!--
-->{{:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->{{:DropTable:{{#if:{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}}<!--
-->|{{Weapon Data|{{{1|{{PAGENAME}}}}}|artifactname}} 8<!--
-->|{{{1|{{PAGENAME}}}}}}}<!--
-->|{{{1|{{PAGENAME}}}}} 8}}}}</div>}}</span><!--
--> 7}}</div>}}</span><!--
 
-->|<span style="width:100%; display:inline-block; font-size:18px;"><h2>Dropped By</h2><p style="padding:20px">Nothing. Currently no drop source provides this item.</p></span>}}<!--
--><span style="font-size:18px; width:100%; {{#if:{{#var:Junk}}{{#var:Poor}}{{#var:Common}}{{#var:Uncommon}}{{#var:Rare}}{{#var:Epic}}{{#var:Legendary}}{{#var:Unique}}{{#var:Artifact}}<!--
--></includeonly><noinclude>
-->|display:none"><!--
-->|display:inline-block"><h2>Dropped By</h2>}}<!--
--><p style="padding:20px">Nothing. Currently no drop source provides this item.</p></span><!--
 
 
--></includeonly>
=Generate Drop Tables=
=Generate Drop Tables=
==Example==
==Example==
<pre>{{GenerateDropTables|Longbow}}</pre>
<pre>{{GenerateDropTables|Cinder}}</pre>
{{GenerateDropTables|Longbow}}
{{GenerateDropTables|Cinder}}
 
==Example==
<pre>{{GenerateDropTables|Halberd}}</pre>
{{GenerateDropTables|Halberd}}


==Example==
==Example==
Line 114: Line 136:


==Example==
==Example==
Doesn't display anything if there are no drops
Displays that no sources drop the item. The intention is to display true negatives and avoid the confusion of users wondering if no dropped by section is a wiki error.
<pre>{{GenerateDropTables|Potion of Luck}}</pre>
<pre>{{GenerateDropTables|Potion of Luck}}</pre>
{{GenerateDropTables|Potion of Luck}}
{{GenerateDropTables|Potion of Luck}}


</noinclude>
</noinclude>

Latest revision as of 05:51, 14 May 2025

Dropped By

Iron Mace reworked the loot system. The current drop information is out of date and incredibly misleading. Once things are fixed and loot information is accurate once more, this template will be re-enabled.

Generate Drop Tables

Example

{{GenerateDropTables|Cinder}}

Dropped By

Iron Mace reworked the loot system. The current drop information is out of date and incredibly misleading. Once things are fixed and loot information is accurate once more, this template will be re-enabled.

Example

{{GenerateDropTables|Halberd}}

Dropped By

Iron Mace reworked the loot system. The current drop information is out of date and incredibly misleading. Once things are fixed and loot information is accurate once more, this template will be re-enabled.

Example

{{GenerateDropTables|Armet}}

Dropped By

Iron Mace reworked the loot system. The current drop information is out of date and incredibly misleading. Once things are fixed and loot information is accurate once more, this template will be re-enabled.

Example

Only displays the rarity it can drop

{{GenerateDropTables|Bone}}

Dropped By

Iron Mace reworked the loot system. The current drop information is out of date and incredibly misleading. Once things are fixed and loot information is accurate once more, this template will be re-enabled.

Example

Displays that no sources drop the item. The intention is to display true negatives and avoid the confusion of users wondering if no dropped by section is a wiki error.

{{GenerateDropTables|Potion of Luck}}

Dropped By

Iron Mace reworked the loot system. The current drop information is out of date and incredibly misleading. Once things are fixed and loot information is accurate once more, this template will be re-enabled.