Factorio Prototype DocsVersion 2.1.22

Effect - Prototype Docs

Effect :: struct Example code

When applied to modules, the resulting effect is a sum of all module effects, multiplied through calculations: (1 + sum module effects), or (0 + sum) for productivity.

Properties

consumption optional :: EffectValue

Multiplier to energy used during operation (not idle/drain use). [...]

Multiplier to energy used during operation (not idle/drain use). [...]

speed optional :: EffectValue

Modifier to crafting speed, research speed, etc. [...]

Modifier to crafting speed, research speed, etc. [...]

productivity optional :: EffectValue

Multiplied against work completed, adds to the bonus results of operating. [...]

Multiplied against work completed, adds to the bonus results of operating. [...]

pollution optional :: EffectValue

Multiplier to the pollution factor of an entity's pollution during use. [...]

Multiplier to the pollution factor of an entity's pollution during use. [...]

quality optional :: EffectValue

Adds a bonus chance to increase a product's quality. [...]

Adds a bonus chance to increase a product's quality. [...]

Properties

consumption :: EffectValue optional

Multiplier to energy used during operation (not idle/drain use). The minimum possible sum defaults to -80% and can be changed through EffectReceiver::consumption_limits on the machine.

speed :: EffectValue optional

Modifier to crafting speed, research speed, etc. The minimum possible sum defaults to -80% and can be changed through EffectReceiver::speed_limits on the machine.

productivity :: EffectValue optional

Multiplied against work completed, adds to the bonus results of operating. E.g. an extra crafted recipe or immediate research bonus. The minimum possible sum defaults to -80% and can be changed through EffectReceiver::productivity_limits on the machine.

pollution :: EffectValue optional

Multiplier to the pollution factor of an entity's pollution during use. The minimum possible sum defaults to -80% and can be changed through EffectReceiver::pollution_limits on the machine.

quality :: EffectValue optional

Adds a bonus chance to increase a product's quality. The minimum possible sum defaults to 0% and can be changed through EffectReceiver::quality_limits on the machine. If negative values are allowed on the effect receiver, the product's quality can be decreased.

Example

-- These are the effects of the vanilla Speed Module 3
{speed = 0.5, consumption = 0.7, quality = -0.025}
Fulltext search

Prototypes

Types

Defines

Fulltext search for