Factorio Prototype DocsVersion 1.1.107

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, for productivity (0 + sum).

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. [...]

Properties

consumption :: EffectValue optional

Multiplier to energy used during operation (not idle/drain use). The minimum possible sum is -80%.

speed :: EffectValue optional

Modifier to crafting speed, research speed, etc. The minimum possible sum is -80%.

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 is 0%.

pollution :: EffectValue optional

Multiplier to the pollution factor of an entity's pollution during use. The minimum possible sum is -80%.

Example

effect =
{
  productivity = {bonus = 0.04},
  consumption = {bonus = 0.4},
  pollution = {bonus = 0.05},
  speed = {bonus = -0.05}
}

Prototypes

Types