From Dark and Darker Wiki

(Changes Loot Table status to call on Props data.)
(Un-nesting Container templates to save on PEIS.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><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 {{:TODO|Props}}</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|}}}|drops|{{{2|}}}|N|all}} }}<!--
-->|{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}} }}<!--
-->{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}|drops|{{{2|}}}|HR|all}} }}<!--
-->{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}|drops|{{{2|}}}|HR|all}} }}<!--
-->|{{TabToggle|HighRoller|'''High Roller'''|tabid=loottable}} }}<!--
-->|{{TabToggle|HighRoller|'''High Roller'''|tabid=loottable}} }}<!--


Loot Table:
Loot Tables for container {{{1|}}} on source {{{2|}}}
--><div class="HighRoller-data" {{#if:{{#var:HighRoller}}||style="display:none"}}><!--
Transclude the Loot Tables for the Normal drops
-->{{ListContainersLootDrops<!--
--><div class="Normal-data" {{#if:{{#var:Normal}}||style="display:none"}}><!--
-->|container={{{1|}}}<!--
-->{{#arraydefine:drops|{{#var:Normal}} }}<!--
-->|map={{{2|}}}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|version=HR}}</div><!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->{{TabToggle<!--
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|tabid={{{1|}}}}} }}<!--
-->{{#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"><!--
-->Rolls {{Prop Data|{{{1|}}}|drops|{{{2|}}}|N|{{#var:currentdrop}} }} times</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}} }}</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={{{1|}}}}} }}<!--
-->{{#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"><!--
-->Rolls {{Prop Data|{{{1|}}}|drops|{{{2|}}}|HR|{{#var:currentdrop}} }} times</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}} }}</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>

Revision as of 13:25, 8 May 2024

Example

{{GenerateContainersLootDrops|Golden Chest|Inferno}}

Loot Tables

Loot Tables last updated for WIP$grey

Global Goblin Cave Ice Cave Crypt Inferno Ice Abyss

Currently on Source: Inferno

There is no Golden Chest on this Source.