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

# Factorio Prototype Docs Version 2.0.77

# MapGenPresetEnemyExpansionSettings - Prototype Docs

## MapGenPresetEnemyExpansionSettings :: struct

## Properties

- default
- sorted

enabled optional | :: boolean |
max_expansion_distance optional | :: uint32 | Distance in chunks from the furthest base around. [...]
Distance in chunks from the furthest base around. [...]
settler_group_min_size optional | :: uint32 | Size of the group that goes to build new base (the game interpolates between min size and max size based on evolution factor).
Size of the group that goes to build new base (the game interpolates between min size and max size based on evolution factor).
settler_group_max_size optional | :: uint32 |
min_expansion_cooldown optional | :: uint32 | Ticks to expand to a single position for a base is used. [...]
Ticks to expand to a single position for a base is used. [...]
max_expansion_cooldown optional | :: uint32 | In ticks.
In ticks.

enabled optional | :: boolean |
max_expansion_cooldown optional | :: uint32 | In ticks.
In ticks.
max_expansion_distance optional | :: uint32 | Distance in chunks from the furthest base around. [...]
Distance in chunks from the furthest base around. [...]
min_expansion_cooldown optional | :: uint32 | Ticks to expand to a single position for a base is used. [...]
Ticks to expand to a single position for a base is used. [...]
settler_group_max_size optional | :: uint32 |
settler_group_min_size optional | :: uint32 | Size of the group that goes to build new base (the game interpolates between min size and max size based on evolution factor).
Size of the group that goes to build new base (the game interpolates between min size and max size based on evolution factor).

## Properties

### enabled :: boolean optional

### max_expansion_distance :: uint32 optional

Distance in chunks from the furthest base around. This prevents expansions from reaching too far into the player's territory.

### settler_group_min_size :: uint32 optional

Size of the group that goes to build new base (the game interpolates between min size and max size based on evolution factor).

### settler_group_max_size :: uint32 optional

### min_expansion_cooldown :: uint32 optional

Ticks to expand to a single position for a base is used. Cooldown is calculated as follows: `cooldown = lerp(max_expansion_cooldown, min_expansion_cooldown, -e^2 + 2 * e)` where `lerp` is the linear interpolation function, and e is the current evolution factor.

### max_expansion_cooldown :: uint32 optional

In ticks.

Type used in

- AdvancedMapGenSettings::enemy_expansion