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

# Factorio Prototype Docs Version 2.0.77

# LightningProperties - Prototype Docs

## LightningProperties :: struct

## Properties

- default
- sorted

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 optional | :: array[LightningPriorityRule] |
exemption_rules optional | :: 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. [...]

lightning_types | :: array[EntityID] | Cannot be an empty array. [...]
Cannot be an empty array. [...]
lightnings_per_chunk_per_tick | :: double |
search_radius | :: double |
exemption_rules optional | :: 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]`.
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. [...]
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. [...]
priority_rules optional | :: array[LightningPriorityRule] |

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

### exemption_rules :: array[LightningRuleBase] optional

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

Type used in

- PlanetPrototype::lightning_properties