From Dark and Darker Wiki

m (Example typo)
(Fixed template to also handle Monster Prop variants.)
Line 12: Line 12:
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->{{#vardefine:isLocked}}<!--
-->{{#vardefine:isLocked}}<!--
-->{{#vardefine:isActive|1}}<!--
-->{{#vardefine:isActive|no}}<!--
If the first case isn't triggered, this is a fall-through option.
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.
In practice, this means there only exist locked versions of the prop for Normals.
Line 18: Line 18:
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->{{TabToggle|Normal|'''Normal'''|active=yes|tabid=loottable}}<!--
-->{{#vardefine:isLocked|&#35;Locked}}<!--
-->{{#vardefine:isLocked|&#35;Locked}}<!--
-->{{#vardefine:isActive|1}} }}<!--
-->{{#vardefine:isActive|no}} }}<!--
-->{{#switch:1<!--
-->{{#switch:1<!--
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}|HR|drops|all}} }}|1}}=<!--
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}|HR|drops|all}} }}|1}}=<!--
-->{{TabToggle|HighRoller|'''High Roller'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{TabToggle|HighRoller|'''High Roller'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#vardefine:isActive|no}}<!--
-->{{#vardefine:isLockedHR}}<!--
-->{{#vardefine:isLockedHR}}<!--
If the first case isn't triggered, this is a fall-through option.
If the first case isn't triggered, this is a fall-through option.
Line 27: Line 28:
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|HR|drops|all}} }}|1}}=<!--
-->|{{#if:{{#vardefineecho:HighRoller|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|HR|drops|all}} }}|1}}=<!--
-->{{TabToggle|HighRoller|'''High Roller'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{TabToggle|HighRoller|'''High Roller'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#vardefine:isActive|no}}<!--
-->{{#vardefine:isLockedHR|&#35;Locked}} }}<!--
-->{{#vardefine:isLockedHR|&#35;Locked}} }}<!--
-->{{#switch:1<!--
 
-->|{{#if:{{#vardefineecho:Global|{{Prop Data|{{{1|}}}-{{{2|}}}|Global|drops|all}} }}|1}}=<!--
Different structure from above as Monster Props cannot be locked so we don't need the fall-through feature of Switches
-->{{TabToggle|Global|'''Global'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#if:{{#vardefineecho:Common|{{Prop Data|{{{1|}}}-{{{2|}}}|Common|drops|all}} }}<!--
-->{{#vardefine:isLockedGlobal}}<!--
-->|{{TabToggle|Common|'''Common'''|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.
-->{{#if:{{#vardefineecho:Elite|{{Prop Data|{{{1|}}}-{{{2|}}}|Elite|drops|all}} }}<!--
-->|{{#if:{{#vardefineecho:Global|{{Prop Data|{{{1|}}}-{{{2|}}}#Locked|Global|drops|all}} }}|1}}=<!--
-->|{{TabToggle|Elite|'''Elite'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{TabToggle|Global|'''Global'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#vardefine:isActive|no}} }}<!--
-->{{#vardefine:isLockedGlobal|&#35;Locked}} }}<!--
-->{{#if:{{#vardefineecho:Nightmare|{{Prop Data|{{{1|}}}-{{{2|}}}|Nightmare|drops|all}} }}<!--
-->|{{TabToggle|Nightmare|'''Nightmare'''|active={{#var:isActive}}|tabid=loottable}}<!--
-->{{#vardefine:isActive|no}} }}<!--


Loot Tables for container {{{1|}}} on source {{{2|}}}
Loot Tables for container {{{1|}}} on source {{{2|}}}
Line 77: Line 81:
-->{{: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}} }}<!--
-->{{#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:Common}}|style="display:none"}}><!--
-->{{#arraydefine:drops|{{#var:Elite}} }}<!--
-->{{#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:Common}}{{#var:Elite}}|style="display:none"}}><!--
-->{{#arraydefine:drops|{{#var:Nightmare}} }}<!--
-->{{#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 128:
-->|{{#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 134:
--><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><noinclude>
<h1>Example 1</h1>
<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}}


<h1>Example 2</h1>
<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>

Revision as of 01:19, 14 August 2024

Example: Marvelous Chest

{{GeneratePropLootDrops|Marvelous Chest|Global}}

Loot Tables



Global

Currently on Source: Global

There is no Marvelous Chest on this Source.

Example: Spider Pot

{{GeneratePropLootDrops|Spider Pot|Global}}

Loot Tables

Currently on Source: Global

Common
Elite
Nightmare
Spiderpot_Common

Rolls 1 time(s)

Acknowledge

There is significant evidence that luck does not work as previously believed.
The wiki has been adjusted to better fit collected data. The benefit that 500 Luck now gives is closer to what 50 Luck was previously believed to provide.

I acknowledge that the information presented herein may not currently be true.

0
50
100
150
200
300
400
500
Loot Summary at 0 Luck
Type
Rarity
Utility
24.16%
Misc
75.84%
Poor
1.95%
1.9516%
Common
59.58%
12.74%46.8387%
Uncommon
32.97%
8.2424%24.7273%
Rare
5.0%
1.129%3.871%
Epic
0.5%
0.1%0.4%

Wiki Discord Link

Loot Table at 0 Luck
NameLuck GradeLuck Grades present on the graph but missing in the column below are associated with dropping nothing.RarityTypeItem CountProbability
2CommonUtility11.9516%
3UncommonUtility11.0303%
4RareUtility10.1613%
5EpicUtility10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonUtility11.9516%
3UncommonUtility11.0303%
4RareUtility10.1613%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonUtility11.9516%
3UncommonUtility11.0303%
4RareUtility10.1613%
5EpicUtility10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
3CommonUtility21.0303%
3UncommonUtility11.0303%
4RareUtility10.1613%
5EpicUtility10.0167%
2CommonUtility11.9516%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonUtility11.9516%
3UncommonUtility11.0303%
4RareUtility10.1613%
5EpicUtility10.0167%
2CommonUtility11.9516%
3UncommonUtility11.0303%
4RareUtility10.1613%
5EpicUtility10.0167%
3UncommonUtility11.0303%
4RareUtility10.1613%
5EpicUtility10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2PoorUtility11.9516%
3UncommonUtility21.0303%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%
2CommonMisc11.9516%
3UncommonMisc11.0303%
4RareMisc10.1613%
5EpicMisc10.0167%

There is no Spider Pot on this Source.