From Dark and Darker Wiki

(Testing fix for Global Props with Drop Data)
(Disabling the template until the loot tables are updated.)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<noinclude><includeonly><!--


--><h2 style="width:100%">Loot Tables</h2><!--
--><h2 style="width:100%">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 {{#explode:{{:TODO|Prop Data}}|$|0|2}}</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|Prop Data}}|$|0|2}}</p>--><!--
--><div style="width:50%; min-width:400px">{{ContainersMapNavBar|{{{1|}}}|{{{2|}}}}}</div><!--
--><div style="width:50%; min-width:400px">{{ContainersMapNavBar|{{{1|}}}|{{{2|}}}}}</div><!--
-->Currently on Source: {{{2|}}}<!--
-->Currently on Source: {{{2|}}}<br><br><!--


Type:
Type:
-->{{#vardefine:isActive|yes}}<!--
--><span style="font-size:24px"><!--
-->{{#switch:1<!--
-->{{#vardefine:isActive|yes}}<!--
-->|{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}-{{{2|}}}|N|drops|all}} }}|1}}=<!--
-->{{#switch:1<!--
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->|{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}-{{{2|}}}|N|drops|all}} }}|1}}=<!--
-->{{#vardefine:isLocked}}<!--
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->{{#vardefine:isActive|1}}<!--
-->{{#vardefine:isLocked}}<!--
If the first case isn't triggered, this is a fall-through option.
-->{{#vardefine:isActive|no}}<!--
In practice, this means there only exist locked versions of the prop for Normals.
If the first case isn't triggered, this is a fall-through option.
-->|{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|N|drops|all}} }}|1}}=<!--
In practice, this means there only exist locked versions of the prop for Normals.
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->|{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|N|drops|all}} }}|1}}=<!--
-->{{#vardefine:isLocked|&#35;Locked}}<!--
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->{{#vardefine:isActive|1}} }}<!--
-->{{#vardefine:isLocked|&#35;Locked}}<!--
-->{{#switch:1<!--
-->{{#vardefine:isActive|no}} }}<!--
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}|HR|drops|all}} }}|1}}=<!--
-->{{#switch:1<!--
-->{{TabToggle|HighRoller|'''High Roller'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}|HR|drops|all}} }}|1}}=<!--
-->{{#vardefine:isLockedHR}}<!--
-->{{TabToggle|HighRoller|'''High Roller'''|active={{#var:isActive}}|tabid=loottable}}<!--
If the first case isn't triggered, this is a fall-through option.
-->{{#vardefine:isActive|no}}<!--
In practice, this means there only exist locked versions of the prop for High Roller.
-->{{#vardefine:isLockedHR}}<!--
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|HR|drops|all}} }}|1}}=<!--
If the first case isn't triggered, this is a fall-through option.
-->{{TabToggle|HighRoller|'''High Roller'''|active={{#var:isActive}}|tabid=loottable}}<!--
In practice, this means there only exist locked versions of the prop for High Roller.
-->{{#vardefine:isLockedHR|&#35;Locked}} }}<!--
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|HR|drops|all}} }}|1}}=<!--
-->{{#switch:1<!--
-->{{TabToggle|HighRoller|'''High Roller'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->|{{#if:{{#vardefineecho:Global|{{Prop Data|{{{1|}}}-{{{2|}}}|Global|drops|all}} }}|1}}=<!--
-->{{#vardefine:isActive|no}}<!--
-->{{TabToggle|Global|'''Global'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#vardefine:isLockedHR|&#35;Locked}} }}<!--
-->{{#vardefine:isLockedGlobal}}<!--
 
If the first case isn't triggered, this is a fall-through option.
Different structure from above as Monster Props cannot be locked so we don't need the fall-through feature of Switches
In practice, this means there only exist locked versions of the prop for High Roller.
-->{{#if:{{#vardefineecho:Common|{{Prop Data|{{{1|}}}-{{{2|}}}|Common|drops|all}} }}<!--
-->|{{#if:{{#vardefineecho:Global|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|Global|drops|all}} }}|1}}=<!--
-->|{{TabToggle|Common|'''Common'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{TabToggle|Global|'''Global'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#vardefine:isActive|no}} }}<!--
-->{{#vardefine:isLockedGlobal|&#35;Locked}} }}<!--
-->{{#if:{{#vardefineecho:Elite|{{Prop Data|{{{1|}}}-{{{2|}}}|Elite|drops|all}} }}<!--
-->|{{TabToggle|Elite|'''Elite'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#vardefine:isActive|no}} }}<!--
-->{{#if:{{#vardefineecho:Nightmare|{{Prop Data|{{{1|}}}-{{{2|}}}|Nightmare|drops|all}} }}<!--
-->|{{TabToggle|Nightmare|'''Nightmare'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#vardefine:isActive|no}} }}</span><!--


Loot Tables for container {{{1|}}} on source {{{2|}}}
Loot Tables for container {{{1|}}} on source {{{2|}}}
Line 42: Line 47:
--><div class="Normal-data" {{#if:{{#var:Normal}}||style="display:none"}}><!--
--><div class="Normal-data" {{#if:{{#var:Normal}}||style="display:none"}}><!--
-->{{#arraydefine:drops|{{#var:Normal}} }}<!--
-->{{#arraydefine:drops|{{#var:Normal}} }}<!--
-->Loot Table: <!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
Line 61: Line 67:
--><div class="HighRoller-data" {{#if:{{#var:Normal}}|style="display:none"}}><!--
--><div class="HighRoller-data" {{#if:{{#var:Normal}}|style="display:none"}}><!--
-->{{#arraydefine:drops|{{#var:HighRoller}} }}<!--
-->{{#arraydefine:drops|{{#var:HighRoller}} }}<!--
-->Loot Table: <!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
Line 77: Line 84:
-->{{:LootTable:{{#var:currentdrop}}|HR}}</div> }}</div><!--
-->{{:LootTable:{{#var:currentdrop}}|HR}}</div> }}</div><!--


Transclude the Loot Tables for the Global drops
Transclude the Loot Tables for the Common drops
--><div class="Global-data" {{#if:{{#var:Normal}}|style="display:none"}}><!--
--><div class="Common-data" {{#if:{{#var:Normal}}{{#var:HighRoller}}|style="display:none"}}><!--
-->{{#arraydefine:drops|{{#var:Global}} }}<!--
-->{{#arraydefine:drops|{{#var:Common}} }}<!--
-->Loot Table: <!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->{{TabToggle<!--
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|tabid=Common}} }}<!--
-->{{#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|}}}-{{{2|}}}|Common|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}}|Common}}</div> }}</div><!--
 
Transclude the Loot Tables for the Elite drops
--><div class="Elite-data" {{#if:{{#var:Normal}}{{#var:HighRoller}}{{#var:Common}}|style="display:none"}}><!--
-->{{#arraydefine:drops|{{#var:Elite}} }}<!--
-->Loot Table: <!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->{{TabToggle<!--
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|tabid=Elite}} }}<!--
-->{{#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|}}}-{{{2|}}}|Elite|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}}|Elite}}</div> }}</div><!--
 
Transclude the Loot Tables for the Nightmare drops
--><div class="Nightmare-data" {{#if:{{#var:Normal}}{{#var:HighRoller}}{{#var:Common}}{{#var:Elite}}|style="display:none"}}><!--
-->{{#arraydefine:drops|{{#var:Nightmare}} }}<!--
-->Loot Table: <!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
Line 86: Line 134:
-->|{{#var:currentdrop}}<!--
-->|{{#var:currentdrop}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|active={{#ifeq:{{ #var:i }}|0|yes|no}}<!--
-->|tabid=Global}} }}<!--
-->|tabid=Nightmare}} }}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->{{#loop:i|0|{{#arraysize:drops}}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
-->|{{#vardefine:currentdrop|{{#arrayindex:drops|{{#var:i}} }} }}<!--
Line 92: Line 140:
--><br><!--
--><br><!--
--><span style="margin-left:30px; font-size:24px"><!--
--><span style="margin-left:30px; font-size:24px"><!--
-->Rolls <b class="colorrarityElite">{{Prop Data|{{{1|}}}-{{{2|}}}{{#var:isLockedHR}}|Global|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
-->Rolls <b class="colorrarityNightmare">{{Prop Data|{{{1|}}}-{{{2|}}}|Nightmare|drops|{{#var:currentdrop}} }}</b> time(s)</span><!--
--><br><!--
--><br><!--
-->{{:LootTable:{{#var:currentdrop}}|Global}}</div> }}</div><!--
-->{{:LootTable:{{#var:currentdrop}}|Nightmare}}</div> }}</div><!--


If there are no drops for the Source tell the user
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><!--
--><div {{#if:{{#var:Normal}}{{#var:HighRoller}}{{#var:Common}}{{#var:Elite}}{{#var:Nightmare}}|style="display:none"}}>There is no {{{1|}}} on this Source.</div><!--


--></includeonly><noinclude>
--></includeonly>
<h2>Example 1</h2>
<h1>Example: Marvelous Chest</h1>
<pre style="width:fit-content">{{GeneratePropLootDrops|Marvelous Chest|Global}}</pre>
<pre style="width:fit-content">{{GeneratePropLootDrops|Marvelous Chest|Global}}</pre>
{{GeneratePropLootDrops|Marvelous Chest|Global}}
{{GeneratePropLootDrops|Marvelous Chest|Global}}


<h2>Example 1</h2>
<h1>Example: Spider Pot</h1>
<pre style="width:fit-content">{{GeneratePropLootDrops|Spider Pot|Global}}</pre>
<pre style="width:fit-content">{{GeneratePropLootDrops|Spider Pot|Global}}</pre>
{{GeneratePropLootDrops|Spider Pot|Global}}
{{GeneratePropLootDrops|Spider Pot|Global}}


</noinclude>
</noinclude>

Latest revision as of 19:16, 22 April 2025

Example: Marvelous Chest

{{GeneratePropLootDrops|Marvelous Chest|Global}}


Example: Spider Pot

{{GeneratePropLootDrops|Spider Pot|Global}}