Types/ItemProductPrototype
Revision as of 16:31, 10 December 2018 by Bilka (talk | contribs) (Created page with "__NOTOC__An item product definition for a Prototype/Recipe. Its loading is triggered by the <code>type</code> of a Types/ProductPrototype being "item". It can be speci...")
An item product definition for a Prototype/Recipe. Its loading is triggered by the type
of a Types/ProductPrototype being "item". It can be specified as a table with named or numbered keys, but not a mix of both.
Mandatory properties
name or 1
Type: Types/string
The name of a Prototype/Item.
Optional properties
amount or 2
Type: Types/uint16
Mandatory when using numbered keys (an array).
probability
Type: Types/double
Default: 1
amount_min
Type: Types/uint16
Mandatory if amount
is not specified and named keys are being used.
amount_max
Type: Types/uint16
Mandatory if amount
is not specified and named keys are being used.