From Dark and Darker Wiki

< Module:Droprate

No edit summary
(Cleaned up the page a bit)
 
Line 1: Line 1:
=Overview=
Functions for making loot table. Data comes from [[Loot:Monster.json]], Loot:Prop.json, Loot:Loose Loot.json, and the Loot:  namespace.
=Functions=
==loot_tables==
Creates a table of drops
<tabber>
|-| Parameters=
* ''name'' - Name of the object
* ''category'' - Monster, Prop, Loose Loot
|-| Examples=
<pre>{{#invoke:Droprate|loot_tables|name=Lich|category=Monster}}</pre>
{{#invoke:Droprate|loot_tables|name=Lich|category=Monster}}
{{#invoke:Droprate|loot_tables|name=Lich|category=Monster}}
</tabber>

Latest revision as of 09:13, 7 May 2026

Overview

Functions for making loot table. Data comes from Loot:Monster.json, Loot:Prop.json, Loot:Loose Loot.json, and the Loot: namespace.

Functions

loot_tables

Creates a table of drops

  • name - Name of the object
  • category - Monster, Prop, Loose Loot

{{#invoke:Droprate|loot_tables|name=Lich|category=Monster}}

Lua error in Module:Droprate at line 438: attempt to concatenate field 'loot' (a table value).