From Dark and Darker Wiki

(Removing bandaid source string fix)
(Fixed issue that arose from assuming every prop has an unlocked variant. Issue primarily affected Golden Chest.)
Line 7: Line 7:


Type:
Type:
-->{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}-{{{2|}}}|N|drops|all}} }}<!--
-->{{#switch:1<!--
-->|{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}} }}<!--
-->|{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}-{{{2|}}}|N|drops|all}} }}|1}}=<!--
-->{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}|HR|drops|all}} }}<!--
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->|{{TabToggle|HighRoller|'''High Roller'''|tabid=loottable}} }}<!--
If the first case isn't triggered, this is a fall-through option.
In practice, this means there only exist locked versions of the prop for Normals.
-->|{{#if:{{#vardefineecho:Normal|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|N|drops|all}} }}|1}}=<!--
-->{{TabToggle|Normal|'''Normal'''|tabid=loottable}} }}<!--
-->{{#switch:1<!--
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}|HR|drops|all}} }}|1}}=<!--
-->{{TabToggle|HighRoller|'''HighRoller'''|tabid=loottable}}<!--
If the first case isn't triggered, this is a fall-through option.
In practice, this means there only exist locked versions of the prop for High Roller.
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|HR|drops|all}} }}|1}}=<!--
-->{{TabToggle|HighRoller|'''HighRoller'''|tabid=loottable}} }}<!--


Loot Tables for container {{{1|}}} on source {{{2|}}}
Loot Tables for container {{{1|}}} on source {{{2|}}}
Line 55: Line 65:


--></includeonly><noinclude>
--></includeonly><noinclude>
Example <pre style="width:fit-content">{{GeneratePropLootDrops|Bronze Ornate Chest|Crypt}}</pre>
Example <pre style="width:fit-content">{{GeneratePropLootDrops|Golden Chest|Crypt}}</pre>
{{GeneratePropLootDrops|Bronze Ornate Chest|Crypt}}
{{GeneratePropLootDrops|Golden Chest|Crypt}}
</noinclude>
</noinclude>

Revision as of 00:57, 6 August 2024

Example

{{GeneratePropLootDrops|Golden Chest|Crypt}}

Loot Tables

Currently on Source: Crypt

There is no Golden Chest on this Source.