Factorio Prototype DocsVersion 1.1.107

BaseNamedNoiseExpressions :: union

A list of notable NamedNoiseExpressions defined in the base game. A list of all named noise expression defined in the base game can be found here.

Note that the named noise expressions are all defined in Lua, so mods may remove or change the notable expressions listed here, or change how they are used in the map generation.

Union members

"distance"

noise.distance_from(noise.var("x"), noise.var("y"), noise.var("starting_positions")), so the distance from the closest starting position. distance is never < 0.

"tier_from_start"

noise.max(0.0, noise.var("distance") - noise.var("starting_area_radius")) / noise.var("starting_area_radius")

"tier"

noise.var("tier_from_start"), so same as tier_from_start.

"starting_area_weight"

1 - noise.min(1.0, noise.var("tier_from_start") / 2.0)

"moisture"

A value between 0 and 1 that determines whether a tile becomes sandy (low moisture) or grassy (high moisture).

"aux"

A value between 0 and 1 that determines whether low-moisture tiles become sand or red desert.

"temperature"

Provides a value (vaguely representing degrees Celsius, varying between -20 and 50) that is used (together with moisture and aux) as part of tree and decorative placement.

"elevation"

Tiles values less than zero become water. Cliffs are placed along certain contours according to CliffPlacementSettings.

"cliffiness"

Determines whether (when >0.5) or not (when <0.5) a cliff will be placed at an otherwise suitable (according to CliffPlacementSettings) location.

"enemy-base-intensity"

Is referenced by both enemy-base-frequency and enemy-base-radius. If this is overridden, enemy base frequency and size will both be affected and do something reasonable. By default, this expression returns a value proportional to distance from any starting point, clamped at about 7.

"enemy-base-frequency"

Represents average number of enemy bases per tile for a region, by default in terms of enemy-base-intensity.

"enemy-base-radius"

Represents the radius of an enemy base, if one were to be placed on the given tile, by default proportional to a constant plus enemy-base-intensity.

Prototypes

Types