Factorio Prototype DocsVersion 2.0.15

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 :: bool

rail_bridges :: bool

space_travel :: bool

spoiling :: bool

freezing :: bool

segmented_units :: bool

expansion_shaders :: bool

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