Types/FluidProductPrototype: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(0.17)
(descs)
Line 14: Line 14:


'''Default''': 1
'''Default''': 1
Value between 0 and 1, 0 for 0% chance and 1 for 100% chance.


=== amount ===
=== amount ===
Line 27: Line 29:


Mandatory if <code>amount</code> is not specified.
Mandatory if <code>amount</code> is not specified.
If set to a number that is less than <code>amount_min</code>, the game will use <code>amount_min</code> internally.


=== temperature ===
=== temperature ===

Revision as of 12:31, 19 May 2019

A fluid product definition for a Prototype/Recipe. Its loading is triggered by the type of a Types/ProductPrototype being "fluid".

Mandatory properties

name

Type: Types/string

The name of a Prototype/Fluid.

Optional properties

probability

Type: Types/double

Default: 1

Value between 0 and 1, 0 for 0% chance and 1 for 100% chance.

amount

Type: Types/double

amount_min

Type: Types/MaterialAmountType

Mandatory if amount is not specified.

amount_max

Type: Types/MaterialAmountType

Mandatory if amount is not specified.

If set to a number that is less than amount_min, the game will use amount_min internally.

temperature

Type: Types/double

Sets the temperature of the fluid product.

catalyst_amount

Type: Types/double

Default: 0

See also