Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# FeatureFlags - Prototype Docs

## 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. It is accessible through the global object named `feature_flags`.

## Properties

- default
- sorted

quality | :: boolean |
rail_bridges | :: boolean |
space_travel | :: boolean |
spoiling | :: boolean |
freezing | :: boolean |
segmented_units | :: boolean |
expansion_shaders | :: boolean |

expansion_shaders | :: boolean |
freezing | :: boolean |
quality | :: boolean |
rail_bridges | :: boolean |
segmented_units | :: boolean |
space_travel | :: boolean |
spoiling | :: boolean |

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