Factorio Prototype DocsVersion 2.0.42

FeatureFlags :: struct - abstract Example code

A dictionary of feature flags and their status. It can be used to adjust prototypes based on whether the feature flags are enabled.

Properties

quality :: boolean

rail_bridges :: boolean

space_travel :: boolean

spoiling :: boolean

freezing :: boolean

segmented_units :: boolean

expansion_shaders :: boolean

Example

-- sets coal to spoil only when the spoiling feature flag is enabled
if feature_flags["spoiling"] then
  data.raw.item.coal.spoil_ticks = 600
end

Prototypes

Types

Defines