From Dark and Darker Wiki

(Added ContainersMapNavBar for purpose of examples.)
(times -> time(s))
(15 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|LootTables}}</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|{{{1|}}}}}</div><!--
--><div style="width:fit-content">{{ContainersMapNavBar}}</div><!--
-->Currently on Source: {{{2|}}}<!--
-->Currently on Source: {{{2|}}}<!--


Type:
Type:
-->{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}|drops|{{{2|}}}|N|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|}}}|drops|{{{2|}}}|HR|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 Table:
Loot Tables for container {{{1|}}} on source {{#var:map}}
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"}}><!--
-->{{ListContainersLootDrops<!--
-->{{#arraydefine:drops|{{#var:Normal}} }}<!--
-->|container={{{1|}}}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|map={{{2|}}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->|version=N}}</div><!--
-->{{TabToggle<!--
--><div class="HighRoller-data" style="display:none"><!--
-->|{{#var:currentdrop}}<!--
-->{{ListContainersLootDrops<!--
-->|{{#var:currentdrop}}<!--
-->|container={{{1|}}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|map={{{2|}}}<!--
-->|tabid=N}} }}<!--
-->|version=HR}}</div><!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!--
--><br><!--
--><span style="margin-left:30px; font-size:24px"><!--
-->Rolls <b>{{Prop Data|{{{1|}}}|{{#var:map}}|N|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}}|N}}</div> }}</div><!--
 
Transclude the Loot Tables for the High Roller drops
--><div class="HighRoller-data" {{#if:{{#var:Normal}}|style="display:none"}}><!--
-->{{#arraydefine:drops|{{#var:HighRoller}} }}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->{{TabToggle<!--
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|tabid=HR}} }}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
--><div class="{{#var:currentdrop}}-data" {{#ifeq:{{#var:i}}|0||style="display:none"}}><!--
--><br><!--
--><span style="margin-left:30px; font-size:24px"><!--
-->Rolls <b class="colorrarityElite">{{Prop Data|{{{1|}}}|{{#var:map}}|HR|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}}|HR}}</div> }}</div><!--
 
If there are no drops for the Source tell the user
--><div {{#if:{{#var:Normal}}{{#var:HighRoller}}|style="display:none"}}>There is no {{{1|}}} on this Source.</div><!--


--></includeonly><noinclude>
--></includeonly><noinclude>
Example <pre style="width:fit-content">{{GenerateContainersLootDrops|Reinforced Chest|Inferno}}</pre>
Example <pre style="width:fit-content">{{GenerateContainersLootDrops|Golden Chest|Inferno}}</pre>
{{GenerateContainersLootDrops|Reinforced 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.