factorio-types 1.2.56 → 1.2.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.74
5
+ // Factorio version 2.0.77
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -97,7 +97,7 @@ interface Alert {
97
97
  /**
98
98
  * The tick this alert was created.
99
99
  */
100
- tick: uint32;
100
+ tick: MapTick;
101
101
  target?: LuaEntity;
102
102
  prototype?: LuaEntityPrototype;
103
103
  position?: MapPosition;
@@ -150,6 +150,10 @@ type Any = string | boolean | number | table | LuaObject;
150
150
  * Any basic type (string, number, boolean) or table.
151
151
  */
152
152
  type AnyBasic = string | boolean | number | table;
153
+ /**
154
+ * Refers to tints defined in {@link TilePrototype::particle_tints | prototype:TilePrototype::particle_tints}.
155
+ */
156
+ type ApplyTileTint = 'primary' | 'secondary';
153
157
  interface ArithmeticCombinatorBlueprintControlBehavior {
154
158
  arithmetic_conditions: ArithmeticCombinatorParameters;
155
159
  }
@@ -790,7 +794,7 @@ interface BlueprintEntityInserter extends BaseBlueprintEntity {
790
794
  * Present if position is non-default.
791
795
  */
792
796
  'pickup_position'?: Vector;
793
- 'spoil_priority'?: SpoilPriority;
797
+ 'spoil_priority'?: BlueprintSpoilPriority;
794
798
  /**
795
799
  * Defaults to `false`.
796
800
  */
@@ -1231,6 +1235,7 @@ interface BlueprintSignalIcon {
1231
1235
  */
1232
1236
  index: uint32;
1233
1237
  }
1238
+ type BlueprintSpoilPriority = 'fresh-first' | 'spoiled-first';
1234
1239
  /**
1235
1240
  * Describes a single wire in the blueprint. The members of the tuple are, in order:
1236
1241
  *
@@ -1740,9 +1745,9 @@ interface CommandStop extends BaseCommand {
1740
1745
  */
1741
1746
  'distraction'?: defines.distraction;
1742
1747
  /**
1743
- * Ticks to wander before successfully completing the command. Default is max uint32, which means stop forever.
1748
+ * Ticks to wander before successfully completing the command. Default is max uint64, which means stop forever.
1744
1749
  */
1745
- 'ticks_to_wait'?: uint32;
1750
+ 'ticks_to_wait'?: MapTick;
1746
1751
  }
1747
1752
  /**
1748
1753
  *
@@ -1921,7 +1926,7 @@ interface CustomCommandData {
1921
1926
  /**
1922
1927
  * The tick the command was used in.
1923
1928
  */
1924
- tick: uint32;
1929
+ tick: MapTick;
1925
1930
  /**
1926
1931
  * The player who issued the command, or `nil` if it was issued from the server console.
1927
1932
  */
@@ -1969,6 +1974,13 @@ interface CutsceneWaypoint {
1969
1974
  */
1970
1975
  zoom?: double;
1971
1976
  }
1977
+ /**
1978
+ * Used to specify what type of damage and how much damage something deals.
1979
+ */
1980
+ interface DamageParameters {
1981
+ amount: float;
1982
+ type: string;
1983
+ }
1972
1984
  interface DamageTypeFilters {
1973
1985
  /**
1974
1986
  * Whether this is a whitelist or a blacklist of damage types. `true` means whitelist.
@@ -2733,7 +2745,7 @@ interface EventData {
2733
2745
  /**
2734
2746
  * The tick during which the event happened.
2735
2747
  */
2736
- tick: uint32;
2748
+ tick: MapTick;
2737
2749
  /**
2738
2750
  * The name of the mod that raised the event if it was raised using {@link LuaBootstrap::raise_event | runtime:LuaBootstrap::raise_event}.
2739
2751
  */
@@ -3984,7 +3996,7 @@ interface ItemStackDefinition {
3984
3996
  /**
3985
3997
  * Tags of the items with tags in the stack.
3986
3998
  */
3987
- tags?: string[];
3999
+ tags?: Tags;
3988
4000
  /**
3989
4001
  * Description of the items with tags in the stack.
3990
4002
  */
@@ -4048,7 +4060,6 @@ interface ItemWithQualityCount {
4048
4060
  */
4049
4061
  count: ItemCountType;
4050
4062
  }
4051
- type ItemWithQualityCounts = ItemWithQualityCount[];
4052
4063
  /**
4053
4064
  * An item prototype with optional quality specification. Can be specified in one of four ways.
4054
4065
  */
@@ -6369,6 +6380,7 @@ interface MapGenPreset {
6369
6380
  advanced_settings?: AdvancedMapGenSettings;
6370
6381
  }
6371
6382
  /**
6383
+ * When reading MapGenSettings, all properties will always be present, but they can be omitted when writing.
6372
6384
  * @example ```
6373
6385
  -- Assuming a NamedNoiseExpression with the name "my-alternate-grass1-probability" is defined...
6374
6386
  local surface = game.player.surface
@@ -6391,52 +6403,52 @@ interface MapGenSettings {
6391
6403
  /**
6392
6404
  * Indexed by autoplace control prototype name.
6393
6405
  */
6394
- autoplace_controls: Record<string, AutoplaceControl>;
6406
+ autoplace_controls?: Record<string, AutoplaceControl>;
6395
6407
  /**
6396
6408
  * Whether undefined `autoplace_controls` should fall back to the default controls or not. Defaults to `true`.
6397
6409
  */
6398
- default_enable_all_autoplace_controls: boolean;
6410
+ default_enable_all_autoplace_controls?: boolean;
6399
6411
  /**
6400
6412
  * Each setting in this dictionary maps the string type to the settings for that type.
6401
6413
  */
6402
- autoplace_settings: Record<'entity' | 'tile' | 'decorative', AutoplaceSettings>;
6414
+ autoplace_settings?: Record<'entity' | 'tile' | 'decorative', AutoplaceSettings>;
6403
6415
  /**
6404
- * The random seed used to generated this map.
6416
+ * ) The random seed used to generated this map.
6405
6417
  */
6406
- seed: uint32;
6418
+ seed?: uint32;
6407
6419
  /**
6408
- * Width in tiles. If `0`, the map has 'infinite' width, with the actual limitation being one million tiles in each direction from the center.
6420
+ * ) Width in tiles. If `0`, the map has 'infinite' width, with the actual limitation being one million tiles in each direction from the center.
6409
6421
  */
6410
- width: uint32;
6422
+ width?: uint32;
6411
6423
  /**
6412
6424
  * Height in tiles. If `0`, the map has 'infinite' height, with the actual limitation being one million tiles in each direction from the center.
6413
6425
  */
6414
- height: uint32;
6426
+ height?: uint32;
6415
6427
  /**
6416
- * Size of the starting area.
6428
+ * Size of the starting area. Defaults to `1`.
6417
6429
  */
6418
- starting_area: MapGenSize;
6430
+ starting_area?: MapGenSize;
6419
6431
  /**
6420
6432
  * Positions of the starting areas.
6421
6433
  */
6422
- starting_points: MapPosition[];
6434
+ starting_points?: MapPosition[];
6423
6435
  /**
6424
6436
  * Whether enemy creatures will not attack unless the player first attacks them.
6425
6437
  */
6426
- peaceful_mode: boolean;
6438
+ peaceful_mode?: boolean;
6427
6439
  /**
6428
6440
  * Whether enemy creatures will not naturally spawn from spawners, map gen, or trigger effects.
6429
6441
  */
6430
- no_enemies_mode: boolean;
6442
+ no_enemies_mode?: boolean;
6431
6443
  /**
6432
6444
  * Overrides for tile property value generators.
6433
6445
  */
6434
- property_expression_names: PropertyExpressionNames;
6446
+ property_expression_names?: PropertyExpressionNames;
6435
6447
  /**
6436
6448
  * Map generation settings for entities of the type "cliff".
6437
6449
  */
6438
- cliff_settings: CliffPlacementSettings;
6439
- territory_settings: TerritorySettings;
6450
+ cliff_settings?: CliffPlacementSettings;
6451
+ territory_settings?: TerritorySettings;
6440
6452
  }
6441
6453
  /**
6442
6454
  * A floating point number specifying an amount.
@@ -6777,11 +6789,11 @@ interface NthTickEventData {
6777
6789
  /**
6778
6790
  * The tick during which the event happened.
6779
6791
  */
6780
- tick: uint32;
6792
+ tick: MapTick;
6781
6793
  /**
6782
6794
  * The nth tick this handler was registered to.
6783
6795
  */
6784
- nth_tick: uint32;
6796
+ nth_tick: MapTick;
6785
6797
  }
6786
6798
  /**
6787
6799
  * A single offer on a market entity.
@@ -7285,7 +7297,7 @@ type PropertyExpressionNames = Record<string, string>;
7285
7297
  /**
7286
7298
  * Types `"signal"` and `"item-group"` do not support filters.
7287
7299
  *
7288
- * Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.
7300
+ * Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding prototype type, and different types of prototype filters can not be mixed.
7289
7301
  */
7290
7302
  type PrototypeFilter = (ModSettingPrototypeFilter | SpaceLocationPrototypeFilter | DecorativePrototypeFilter | TilePrototypeFilter | AsteroidChunkPrototypeFilter | ItemPrototypeFilter | TechnologyPrototypeFilter | RecipePrototypeFilter | AchievementPrototypeFilter | EquipmentPrototypeFilter | FluidPrototypeFilter | EntityPrototypeFilter)[];
7291
7303
  type PrototypeFilterMode = 'none' | 'whitelist' | 'blacklist';
@@ -8098,8 +8110,32 @@ interface ScriptPosition {
8098
8110
  type ScriptRenderMode = 'game' | 'chart';
8099
8111
  /**
8100
8112
  * When writing it is possible to give LuaEntity or MapPosition directly. However, reading always returns the full ScriptRenderTargetTable.
8113
+ *
8114
+ * The full ScriptRenderTargetTable allows specifying an offset for entity targets.
8115
+ *
8116
+ * If an entity target of an object (except its `orientation_target`) is destroyed or changes surface, then the object is also destroyed.
8117
+ * @example ```
8118
+ target = some_lua_entity
8119
+ ```
8120
+ * @example ```
8121
+ target = {1, 4}
8122
+ ```
8123
+ * @example ```
8124
+ target = {entity = another_lua_entity, offset = {-0.5, 1}}
8125
+ ```
8126
+ * @example ```
8127
+ target = {position = {2.5, 3}}
8128
+ ```
8101
8129
  */
8102
8130
  type ScriptRenderTarget = LuaEntity | MapPosition | ScriptRenderTargetTable;
8131
+ /**
8132
+ * @example ```
8133
+ {entity = some_lua_entity, offset = {-0.5, 1}}
8134
+ ```
8135
+ * @example ```
8136
+ {position = {2.5, 3}}
8137
+ ```
8138
+ */
8103
8139
  interface ScriptRenderTargetTable {
8104
8140
  entity?: LuaEntity;
8105
8141
  /**
@@ -10089,12 +10125,78 @@ interface TransportBeltBlueprintControlBehavior {
10089
10125
  connect_to_logistic_network?: boolean;
10090
10126
  logistic_condition?: CircuitCondition;
10091
10127
  }
10092
- interface TriggerDelivery {
10128
+ interface BaseTriggerDelivery {
10093
10129
  type: 'instant' | 'projectile' | 'beam' | 'stream' | 'artillery' | 'chain' | 'delayed';
10094
10130
  source_effects: TriggerEffectItem[];
10095
10131
  target_effects: TriggerEffectItem[];
10096
10132
  }
10097
- interface TriggerEffectItem {
10133
+ type TriggerDelivery = BaseTriggerDelivery | TriggerDeliveryArtillery | TriggerDeliveryBeam | TriggerDeliveryChain | TriggerDeliveryDelayed | TriggerDeliveryProjectile | TriggerDeliveryStream;
10134
+ /**
10135
+ *
10136
+ * Applies to variant case `artillery`
10137
+ */
10138
+ interface TriggerDeliveryArtillery extends BaseTriggerDelivery {
10139
+ 'type': 'artillery';
10140
+ 'direction_deviation': float;
10141
+ 'projectile': string;
10142
+ 'range_deviation': float;
10143
+ 'starting_speed': float;
10144
+ 'starting_speed_deviation': float;
10145
+ 'trigger_fired_artillery': boolean;
10146
+ }
10147
+ /**
10148
+ *
10149
+ * Applies to variant case `beam`
10150
+ */
10151
+ interface TriggerDeliveryBeam extends BaseTriggerDelivery {
10152
+ 'type': 'beam';
10153
+ 'add_to_shooter': boolean;
10154
+ 'beam': string;
10155
+ 'destroy_with_source_or_target': boolean;
10156
+ 'duration': uint32;
10157
+ 'max_length': uint32;
10158
+ 'source_offset': Vector;
10159
+ }
10160
+ /**
10161
+ *
10162
+ * Applies to variant case `chain`
10163
+ */
10164
+ interface TriggerDeliveryChain extends BaseTriggerDelivery {
10165
+ 'type': 'chain';
10166
+ 'chain': string;
10167
+ }
10168
+ /**
10169
+ *
10170
+ * Applies to variant case `delayed`
10171
+ */
10172
+ interface TriggerDeliveryDelayed extends BaseTriggerDelivery {
10173
+ 'type': 'delayed';
10174
+ 'delayed_trigger': string;
10175
+ }
10176
+ /**
10177
+ *
10178
+ * Applies to variant case `projectile`
10179
+ */
10180
+ interface TriggerDeliveryProjectile extends BaseTriggerDelivery {
10181
+ 'type': 'projectile';
10182
+ 'direction_deviation': float;
10183
+ 'max_range': double;
10184
+ 'min_range': double;
10185
+ 'projectile': string;
10186
+ 'range_deviation': float;
10187
+ 'starting_speed': float;
10188
+ 'starting_speed_deviation': float;
10189
+ }
10190
+ /**
10191
+ *
10192
+ * Applies to variant case `stream`
10193
+ */
10194
+ interface TriggerDeliveryStream extends BaseTriggerDelivery {
10195
+ 'type': 'stream';
10196
+ 'source_offset': Vector;
10197
+ 'stream': string;
10198
+ }
10199
+ interface BaseTriggerEffectItem {
10098
10200
  type: TriggerEffectItemType;
10099
10201
  repeat_count: uint16;
10100
10202
  repeat_count_deviation: uint16;
@@ -10103,6 +10205,328 @@ interface TriggerEffectItem {
10103
10205
  show_in_tooltip: boolean;
10104
10206
  damage_type_filters?: DamageTypeFilters;
10105
10207
  }
10208
+ type TriggerEffectItem = BaseTriggerEffectItem | TriggerEffectItemActivateImpact | TriggerEffectItemCameraEffect | TriggerEffectItemCreateAsteroidChunk | TriggerEffectItemCreateDecorative | TriggerEffectItemCreateEntity | TriggerEffectItemCreateExplosion | TriggerEffectItemCreateFire | TriggerEffectItemCreateParticle | TriggerEffectItemCreateSmoke | TriggerEffectItemCreateSticker | TriggerEffectItemCreateTrivialSmoke | TriggerEffectItemDamage | TriggerEffectItemDamageTile | TriggerEffectItemDestroyCliffs | TriggerEffectItemDestroyDecoratives | TriggerEffectItemInsertItem | TriggerEffectItemInvokeTileTrigger | TriggerEffectItemNestedResult | TriggerEffectItemPlaySound | TriggerEffectItemPushBack | TriggerEffectItemScript | TriggerEffectItemSetTile | TriggerEffectItemShowExplosionOnChart;
10209
+ /**
10210
+ *
10211
+ * Applies to variant case `activate-impact`
10212
+ */
10213
+ interface TriggerEffectItemActivateImpact extends BaseTriggerEffectItem {
10214
+ 'type': 'activate-impact';
10215
+ 'deliver_category': string;
10216
+ }
10217
+ /**
10218
+ *
10219
+ * Applies to variant case `camera-effect`
10220
+ */
10221
+ interface TriggerEffectItemCameraEffect extends BaseTriggerEffectItem {
10222
+ 'type': 'camera-effect';
10223
+ 'delay': uint8;
10224
+ 'duration': uint8;
10225
+ 'ease_in_duration': uint8;
10226
+ 'ease_out_duration': uint8;
10227
+ 'full_strength_max_distance': uint16;
10228
+ 'max_distance': uint16;
10229
+ 'strength': float;
10230
+ }
10231
+ /**
10232
+ *
10233
+ * Applies to variant case `create-asteroid-chunk`
10234
+ */
10235
+ interface TriggerEffectItemCreateAsteroidChunk extends BaseTriggerEffectItem {
10236
+ 'type': 'create-asteroid-chunk';
10237
+ 'asteroid_name': string;
10238
+ 'offset_deviation': BoundingBox;
10239
+ 'offsets': Vector[];
10240
+ }
10241
+ /**
10242
+ *
10243
+ * Applies to variant case `create-decorative`
10244
+ */
10245
+ interface TriggerEffectItemCreateDecorative extends BaseTriggerEffectItem {
10246
+ 'type': 'create-decorative';
10247
+ 'apply_projection': boolean;
10248
+ 'decorative': string;
10249
+ 'radius_curve': float;
10250
+ 'spawn_max': uint16;
10251
+ 'spawn_max_radius': float;
10252
+ 'spawn_min': uint16;
10253
+ 'spawn_min_radius': float;
10254
+ 'spread_evenly': boolean;
10255
+ }
10256
+ /**
10257
+ *
10258
+ * Applies to variant case `create-entity`
10259
+ */
10260
+ interface TriggerEffectItemCreateEntity extends BaseTriggerEffectItem {
10261
+ 'type': 'create-entity';
10262
+ 'abort_if_over_space': boolean;
10263
+ 'as_enemy': boolean;
10264
+ 'check_buildability': boolean;
10265
+ 'entity_name': string;
10266
+ 'find_non_colliding_position': boolean;
10267
+ 'ignore_no_enemies_mode': boolean;
10268
+ 'non_colliding_fail_result'?: TriggerItem[];
10269
+ 'non_colliding_search_precision': double;
10270
+ 'non_colliding_search_radius': double;
10271
+ 'offset_deviation': BoundingBox;
10272
+ 'offsets': Vector[];
10273
+ 'only_when_visible': boolean;
10274
+ 'protected': boolean;
10275
+ 'tile_collision_mask': CollisionMask;
10276
+ 'trigger_created_entity': boolean;
10277
+ }
10278
+ /**
10279
+ *
10280
+ * Applies to variant case `create-explosion`
10281
+ */
10282
+ interface TriggerEffectItemCreateExplosion extends BaseTriggerEffectItem {
10283
+ 'type': 'create-explosion';
10284
+ 'abort_if_over_space': boolean;
10285
+ 'as_enemy': boolean;
10286
+ 'check_buildability': boolean;
10287
+ 'cycle_while_moving': boolean;
10288
+ 'entity_name': string;
10289
+ 'find_non_colliding_position': boolean;
10290
+ 'ignore_no_enemies_mode': boolean;
10291
+ 'inherit_movement_distance_from_projectile': boolean;
10292
+ 'max_movement_distance': float;
10293
+ 'max_movement_distance_deviation': float;
10294
+ 'non_colliding_fail_result'?: TriggerItem[];
10295
+ 'non_colliding_search_precision': double;
10296
+ 'non_colliding_search_radius': double;
10297
+ 'offset_deviation': BoundingBox;
10298
+ 'offsets': Vector[];
10299
+ 'only_when_visible': boolean;
10300
+ 'protected': boolean;
10301
+ 'tile_collision_mask': CollisionMask;
10302
+ 'trigger_created_entity': boolean;
10303
+ }
10304
+ /**
10305
+ *
10306
+ * Applies to variant case `create-fire`
10307
+ */
10308
+ interface TriggerEffectItemCreateFire extends BaseTriggerEffectItem {
10309
+ 'type': 'create-fire';
10310
+ 'abort_if_over_space': boolean;
10311
+ 'as_enemy': boolean;
10312
+ 'check_buildability': boolean;
10313
+ 'entity_name': string;
10314
+ 'find_non_colliding_position': boolean;
10315
+ 'ignore_no_enemies_mode': boolean;
10316
+ 'initial_ground_flame_count'?: uint8;
10317
+ 'non_colliding_fail_result'?: TriggerItem[];
10318
+ 'non_colliding_search_precision': double;
10319
+ 'non_colliding_search_radius': double;
10320
+ 'offset_deviation': BoundingBox;
10321
+ 'offsets': Vector[];
10322
+ 'only_when_visible': boolean;
10323
+ 'protected': boolean;
10324
+ 'tile_collision_mask': CollisionMask;
10325
+ 'trigger_created_entity': boolean;
10326
+ }
10327
+ /**
10328
+ *
10329
+ * Applies to variant case `create-particle`
10330
+ */
10331
+ interface TriggerEffectItemCreateParticle extends BaseTriggerEffectItem {
10332
+ 'type': 'create-particle';
10333
+ 'apply_tile_tint'?: ApplyTileTint;
10334
+ 'frame_speed': float;
10335
+ 'frame_speed_deviation': float;
10336
+ 'initial_height': float;
10337
+ 'initial_height_deviation': float;
10338
+ 'initial_vertical_speed': float;
10339
+ 'initial_vertical_speed_deviation': float;
10340
+ 'movement_multiplier': float;
10341
+ 'offset_deviation': BoundingBox;
10342
+ 'offsets': Vector[];
10343
+ 'only_when_visible': boolean;
10344
+ 'particle_name': string;
10345
+ 'rotate_offsets': boolean;
10346
+ 'speed_from_center': float;
10347
+ 'speed_from_center_deviation': float;
10348
+ 'tail_length'?: uint8;
10349
+ 'tail_length_deviation'?: uint8;
10350
+ 'tail_width'?: float;
10351
+ 'tile_collision_mask': CollisionMask;
10352
+ 'tint'?: Color;
10353
+ }
10354
+ /**
10355
+ *
10356
+ * Applies to variant case `create-smoke`
10357
+ */
10358
+ interface TriggerEffectItemCreateSmoke extends BaseTriggerEffectItem {
10359
+ 'type': 'create-smoke';
10360
+ 'abort_if_over_space': boolean;
10361
+ 'as_enemy': boolean;
10362
+ 'check_buildability': boolean;
10363
+ 'entity_name': string;
10364
+ 'find_non_colliding_position': boolean;
10365
+ 'ignore_no_enemies_mode': boolean;
10366
+ 'initial_height': float;
10367
+ 'non_colliding_fail_result'?: TriggerItem[];
10368
+ 'non_colliding_search_precision': double;
10369
+ 'non_colliding_search_radius': double;
10370
+ 'offset_deviation': BoundingBox;
10371
+ 'offsets': Vector[];
10372
+ 'only_when_visible': boolean;
10373
+ 'protected': boolean;
10374
+ 'speed': Vector;
10375
+ 'speed_from_center': float;
10376
+ 'speed_from_center_deviation': float;
10377
+ 'speed_multiplier': float;
10378
+ 'speed_multiplier_deviation': float;
10379
+ 'starting_frame': float;
10380
+ 'starting_frame_deviation': float;
10381
+ 'tile_collision_mask': CollisionMask;
10382
+ 'trigger_created_entity': boolean;
10383
+ }
10384
+ /**
10385
+ *
10386
+ * Applies to variant case `create-sticker`
10387
+ */
10388
+ interface TriggerEffectItemCreateSticker extends BaseTriggerEffectItem {
10389
+ 'type': 'create-sticker';
10390
+ 'sticker': string;
10391
+ 'trigger_created_entity': boolean;
10392
+ }
10393
+ /**
10394
+ *
10395
+ * Applies to variant case `create-trivial-smoke`
10396
+ */
10397
+ interface TriggerEffectItemCreateTrivialSmoke extends BaseTriggerEffectItem {
10398
+ 'type': 'create-trivial-smoke';
10399
+ 'initial_height': float;
10400
+ 'max_radius'?: float;
10401
+ 'offset_deviation': BoundingBox;
10402
+ 'offsets': Vector[];
10403
+ 'smoke_name': string;
10404
+ 'speed': Vector;
10405
+ 'speed_from_center': float;
10406
+ 'speed_from_center_deviation': float;
10407
+ 'speed_multiplier': float;
10408
+ 'speed_multiplier_deviation': float;
10409
+ 'starting_frame': float;
10410
+ 'starting_frame_deviation': float;
10411
+ }
10412
+ /**
10413
+ *
10414
+ * Applies to variant case `damage`
10415
+ */
10416
+ interface TriggerEffectItemDamage extends BaseTriggerEffectItem {
10417
+ 'type': 'damage';
10418
+ 'apply_damage_to_trees': boolean;
10419
+ 'damage': DamageParameters;
10420
+ 'lower_damage_modifier': float;
10421
+ 'lower_distance_threshold': uint16;
10422
+ 'upper_damage_modifier': float;
10423
+ 'upper_distance_threshold': uint16;
10424
+ 'use_substitute': boolean;
10425
+ 'vaporize': boolean;
10426
+ }
10427
+ /**
10428
+ *
10429
+ * Applies to variant case `damage-tile`
10430
+ */
10431
+ interface TriggerEffectItemDamageTile extends BaseTriggerEffectItem {
10432
+ 'type': 'damage-tile';
10433
+ 'damage': DamageParameters;
10434
+ 'radius': float;
10435
+ }
10436
+ /**
10437
+ *
10438
+ * Applies to variant case `destroy-cliffs`
10439
+ */
10440
+ interface TriggerEffectItemDestroyCliffs extends BaseTriggerEffectItem {
10441
+ 'type': 'destroy-cliffs';
10442
+ 'radius': float;
10443
+ }
10444
+ /**
10445
+ *
10446
+ * Applies to variant case `destroy-decoratives`
10447
+ */
10448
+ interface TriggerEffectItemDestroyDecoratives extends BaseTriggerEffectItem {
10449
+ 'type': 'destroy-decoratives';
10450
+ 'decoratives_with_trigger_only': boolean;
10451
+ 'from_render_layer': RenderLayer;
10452
+ 'include_decals': boolean;
10453
+ 'include_soft_decoratives': boolean;
10454
+ 'invoke_decorative_trigger': boolean;
10455
+ 'radius': float;
10456
+ 'to_render_layer': RenderLayer;
10457
+ }
10458
+ /**
10459
+ *
10460
+ * Applies to variant case `insert-item`
10461
+ */
10462
+ interface TriggerEffectItemInsertItem extends BaseTriggerEffectItem {
10463
+ 'type': 'insert-item';
10464
+ 'count': ItemCountType;
10465
+ 'item': string;
10466
+ 'quality': string;
10467
+ }
10468
+ /**
10469
+ *
10470
+ * Applies to variant case `invoke-tile-trigger`
10471
+ */
10472
+ interface TriggerEffectItemInvokeTileTrigger extends BaseTriggerEffectItem {
10473
+ 'type': 'invoke-tile-trigger';
10474
+ 'tile_collision_mask': CollisionMask;
10475
+ }
10476
+ /**
10477
+ *
10478
+ * Applies to variant case `nested-result`
10479
+ */
10480
+ interface TriggerEffectItemNestedResult extends BaseTriggerEffectItem {
10481
+ 'type': 'nested-result';
10482
+ 'action': TriggerItem[];
10483
+ }
10484
+ /**
10485
+ *
10486
+ * Applies to variant case `play-sound`
10487
+ */
10488
+ interface TriggerEffectItemPlaySound extends BaseTriggerEffectItem {
10489
+ 'type': 'play-sound';
10490
+ 'max_distance': float;
10491
+ 'min_distance': float;
10492
+ 'play_on_target_position': boolean;
10493
+ }
10494
+ /**
10495
+ *
10496
+ * Applies to variant case `push-back`
10497
+ */
10498
+ interface TriggerEffectItemPushBack extends BaseTriggerEffectItem {
10499
+ 'type': 'push-back';
10500
+ 'distance': float;
10501
+ }
10502
+ /**
10503
+ *
10504
+ * Applies to variant case `script`
10505
+ */
10506
+ interface TriggerEffectItemScript extends BaseTriggerEffectItem {
10507
+ 'type': 'script';
10508
+ 'effect_id': string;
10509
+ }
10510
+ /**
10511
+ *
10512
+ * Applies to variant case `set-tile`
10513
+ */
10514
+ interface TriggerEffectItemSetTile extends BaseTriggerEffectItem {
10515
+ 'type': 'set-tile';
10516
+ 'apply_on_space_platform': boolean;
10517
+ 'apply_projection': boolean;
10518
+ 'radius': float;
10519
+ 'tile_collision_mask': CollisionMask;
10520
+ 'tile_name': string;
10521
+ }
10522
+ /**
10523
+ *
10524
+ * Applies to variant case `show-explosion-on-chart`
10525
+ */
10526
+ interface TriggerEffectItemShowExplosionOnChart extends BaseTriggerEffectItem {
10527
+ 'type': 'show-explosion-on-chart';
10528
+ 'scale': float;
10529
+ }
10106
10530
  /**
10107
10531
  * Used by {@link TriggerEffectItem | runtime:TriggerEffectItem}.
10108
10532
  */
@@ -10126,7 +10550,7 @@ interface TriggerEffectWithCooldown {
10126
10550
  initial_time_cooldown: MapTick;
10127
10551
  effect: TriggerEffectItem[];
10128
10552
  }
10129
- interface TriggerItem {
10553
+ interface BaseTriggerItem {
10130
10554
  type: 'direct' | 'area' | 'line' | 'cluster';
10131
10555
  action_delivery?: TriggerDelivery[];
10132
10556
  /**
@@ -10146,6 +10570,48 @@ interface TriggerItem {
10146
10570
  repeat_count: uint32;
10147
10571
  probability: float;
10148
10572
  }
10573
+ type TriggerItem = BaseTriggerItem | TriggerItemArea | TriggerItemCluster | TriggerItemDirect | TriggerItemLine;
10574
+ /**
10575
+ *
10576
+ * Applies to variant case `area`
10577
+ */
10578
+ interface TriggerItemArea extends BaseTriggerItem {
10579
+ 'type': 'area';
10580
+ 'collision_mode': 'distance-from-collision-box' | 'distance-from-center';
10581
+ 'radius': double;
10582
+ 'show_in_tooltip': boolean;
10583
+ 'target_enemies': boolean;
10584
+ 'target_entities': boolean;
10585
+ 'trigger_from_target': boolean;
10586
+ }
10587
+ /**
10588
+ *
10589
+ * Applies to variant case `cluster`
10590
+ */
10591
+ interface TriggerItemCluster extends BaseTriggerItem {
10592
+ 'type': 'cluster';
10593
+ 'cluster_count': uint32;
10594
+ 'distance': float;
10595
+ 'distance_deviation': float;
10596
+ }
10597
+ /**
10598
+ *
10599
+ * Applies to variant case `direct`
10600
+ */
10601
+ interface TriggerItemDirect extends BaseTriggerItem {
10602
+ 'type': 'direct';
10603
+ 'filter_enabled': boolean;
10604
+ }
10605
+ /**
10606
+ *
10607
+ * Applies to variant case `line`
10608
+ */
10609
+ interface TriggerItemLine extends BaseTriggerItem {
10610
+ 'type': 'line';
10611
+ 'range': double;
10612
+ 'range_effects': TriggerEffectItem[];
10613
+ 'width': double;
10614
+ }
10149
10615
  interface TriggerModifierData {
10150
10616
  damage_modifier?: float;
10151
10617
  damage_addition?: float;