Factorio Prototype DocsVersion 1.1.107

NoiseFunctionRandomPenalty :: struct

Subtracts a random value in the [0, amplitude) range from source if source is larger than 0.

Properties

type :: "function-application"
function_name :: "random-penalty"
arguments :: RandomPenaltyArguments

Properties

type :: "function-application"

function_name :: "random-penalty"

arguments :: RandomPenaltyArguments

RandomPenaltyArguments :: struct

Properties

x :: NoiseNumber

Number used to seed the random generator.

y :: NoiseNumber

Number used to seed the random generator.

source :: NoiseNumber

Number that the penalty is applied to.

seed :: ConstantNoiseNumber optional

Default: 1

Integer used to seed the random generator.

amplitude :: ConstantNoiseNumber optional

Default: 1

Prototypes

Types