Factorio.com|Forums|Wiki|Mod Portal|API Docs Prototype|Runtime|Auxiliary

# Factorio Prototype Docs Version 2.0.7

## 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

- default
- sorted

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 |

consumption optional | :: EffectValue | Multiplier to energy used during operation (not idle/drain use). [...]
Multiplier to energy used during operation (not idle/drain use). [...]
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. [...]
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. [...]
quality optional | :: EffectValue |
speed optional | :: EffectValue | Modifier to crafting speed, research speed, etc. [...]
Modifier to crafting speed, research speed, etc. [...]

## 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%.

### quality :: EffectValue optional

## Example

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

Type used in

- EffectReceiver::base_effect
- ModulePrototype::effect