From Dark and Darker Wiki

(Updated the Prop Data template calls to account for the new data structure.)
(times -> time(s))
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#switch:{{{2|}}}
|Global={{#vardefine:map|Global}}
|Goblin Cave/Ice Cave={{#vardefine:map|GCIC}}
|Crypt={{#vardefine:map|Crypt}}
|Inferno/Ice Abyss={{#vardefine:map|IIA}} }}<!--
--><h2>Loot Tables</h2><!--
--><h2>Loot Tables</h2><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:20px; border-radius:10px;">Loot Tables last updated for {{:TODO|Props}}</p><!--
--><p style="width:fit-content; border:1px solid #DD952A; text-align:center; padding:3px; font-weight:bold; margin:20px; border-radius:10px;">Loot Tables last updated for {{#explode:{{:TODO|Props}}|$|0|2}}</p><!--
--><div style="width:fit-content">{{ContainersMapNavBar}}</div><!--
--><div style="width:fit-content">{{ContainersMapNavBar}}</div><!--
-->Currently on Source: {{{2|}}}<!--
-->Currently on Source: {{{2|}}}<!--


Type:
Type:
-->{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}|{{{2|}}}|N|drops|all}} }}<!--
-->{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}|{{#var:map}}|N|drops|all}} }}<!--
-->|{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}} }}<!--
-->|{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}} }}<!--
-->{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}|{{{2|}}}|HR|drops|all}} }}<!--
-->{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}|{{#var:map}}|HR|drops|all}} }}<!--
-->|{{TabToggle|HighRoller|'''High Roller'''|tabid=loottable}} }}<!--
-->|{{TabToggle|HighRoller|'''High Roller'''|tabid=loottable}} }}<!--


Loot Tables for container {{{1|}}} on source {{{2|}}}
Loot Tables for container {{{1|}}} on source {{#var:map}}
Transclude the Loot Tables for the Normal drops
Transclude the Loot Tables for the Normal drops
--><div class="Normal-data" {{#if:{{#var:Normal}}||style="display:none"}}><!--
--><div class="Normal-data" {{#if:{{#var:Normal}}||style="display:none"}}><!--
Line 21: Line 27:
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|tabid={{{1|}}}}} }}<!--
-->|tabid=N}} }}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!--
--><br><!--
--><br><!--
--><span style="margin-left:30px"><!--
--><span style="margin-left:30px; font-size:24px"><!--
-->Rolls {{Prop Data|{{{1|}}}|{{{2|}}}|N|drops|{{#var:currentdrop}} }} times</span><!--
-->Rolls <b>{{Prop Data|{{{1|}}}|{{#var:map}}|N|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}} }}</div> }}</div><!--
-->{{:LootTable:{{#var:currentdrop}}|N}}</div> }}</div><!--


Transclude the Loot Tables for the High Roller drops
Transclude the Loot Tables for the High Roller drops
Line 40: Line 46:
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|tabid={{{1|}}}}} }}<!--
-->|tabid=HR}} }}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!--
--><br><!--
--><br><!--
--><span style="margin-left:30px"><!--
--><span style="margin-left:30px; font-size:24px"><!--
-->Rolls {{Prop Data|{{{1|}}}|{{{2|}}}|HR|drops|{{#var:currentdrop}} }} times</span><!--
-->Rolls <b class="colorrarityElite">{{Prop Data|{{{1|}}}|{{#var:map}}|HR|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}} }}</div> }}</div><!--
-->{{:LootTable:{{#var:currentdrop}}|HR}}</div> }}</div><!--


If there are no drops for the Source tell the user
If there are no drops for the Source tell the user
Line 55: Line 61:
--></includeonly><noinclude>
--></includeonly><noinclude>
Example <pre style="width:fit-content">{{GenerateContainersLootDrops|Golden Chest|Inferno}}</pre>
Example <pre style="width:fit-content">{{GenerateContainersLootDrops|Golden Chest|Inferno}}</pre>
{{GenerateContainersLootDrops|Golden Chest|Inferno}}
{{GenerateContainersLootDrops|Golden Chest|Crypt}}
</noinclude>
</noinclude>

Revision as of 18:06, 1 July 2024

Example

{{GenerateContainersLootDrops|Golden Chest|Inferno}}

Loot Tables

Loot Tables last updated for WIP

Global Goblin Cave Ice Cave Crypt Inferno Ice Abyss

Currently on Source: Crypt

There is no Golden Chest on this Source.