Factorio Prototype DocsVersion 2.0.49

LightningProperties :: struct

Properties

lightnings_per_chunk_per_tick :: double
search_radius :: double
lightning_types :: array[EntityID]

Cannot be an empty array. [...]

Cannot be an empty array. [...]

priority_rules :: array[LightningPriorityRule]
exemption_rules :: array[LightningRuleBase]
lightning_multiplier_at_day optional :: double

Must be in range [0,1].

Must be in range [0,1].

lightning_multiplier_at_night optional :: double

Must be in range [0,1].

Must be in range [0,1].

multiplier_surface_property optional :: SurfacePropertyID

When set, value of that surface property will be used as an additional multiplier to the lightning frequency. [...]

When set, value of that surface property will be used as an additional multiplier to the lightning frequency. [...]

lightning_warning_icon optional :: Sprite

Icon to render on top of entities that are endangered by lightning. [...]

Icon to render on top of entities that are endangered by lightning. [...]

Properties

lightnings_per_chunk_per_tick :: double

search_radius :: double

lightning_types :: array[EntityID]

Cannot be an empty array. Names of lightning entities.

priority_rules :: array[LightningPriorityRule]

exemption_rules :: array[LightningRuleBase]

lightning_multiplier_at_day :: double optional

Default: 0

Must be in range [0,1].

lightning_multiplier_at_night :: double optional

Default: 1

Must be in range [0,1].

multiplier_surface_property :: SurfacePropertyID optional

When set, value of that surface property will be used as an additional multiplier to the lightning frequency.

Value of that surface property is divided by default_value which means a default value must be positive (cannot be 0). When surface property has value at default, then this additional multiplier has value of 1.

lightning_warning_icon :: Sprite optional

Icon to render on top of entities that are endangered by lightning. When not provided, a UtilitySprites::lightning_warning_icon will be used instead.

Prototypes

Types

Defines