factorio-types 1.2.67 → 1.2.68

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.
package/dist/classes.d.ts CHANGED
@@ -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.1.17
5
+ // Factorio version 2.1.19
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -12635,6 +12635,10 @@ interface LuaGuiElement {
12635
12635
  * The tooltip shown on the right switch label.
12636
12636
  */
12637
12637
  right_label_tooltip: LocalisedString;
12638
+ /**
12639
+ * The number to be shown on the right side of this sprite-button, directly above the regular {@link LuaGuiElement::number | runtime:LuaGuiElement::number}, or `nil` to show nothing.
12640
+ */
12641
+ secondary_number?: double;
12638
12642
  /**
12639
12643
  * Whether the contents of this text-box are selectable. Defaults to `true`.
12640
12644
  */
@@ -12648,7 +12652,7 @@ interface LuaGuiElement {
12648
12652
  */
12649
12653
  selected_tab_index?: uint32;
12650
12654
  /**
12651
- * Related to the number to be shown in the bottom right corner of this sprite-button. When set to `true`, numbers that are non-zero and smaller than one are shown as a percentage rather than the value. For example, `0.5` will be shown as `50%` instead.
12655
+ * Related to the numbers to be shown in the bottom right corner of this sprite-button. When set to `true`, numbers that are non-zero and smaller than one are shown as a percentage rather than the value. For example, `0.5` will be shown as `50%` instead.
12652
12656
  */
12653
12657
  show_percent_for_small_numbers: boolean;
12654
12658
  /**
@@ -13201,6 +13205,10 @@ interface LuaGuiElementAddParamsSpriteButton extends BaseLuaGuiElementAddParams
13201
13205
  * The name of the quality shown on the button.
13202
13206
  */
13203
13207
  'quality'?: string;
13208
+ /**
13209
+ * The secondary number shown on the button, above the regular number.
13210
+ */
13211
+ 'secondary_number'?: double;
13204
13212
  /**
13205
13213
  * Formats small numbers as percentages. Defaults to `false`.
13206
13214
  */
@@ -13975,7 +13983,7 @@ interface LuaItemCommon {
13975
13983
  /**
13976
13984
  * Gets the tags for the given blueprint entity index in this blueprint item.
13977
13985
  */
13978
- get_blueprint_entity_tags(this: void, index: uint32): Tags;
13986
+ get_blueprint_entity_tags(this: void, index: uint32): Tags | null;
13979
13987
  /**
13980
13988
  * A list of the tiles in this blueprint.
13981
13989
  */
@@ -14514,6 +14522,7 @@ interface LuaItemPrototype extends LuaPrototypeBase {
14514
14522
  */
14515
14523
  readonly provides_flight?: boolean;
14516
14524
  readonly quality_affects_inventory_size?: boolean;
14525
+ readonly quality_affects_spoil_ticks: boolean;
14517
14526
  readonly quality_quality_multiplier?: float;
14518
14527
  readonly radius_color?: Color;
14519
14528
  /**
@@ -14533,6 +14542,7 @@ interface LuaItemPrototype extends LuaPrototypeBase {
14533
14542
  * The results of launching this item in a rocket.
14534
14543
  */
14535
14544
  readonly rocket_launch_products: Product[];
14545
+ readonly science_capacity: double;
14536
14546
  /**
14537
14547
  * How this item interacts when being sent to orbit.
14538
14548
  */
@@ -17084,7 +17094,7 @@ interface LuaQualityPrototype extends LuaPrototypeBase {
17084
17094
  /**
17085
17095
  * The next higher level of the quality
17086
17096
  */
17087
- readonly next: LuaQualityPrototype;
17097
+ readonly next?: LuaQualityPrototype;
17088
17098
  /**
17089
17099
  * The probability multiplier of getting the next level of quality.
17090
17100
  */
@@ -17093,7 +17103,7 @@ interface LuaQualityPrototype extends LuaPrototypeBase {
17093
17103
  * The class name of this object. Available even when `valid` is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
17094
17104
  */
17095
17105
  readonly object_name: string;
17096
- readonly previous: LuaQualityPrototype;
17106
+ readonly previous?: LuaQualityPrototype;
17097
17107
  /**
17098
17108
  * Probability of additional quality decrease happening after quality was decreased to reach this quality in the same crafting/mining operation.
17099
17109
  */
@@ -17104,6 +17114,7 @@ interface LuaQualityPrototype extends LuaPrototypeBase {
17104
17114
  readonly previous_probability: double;
17105
17115
  readonly range_multiplier: double;
17106
17116
  readonly rolling_stock_max_speed_multiplier: double;
17117
+ readonly science_capacity_multiplier: double;
17107
17118
  readonly science_pack_drain_multiplier: float;
17108
17119
  readonly spoil_ticks_multiplier: float;
17109
17120
  readonly tool_durability_multiplier: double;
@@ -17717,7 +17728,7 @@ interface LuaRecord {
17717
17728
  /**
17718
17729
  * Gets the tags for the given blueprint entity index in this blueprint.
17719
17730
  */
17720
- get_blueprint_entity_tags(this: void, index: uint32): Tags;
17731
+ get_blueprint_entity_tags(this: void, index: uint32): Tags | null;
17721
17732
  /**
17722
17733
  * A list of the tiles in this blueprint.
17723
17734
  */
@@ -18131,6 +18142,10 @@ interface LuaRenderObject {
18131
18142
  * Surface this object is rendered on.
18132
18143
  */
18133
18144
  readonly surface: LuaSurface;
18145
+ /**
18146
+ * If this render object will be translucent when "Hide tall entities" mode is active.
18147
+ */
18148
+ tall: boolean;
18134
18149
  /**
18135
18150
  * Where this object is drawn.
18136
18151
  *
@@ -18220,6 +18235,7 @@ interface LuaRendering {
18220
18235
  * @param table.players The players that this object is rendered to. Passing `nil` or an empty table will render it to all players.
18221
18236
  * @param table.visible If this is rendered to anyone at all. Defaults to true.
18222
18237
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18238
+ * @param table.tall Defaults to false.
18223
18239
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18224
18240
  * @param table.light_mode Whether this object should be rendered as a sprite, light or both at once. Defaults to "occluder".
18225
18241
  */
@@ -18243,6 +18259,7 @@ interface LuaRendering {
18243
18259
  players?: PlayerIdentification[];
18244
18260
  visible?: boolean;
18245
18261
  only_in_alt_mode?: boolean;
18262
+ tall?: boolean;
18246
18263
  render_mode?: ScriptRenderMode;
18247
18264
  light_mode?: ScriptSpriteLightMode;
18248
18265
  }): LuaRenderObject;
@@ -18259,6 +18276,7 @@ interface LuaRendering {
18259
18276
  * @param table.visible If this is rendered to anyone at all. Defaults to true.
18260
18277
  * @param table.draw_on_ground If this should be drawn below sprites and entities. Defaults to false.
18261
18278
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18279
+ * @param table.tall Defaults to false.
18262
18280
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18263
18281
  */
18264
18282
  draw_arc(this: void, table: {
@@ -18276,6 +18294,7 @@ interface LuaRendering {
18276
18294
  visible?: boolean;
18277
18295
  draw_on_ground?: boolean;
18278
18296
  only_in_alt_mode?: boolean;
18297
+ tall?: boolean;
18279
18298
  render_mode?: ScriptRenderMode;
18280
18299
  }): LuaRenderObject;
18281
18300
  /**
@@ -18290,6 +18309,7 @@ interface LuaRendering {
18290
18309
  * @param table.visible If this is rendered to anyone at all. Defaults to true.
18291
18310
  * @param table.draw_on_ground If this should be drawn below sprites and entities. Defaults to false.
18292
18311
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18312
+ * @param table.tall Defaults to false.
18293
18313
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18294
18314
  */
18295
18315
  draw_circle(this: void, table: {
@@ -18306,6 +18326,7 @@ interface LuaRendering {
18306
18326
  visible?: boolean;
18307
18327
  draw_on_ground?: boolean;
18308
18328
  only_in_alt_mode?: boolean;
18329
+ tall?: boolean;
18309
18330
  render_mode?: ScriptRenderMode;
18310
18331
  }): LuaRenderObject;
18311
18332
  /**
@@ -18325,6 +18346,7 @@ interface LuaRendering {
18325
18346
  * @param table.players The players that this object is rendered to. Passing `nil` or an empty table will render it to all players.
18326
18347
  * @param table.visible If this is rendered to anyone at all. Defaults to true.
18327
18348
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18349
+ * @param table.tall Defaults to false.
18328
18350
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18329
18351
  */
18330
18352
  draw_light(this: void, table: {
@@ -18343,6 +18365,7 @@ interface LuaRendering {
18343
18365
  players?: PlayerIdentification[];
18344
18366
  visible?: boolean;
18345
18367
  only_in_alt_mode?: boolean;
18368
+ tall?: boolean;
18346
18369
  render_mode?: ScriptRenderMode;
18347
18370
  }): LuaRenderObject;
18348
18371
  /**
@@ -18358,6 +18381,7 @@ interface LuaRendering {
18358
18381
  * @param table.visible If this is rendered to anyone at all. Defaults to true.
18359
18382
  * @param table.draw_on_ground If this should be drawn below sprites and entities. Defaults to false.
18360
18383
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18384
+ * @param table.tall Defaults to false.
18361
18385
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18362
18386
  * @example ```
18363
18387
  -- Draw a white and 2 pixel wide line from {0, 0} to {2, 2}.
@@ -18384,6 +18408,7 @@ interface LuaRendering {
18384
18408
  visible?: boolean;
18385
18409
  draw_on_ground?: boolean;
18386
18410
  only_in_alt_mode?: boolean;
18411
+ tall?: boolean;
18387
18412
  render_mode?: ScriptRenderMode;
18388
18413
  }): LuaRenderObject;
18389
18414
  /**
@@ -18399,6 +18424,7 @@ interface LuaRendering {
18399
18424
  * @param table.visible If this is rendered to anyone at all. Defaults to true.
18400
18425
  * @param table.draw_on_ground If this should be drawn below sprites and entities. Defaults to false.
18401
18426
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18427
+ * @param table.tall Defaults to false.
18402
18428
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18403
18429
  */
18404
18430
  draw_polygon(this: void, table: {
@@ -18416,6 +18442,7 @@ interface LuaRendering {
18416
18442
  visible?: boolean;
18417
18443
  draw_on_ground?: boolean;
18418
18444
  only_in_alt_mode?: boolean;
18445
+ tall?: boolean;
18419
18446
  render_mode?: ScriptRenderMode;
18420
18447
  }): LuaRenderObject;
18421
18448
  /**
@@ -18429,6 +18456,7 @@ interface LuaRendering {
18429
18456
  * @param table.visible If this is rendered to anyone at all. Defaults to true.
18430
18457
  * @param table.draw_on_ground If this should be drawn below sprites and entities. Defaults to false.
18431
18458
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18459
+ * @param table.tall Defaults to false.
18432
18460
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18433
18461
  * @example ```
18434
18462
  -- Draw a white and 1 pixel wide square outline with the corners {0, 0} and {2, 2}.
@@ -18449,6 +18477,7 @@ interface LuaRendering {
18449
18477
  visible?: boolean;
18450
18478
  draw_on_ground?: boolean;
18451
18479
  only_in_alt_mode?: boolean;
18480
+ tall?: boolean;
18452
18481
  render_mode?: ScriptRenderMode;
18453
18482
  }): LuaRenderObject;
18454
18483
  /**
@@ -18467,6 +18496,7 @@ interface LuaRendering {
18467
18496
  * @param table.players The players that this object is rendered to. Passing `nil` or an empty table will render it to all players.
18468
18497
  * @param table.visible If this is rendered to anyone at all. Defaults to true.
18469
18498
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18499
+ * @param table.tall Defaults to false.
18470
18500
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18471
18501
  * @param table.light_mode Whether this object should be rendered as a sprite, light or both at once. Defaults to "occluder".
18472
18502
  * @example ```
@@ -18496,6 +18526,7 @@ interface LuaRendering {
18496
18526
  players?: PlayerIdentification[];
18497
18527
  visible?: boolean;
18498
18528
  only_in_alt_mode?: boolean;
18529
+ tall?: boolean;
18499
18530
  render_mode?: ScriptRenderMode;
18500
18531
  light_mode?: ScriptSpriteLightMode;
18501
18532
  }): LuaRenderObject;
@@ -18516,6 +18547,7 @@ interface LuaRendering {
18516
18547
  * @param table.vertical_alignment Defaults to "top".
18517
18548
  * @param table.scale_with_zoom Defaults to false. If true, the text scales with player zoom, resulting in it always being the same size on screen, and the size compared to the game world changes.
18518
18549
  * @param table.only_in_alt_mode If this should only be rendered in alt mode. Defaults to false.
18550
+ * @param table.tall Defaults to false.
18519
18551
  * @param table.render_mode Mode which this object should render in. Defaults to "game".
18520
18552
  * @param table.use_rich_text If rich text rendering is enabled. Defaults to false.
18521
18553
  */
@@ -18537,6 +18569,7 @@ interface LuaRendering {
18537
18569
  vertical_alignment?: VerticalTextAlign;
18538
18570
  scale_with_zoom?: boolean;
18539
18571
  only_in_alt_mode?: boolean;
18572
+ tall?: boolean;
18540
18573
  render_mode?: ScriptRenderMode;
18541
18574
  use_rich_text?: boolean;
18542
18575
  }): LuaRenderObject;
@@ -22867,6 +22900,16 @@ interface LuaTransportLine {
22867
22900
  * @param item If not specified, count all items.
22868
22901
  */
22869
22902
  get_item_count(this: void, item?: ItemFilter): uint32;
22903
+ /**
22904
+ * Gives position of the selected item on this transport line.
22905
+ * @param index Index of the item. Allowed values are from 1 up to #len.
22906
+ * @returns [0] - Linear position of the item along the transport line
22907
+ * @returns [1] - Map position of the item
22908
+ */
22909
+ get_item_position(this: void, index: uint32): LuaMultiReturn<[
22910
+ float,
22911
+ MapPosition
22912
+ ]>;
22870
22913
  /**
22871
22914
  * Get a map position related to a position on a transport line.
22872
22915
  * @param position Linear position along the transport line. Clamped to the transport line range.
@@ -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.1.17
5
+ // Factorio version 2.1.19
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -1188,6 +1188,22 @@ interface BlueprintEntityWall extends BaseBlueprintEntity {
1188
1188
  interface BlueprintEquipment {
1189
1189
  equipment: EquipmentWithQualityID;
1190
1190
  position: EquipmentPosition;
1191
+ /**
1192
+ * Only used for equipment of type `"electric-energy-interface-equipment"`.
1193
+ */
1194
+ power_production?: double;
1195
+ /**
1196
+ * Only used for equipment of type `"electric-energy-interface-equipment"`.
1197
+ */
1198
+ power_usage?: double;
1199
+ /**
1200
+ * Only used for equipment of type `"electric-energy-interface-equipment"`.
1201
+ */
1202
+ buffer_size?: double;
1203
+ /**
1204
+ * Only used for equipment of type `"generator-equipment"` that has a burner energy source.
1205
+ */
1206
+ burner_fuel_inventory?: BlueprintInventoryWithFilters;
1191
1207
  }
1192
1208
  interface BlueprintInfinityInventorySettings {
1193
1209
  filters?: InfinityInventoryFilter[];
@@ -7378,48 +7394,6 @@ interface OldTileAndPosition {
7378
7394
  old_tile: LuaTilePrototype;
7379
7395
  position: TilePosition;
7380
7396
  }
7381
- interface OnRecipeCraftedData {
7382
- /**
7383
- * Identifier of the event.
7384
- */
7385
- name: defines.events;
7386
- /**
7387
- * Tick the event was generated.
7388
- */
7389
- tick: MapTick;
7390
- /**
7391
- * Entity that crafted recipe.
7392
- */
7393
- entity: LuaEntity;
7394
- /**
7395
- * Name of recipe that was crafted.
7396
- */
7397
- recipe: string;
7398
- /**
7399
- * Quality of the recipe crafted.
7400
- */
7401
- recipe_quality: string;
7402
- /**
7403
- * Quality effect used when giving products. Not provided if value is 0. May be different than value obtained from {@link LuaEntity::effects | runtime:LuaEntity::effects} when quality modules were changed between craft starting and products being given.
7404
- */
7405
- quality_effect?: EffectValue;
7406
- /**
7407
- * Random value in range [0, 1) that was used when selecting product quality. Only provided when quality_effect is provided.
7408
- */
7409
- quality_seed?: double;
7410
- /**
7411
- * Quality of products given. May be different than recipe quality if quality modules are present. Always provided even if quality_effect is zero because {@link LuaEntity::result_quality | runtime:LuaEntity::result_quality} may have been used. Only used by products without quality control.
7412
- */
7413
- product_quality: string;
7414
- /**
7415
- * If crafted as part of bonus products.
7416
- */
7417
- bonus: boolean;
7418
- /**
7419
- * Random value in range {@link 0, 1) used as part of shared roll when giving products. Related to [ProductPrototypeBase::shared_probability | prototype:ProductPrototypeBase::shared_probability}.
7420
- */
7421
- shared_roll: double;
7422
- }
7423
7397
  interface OrientedCliffPrototypeSet {
7424
7398
  west_to_east: BoundingBox;
7425
7399
  north_to_south: BoundingBox;
@@ -7868,10 +7842,6 @@ interface PollutionMapSettings {
7868
7842
  * Defaults to `10`.
7869
7843
  */
7870
7844
  pollution_restored_per_tree_damage: double;
7871
- /**
7872
- * Defaults to `20`.
7873
- */
7874
- max_pollution_to_restore_trees: double;
7875
7845
  /**
7876
7846
  * Defaults to `1`.
7877
7847
  */
@@ -11918,7 +11888,25 @@ interface UndoRedoActionWireRemoved extends BaseUndoRedoAction {
11918
11888
  interface UndoRedoEquipment {
11919
11889
  id: EquipmentWithQualityID;
11920
11890
  position: EquipmentPosition;
11921
- settings: PropertyTree;
11891
+ settings: UndoRedoEquipmentSettings;
11892
+ }
11893
+ interface UndoRedoEquipmentSettings {
11894
+ /**
11895
+ * Only used for equipment of type `"electric-energy-interface-equipment"`.
11896
+ */
11897
+ power_production?: double;
11898
+ /**
11899
+ * Only used for equipment of type `"electric-energy-interface-equipment"`.
11900
+ */
11901
+ power_usage?: double;
11902
+ /**
11903
+ * Only used for equipment of type `"electric-energy-interface-equipment"`.
11904
+ */
11905
+ buffer_size?: double;
11906
+ /**
11907
+ * Only used for equipment of type `"generator-equipment"` that has a burner energy source.
11908
+ */
11909
+ burner_fuel_inventory?: BlueprintInventoryWithFilters;
11922
11910
  }
11923
11911
  interface UnitAISettings {
11924
11912
  /**
@@ -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/prototype-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.1.17
5
+ // Factorio version 2.1.19
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
package/dist/defines.d.ts CHANGED
@@ -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.1.17
5
+ // Factorio version 2.1.19
6
6
  // API version 6
7
7
 
8
8
  declare namespace defines {
@@ -1161,162 +1161,163 @@ enum input_action {
1161
1161
  move_pin = 137,
1162
1162
  move_research = 138,
1163
1163
  open_achievements_gui = 139,
1164
- open_blueprint_library_gui = 140,
1165
- open_blueprint_record = 141,
1166
- open_bonus_gui = 142,
1167
- open_character_gui = 143,
1168
- open_current_vehicle_gui = 144,
1169
- open_equipment = 145,
1170
- open_global_electric_network_gui = 146,
1171
- open_gui = 147,
1172
- open_item = 148,
1173
- open_logistics_gui = 149,
1174
- open_mod_item = 150,
1175
- open_new_platform_button_from_rocket_silo = 151,
1176
- open_opened_entity_grid = 152,
1177
- open_parent_of_opened_item = 153,
1178
- open_production_gui = 154,
1179
- open_train_gui = 155,
1180
- open_train_station_gui = 156,
1181
- open_trains_gui = 157,
1182
- parametrise_blueprint = 158,
1183
- paste_entity_settings = 159,
1184
- pin_alert_group = 160,
1185
- pin_custom_alert = 161,
1186
- pin_search_result = 162,
1187
- pipette = 163,
1188
- place_equipment = 164,
1189
- providing_to_other_platforms = 165,
1190
- quick_bar_pick_slot = 166,
1191
- quick_bar_set_selected_page = 167,
1192
- quick_bar_set_slot = 168,
1193
- reassign_blueprint = 169,
1194
- redo = 170,
1195
- remote_view_entity = 171,
1196
- remote_view_surface = 172,
1197
- remove_cables = 173,
1198
- remove_decider_combinator_condition = 174,
1199
- remove_decider_combinator_else_output = 175,
1200
- remove_decider_combinator_output = 176,
1201
- remove_logistic_section = 177,
1202
- remove_pin = 178,
1203
- remove_train_interrupt = 179,
1204
- remove_train_station = 180,
1205
- rename_interrupt = 181,
1206
- rename_space_platform = 182,
1207
- reorder_logistic_section = 183,
1208
- request_missing_construction_materials = 184,
1209
- reset_assembling_machine = 185,
1210
- reverse_select_area = 186,
1211
- rotate_entity = 187,
1212
- select_area = 188,
1213
- select_asteroid_chunk_slot = 189,
1214
- select_blueprint_entities = 190,
1215
- select_entity_filter_slot = 191,
1216
- select_entity_slot = 192,
1217
- select_item_filter = 193,
1218
- select_mapper_slot_from = 194,
1219
- select_mapper_slot_to = 195,
1220
- select_next_valid_gun = 196,
1221
- select_tile_slot = 197,
1222
- send_spidertron = 198,
1223
- send_stack_to_trash = 199,
1224
- send_stacks_to_trash = 200,
1225
- send_train_to_pin_target = 201,
1226
- set_behavior_mode = 202,
1227
- set_car_weapons_control = 203,
1228
- set_cheat_mode_quality = 204,
1229
- set_circuit_condition = 205,
1230
- set_circuit_mode_of_operation = 206,
1231
- set_combinator_description = 207,
1232
- set_control_behavior_input_networks = 208,
1233
- set_control_behavior_output_networks = 209,
1234
- set_copy_color_from_train_stop = 210,
1235
- set_deconstruction_item_tile_selection_mode = 211,
1236
- set_deconstruction_item_trees_and_rocks_only = 212,
1237
- set_entity_color = 213,
1238
- set_entity_energy_property = 214,
1239
- set_equipment_energy_property = 215,
1240
- set_filter = 216,
1241
- set_ghost_cursor = 217,
1242
- set_heat_interface_mode = 218,
1243
- set_heat_interface_temperature = 219,
1244
- set_infinity_container_filter_item = 220,
1245
- set_infinity_container_logistic_mode = 221,
1246
- set_infinity_container_remove_unfiltered_items = 222,
1247
- set_infinity_pipe_filter = 223,
1248
- set_inserter_max_stack_size = 224,
1249
- set_inventory_bar = 225,
1250
- set_lamp_always_on = 226,
1251
- set_linked_container_link_i_d = 227,
1252
- set_loader_belt_stack_size_override = 228,
1253
- set_logistic_filter_item = 229,
1254
- set_logistic_network_name = 230,
1255
- set_logistic_section_active = 231,
1256
- set_player_color = 232,
1257
- set_pump_fluid_filter = 233,
1258
- set_request_from_buffers = 234,
1259
- set_research_finished_stops_game = 235,
1260
- set_rocket_silo_send_to_orbit_automated_mode = 236,
1261
- set_schedule_record_allow_unloading = 237,
1262
- set_signal = 238,
1263
- set_splitter_priority = 239,
1264
- set_spoil_priority = 240,
1265
- set_train_stop_priority = 241,
1266
- set_train_stopped = 242,
1267
- set_trains_limit = 243,
1268
- set_turret_ignore_unlisted = 244,
1269
- set_use_inserter_filters = 245,
1270
- set_vehicle_automatic_targeting_parameters = 246,
1271
- setup_assembling_machine = 247,
1272
- setup_blueprint = 248,
1273
- setup_single_blueprint_record = 249,
1274
- spawn_item = 250,
1275
- spectator_change_surface = 251,
1276
- stack_split = 252,
1277
- stack_transfer = 253,
1278
- start_repair = 254,
1279
- start_research = 255,
1280
- start_walking = 256,
1281
- stop_drag_build = 257,
1282
- super_forced_select_area = 258,
1283
- swap_asteroid_chunk_slots = 259,
1284
- swap_entity_filter_slots = 260,
1285
- swap_entity_slots = 261,
1286
- swap_infinity_container_filter_items = 262,
1287
- swap_item_filters = 263,
1288
- swap_logistic_filter_items = 264,
1289
- swap_mappers = 265,
1290
- swap_tile_slots = 266,
1291
- switch_connect_to_logistic_network = 267,
1292
- switch_constant_combinator_state = 268,
1293
- switch_inserter_filter_mode_state = 269,
1294
- switch_loader_filter_mode = 270,
1295
- switch_mining_drill_filter_mode_state = 271,
1296
- switch_power_switch_state = 272,
1297
- take_equipment = 273,
1298
- toggle_artillery_auto_targeting = 274,
1299
- toggle_blueprint_snap_to_grid = 275,
1300
- toggle_deconstruction_item_entity_filter_mode = 276,
1301
- toggle_deconstruction_item_tile_filter_mode = 277,
1302
- toggle_driving = 278,
1303
- toggle_enable_vehicle_logistics_while_moving = 279,
1304
- toggle_entity_logistic_requests = 280,
1305
- toggle_equipment_movement_bonus = 281,
1306
- toggle_map_editor = 282,
1307
- toggle_personal_logistic_requests = 283,
1308
- toggle_personal_roboport = 284,
1309
- toggle_selected_entity = 285,
1310
- toggle_show_entity_info = 286,
1311
- toggle_tall_entity_visibility = 287,
1312
- trash_not_requested_items = 288,
1313
- undo = 289,
1314
- upgrade = 290,
1315
- upgrade_opened_blueprint_by_item = 291,
1316
- upgrade_opened_blueprint_by_record = 292,
1317
- use_item = 293,
1318
- wire_dragging = 294,
1319
- write_to_console = 295
1164
+ open_alerts_config_gui = 140,
1165
+ open_blueprint_library_gui = 141,
1166
+ open_blueprint_record = 142,
1167
+ open_bonus_gui = 143,
1168
+ open_character_gui = 144,
1169
+ open_current_vehicle_gui = 145,
1170
+ open_equipment = 146,
1171
+ open_global_electric_network_gui = 147,
1172
+ open_gui = 148,
1173
+ open_item = 149,
1174
+ open_logistics_gui = 150,
1175
+ open_mod_item = 151,
1176
+ open_new_platform_button_from_rocket_silo = 152,
1177
+ open_opened_entity_grid = 153,
1178
+ open_parent_of_opened_item = 154,
1179
+ open_production_gui = 155,
1180
+ open_train_gui = 156,
1181
+ open_train_station_gui = 157,
1182
+ open_trains_gui = 158,
1183
+ parametrise_blueprint = 159,
1184
+ paste_entity_settings = 160,
1185
+ pin_alert_group = 161,
1186
+ pin_custom_alert = 162,
1187
+ pin_search_result = 163,
1188
+ pipette = 164,
1189
+ place_equipment = 165,
1190
+ providing_to_other_platforms = 166,
1191
+ quick_bar_pick_slot = 167,
1192
+ quick_bar_set_selected_page = 168,
1193
+ quick_bar_set_slot = 169,
1194
+ reassign_blueprint = 170,
1195
+ redo = 171,
1196
+ remote_view_entity = 172,
1197
+ remote_view_surface = 173,
1198
+ remove_cables = 174,
1199
+ remove_decider_combinator_condition = 175,
1200
+ remove_decider_combinator_else_output = 176,
1201
+ remove_decider_combinator_output = 177,
1202
+ remove_logistic_section = 178,
1203
+ remove_pin = 179,
1204
+ remove_train_interrupt = 180,
1205
+ remove_train_station = 181,
1206
+ rename_interrupt = 182,
1207
+ rename_space_platform = 183,
1208
+ reorder_logistic_section = 184,
1209
+ request_missing_construction_materials = 185,
1210
+ reset_assembling_machine = 186,
1211
+ reverse_select_area = 187,
1212
+ rotate_entity = 188,
1213
+ select_area = 189,
1214
+ select_asteroid_chunk_slot = 190,
1215
+ select_blueprint_entities = 191,
1216
+ select_entity_filter_slot = 192,
1217
+ select_entity_slot = 193,
1218
+ select_item_filter = 194,
1219
+ select_mapper_slot_from = 195,
1220
+ select_mapper_slot_to = 196,
1221
+ select_next_valid_gun = 197,
1222
+ select_tile_slot = 198,
1223
+ send_spidertron = 199,
1224
+ send_stack_to_trash = 200,
1225
+ send_stacks_to_trash = 201,
1226
+ send_train_to_pin_target = 202,
1227
+ set_behavior_mode = 203,
1228
+ set_car_weapons_control = 204,
1229
+ set_cheat_mode_quality = 205,
1230
+ set_circuit_condition = 206,
1231
+ set_circuit_mode_of_operation = 207,
1232
+ set_combinator_description = 208,
1233
+ set_control_behavior_input_networks = 209,
1234
+ set_control_behavior_output_networks = 210,
1235
+ set_copy_color_from_train_stop = 211,
1236
+ set_deconstruction_item_tile_selection_mode = 212,
1237
+ set_deconstruction_item_trees_and_rocks_only = 213,
1238
+ set_entity_color = 214,
1239
+ set_entity_energy_property = 215,
1240
+ set_equipment_energy_property = 216,
1241
+ set_filter = 217,
1242
+ set_ghost_cursor = 218,
1243
+ set_heat_interface_mode = 219,
1244
+ set_heat_interface_temperature = 220,
1245
+ set_infinity_container_filter_item = 221,
1246
+ set_infinity_container_logistic_mode = 222,
1247
+ set_infinity_container_remove_unfiltered_items = 223,
1248
+ set_infinity_pipe_filter = 224,
1249
+ set_inserter_max_stack_size = 225,
1250
+ set_inventory_bar = 226,
1251
+ set_lamp_always_on = 227,
1252
+ set_linked_container_link_i_d = 228,
1253
+ set_loader_belt_stack_size_override = 229,
1254
+ set_logistic_filter_item = 230,
1255
+ set_logistic_network_name = 231,
1256
+ set_logistic_section_active = 232,
1257
+ set_player_color = 233,
1258
+ set_pump_fluid_filter = 234,
1259
+ set_request_from_buffers = 235,
1260
+ set_research_finished_stops_game = 236,
1261
+ set_rocket_silo_send_to_orbit_automated_mode = 237,
1262
+ set_schedule_record_allow_unloading = 238,
1263
+ set_signal = 239,
1264
+ set_splitter_priority = 240,
1265
+ set_spoil_priority = 241,
1266
+ set_train_stop_priority = 242,
1267
+ set_train_stopped = 243,
1268
+ set_trains_limit = 244,
1269
+ set_turret_ignore_unlisted = 245,
1270
+ set_use_inserter_filters = 246,
1271
+ set_vehicle_automatic_targeting_parameters = 247,
1272
+ setup_assembling_machine = 248,
1273
+ setup_blueprint = 249,
1274
+ setup_single_blueprint_record = 250,
1275
+ spawn_item = 251,
1276
+ spectator_change_surface = 252,
1277
+ stack_split = 253,
1278
+ stack_transfer = 254,
1279
+ start_repair = 255,
1280
+ start_research = 256,
1281
+ start_walking = 257,
1282
+ stop_drag_build = 258,
1283
+ super_forced_select_area = 259,
1284
+ swap_asteroid_chunk_slots = 260,
1285
+ swap_entity_filter_slots = 261,
1286
+ swap_entity_slots = 262,
1287
+ swap_infinity_container_filter_items = 263,
1288
+ swap_item_filters = 264,
1289
+ swap_logistic_filter_items = 265,
1290
+ swap_mappers = 266,
1291
+ swap_tile_slots = 267,
1292
+ switch_connect_to_logistic_network = 268,
1293
+ switch_constant_combinator_state = 269,
1294
+ switch_inserter_filter_mode_state = 270,
1295
+ switch_loader_filter_mode = 271,
1296
+ switch_mining_drill_filter_mode_state = 272,
1297
+ switch_power_switch_state = 273,
1298
+ take_equipment = 274,
1299
+ toggle_artillery_auto_targeting = 275,
1300
+ toggle_blueprint_snap_to_grid = 276,
1301
+ toggle_deconstruction_item_entity_filter_mode = 277,
1302
+ toggle_deconstruction_item_tile_filter_mode = 278,
1303
+ toggle_driving = 279,
1304
+ toggle_enable_vehicle_logistics_while_moving = 280,
1305
+ toggle_entity_logistic_requests = 281,
1306
+ toggle_equipment_movement_bonus = 282,
1307
+ toggle_map_editor = 283,
1308
+ toggle_personal_logistic_requests = 284,
1309
+ toggle_personal_roboport = 285,
1310
+ toggle_selected_entity = 286,
1311
+ toggle_show_entity_info = 287,
1312
+ toggle_tall_entity_visibility = 288,
1313
+ trash_not_requested_items = 289,
1314
+ undo = 290,
1315
+ upgrade = 291,
1316
+ upgrade_opened_blueprint_by_item = 292,
1317
+ upgrade_opened_blueprint_by_record = 293,
1318
+ use_item = 294,
1319
+ wire_dragging = 295,
1320
+ write_to_console = 296
1320
1321
  }
1321
1322
  enum input_method {
1322
1323
  game_controller = 1,
package/dist/events.d.ts CHANGED
@@ -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.1.17
5
+ // Factorio version 2.1.19
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -57,6 +57,51 @@ interface CustomInputEvent {
57
57
  */
58
58
  tick: MapTick;
59
59
  }
60
+ /**
61
+ * Called when a recipe with {@link RecipePrototype::raise_on_crafted | prototype:RecipePrototype::raise_on_crafted} is crafted.
62
+ */
63
+ interface RecipeCraftedEvent {
64
+ /**
65
+ * If crafted as part of bonus products.
66
+ */
67
+ bonus: boolean;
68
+ /**
69
+ * Entity that crafted recipe.
70
+ */
71
+ entity: LuaEntity;
72
+ /**
73
+ * Identifier of the event.
74
+ */
75
+ name: defines.events;
76
+ /**
77
+ * Quality of products given. May be different than recipe quality if quality modules are present. Always provided even if quality_effect is zero because {@link LuaEntity::result_quality | runtime:LuaEntity::result_quality} may have been used. Only used by products without quality control.
78
+ */
79
+ product_quality: string;
80
+ /**
81
+ * Quality effect used when giving products. Not provided if value is 0. May be different than value obtained from {@link LuaEntity::effects | runtime:LuaEntity::effects} when quality modules were changed between craft starting and products being given.
82
+ */
83
+ quality_effect?: EffectValue;
84
+ /**
85
+ * Random value in range [0, 1) that was used when selecting product quality. Only provided when quality_effect is provided.
86
+ */
87
+ quality_seed?: double;
88
+ /**
89
+ * Name of recipe that was crafted.
90
+ */
91
+ recipe: string;
92
+ /**
93
+ * Quality of the recipe crafted.
94
+ */
95
+ recipe_quality: string;
96
+ /**
97
+ * Random value in range {@link 0, 1) used as part of shared roll when giving products. Related to [ProductPrototypeBase::shared_probability | prototype:ProductPrototypeBase::shared_probability}.
98
+ */
99
+ shared_roll: double;
100
+ /**
101
+ * Tick the event was generated.
102
+ */
103
+ tick: MapTick;
104
+ }
60
105
  /**
61
106
  * Called when an achievement is gained.
62
107
  */
package/dist/global.d.ts CHANGED
@@ -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.1.17
5
+ // Factorio version 2.1.19
6
6
  // API version 6
7
7
 
8
8
  /**
@@ -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/prototype-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.1.17
5
+ // Factorio version 2.1.19
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -955,7 +955,7 @@ interface AssemblingMachinePrototype extends CraftingMachinePrototype {
955
955
  fixed_recipe?: RecipeID;
956
956
  fluid_boxes_off_when_no_fluid_recipe?: boolean;
957
957
  /**
958
- * The locale key of the title of the GUI that is shown when the player opens the assembling machine. May not be longer than 200 characters.
958
+ * The locale key of the title of the recipe selection GUI that is shown when the player opens the assembling machine. May not be longer than 200 characters.
959
959
  */
960
960
  gui_title_key?: string;
961
961
  /**
@@ -5156,11 +5156,23 @@ interface ItemPrototype extends Prototype {
5156
5156
  */
5157
5157
  place_result?: EntityID;
5158
5158
  plant_result?: EntityID;
5159
+ /**
5160
+ * Only loaded if `spoil_ticks` is larger than 0.
5161
+ *
5162
+ * If set, {@link QualityPrototype::spoil_ticks_multiplier | prototype:QualityPrototype::spoil_ticks_multiplier} will be applied to spoil_tick value.
5163
+ */
5164
+ quality_affects_spoil_ticks?: boolean;
5159
5165
  /**
5160
5166
  * Randomly tints item instances on belts and in the world. 0 no tinting. 1 full tint.
5161
5167
  */
5162
5168
  random_tint_color?: Color;
5163
5169
  rocket_launch_products?: ItemProductPrototype[];
5170
+ /**
5171
+ * Used by labs. Not relevant for {@link tools | prototype:ToolPrototype} where {@link durability | prototype:ToolPrototype::durability} is used.
5172
+ *
5173
+ * Must be >= 0.01.
5174
+ */
5175
+ science_capacity?: double;
5164
5176
  /**
5165
5177
  * The way this item works when we try to send it to the orbit on its own.
5166
5178
  *
@@ -5178,19 +5190,31 @@ interface ItemPrototype extends Prototype {
5178
5190
  */
5179
5191
  spoil_level?: uint8;
5180
5192
  /**
5193
+ * Only loaded if `spoil_ticks` is larger than 0.
5194
+ *
5181
5195
  * Defines how many levels the item's quality will go up (positive integer) or down (negative integer) when spoiling.
5182
5196
  */
5183
5197
  spoil_quality_change?: int8;
5184
5198
  /**
5199
+ * Only loaded if `spoil_ticks` is larger than 0.
5200
+ *
5185
5201
  * The maximum quality level that can be reached when {@link spoil_quality_change | prototype:ItemPrototype::spoil_quality_change} is used.
5186
5202
  */
5187
5203
  spoil_quality_max?: QualityID;
5188
5204
  /**
5205
+ * Only loaded if `spoil_ticks` is larger than 0.
5206
+ *
5189
5207
  * The minimum quality level that can be reached when {@link spoil_quality_change | prototype:ItemPrototype::spoil_quality_change} is used.
5190
5208
  */
5191
5209
  spoil_quality_min?: QualityID;
5210
+ /**
5211
+ * Only loaded if `spoil_ticks` is larger than 0.
5212
+ */
5192
5213
  spoil_result?: ItemID;
5193
5214
  spoil_ticks?: uint32;
5215
+ /**
5216
+ * Only loaded if `spoil_ticks` is larger than 0.
5217
+ */
5194
5218
  spoil_to_trigger_result?: SpoilToTriggerResult;
5195
5219
  /**
5196
5220
  * Count of items of the same name that can be stored in one inventory slot. Must be 1 when the `"not-stackable"` flag is set.
@@ -7177,6 +7201,14 @@ interface QualityPrototype extends Prototype {
7177
7201
  * Must be >= 0.01.
7178
7202
  */
7179
7203
  rolling_stock_max_speed_multiplier?: double;
7204
+ /**
7205
+ * Must be >= 0.01.
7206
+ *
7207
+ * Affects how much research will lab be able to do using item of that quality.
7208
+ *
7209
+ * Only used for items that are not a {@link tool | prototype:ToolPrototype}.
7210
+ */
7211
+ science_capacity_multiplier?: double;
7180
7212
  /**
7181
7213
  * Must be in range `[0, 1]`.
7182
7214
  *
@@ -7185,12 +7217,14 @@ interface QualityPrototype extends Prototype {
7185
7217
  science_pack_drain_multiplier?: float;
7186
7218
  /**
7187
7219
  * Must be >= 0.01.
7220
+ *
7221
+ * Only affects items with {@link ItemPrototype::quality_affects_spoil_ticks | prototype:ItemPrototype::quality_affects_spoil_ticks} set.
7188
7222
  */
7189
7223
  spoil_ticks_multiplier?: float;
7190
7224
  /**
7191
7225
  * Must be >= 0.01.
7192
7226
  *
7193
- * Affects the durability of {@link tool items | prototype:ToolPrototype} like science packs, repair tools and armor.
7227
+ * Affects the durability of {@link tool items | prototype:ToolPrototype} like repair tools and armor.
7194
7228
  */
7195
7229
  tool_durability_multiplier?: double;
7196
7230
  }
@@ -7508,7 +7542,7 @@ interface ReactorPrototype extends EntityWithOwnerPrototype {
7508
7542
  working_light_picture?: Animation;
7509
7543
  }
7510
7544
  /**
7511
- * A recipe category. The built-in categories can be found {@link here | https://wiki.factorio.com/Data.raw#recipe-category}. See {@link RecipePrototype::category | prototype:RecipePrototype::category}. Recipe categories can be used to specify which {@link machine | prototype:CraftingMachinePrototype::crafting_categories} can craft which {@link recipes | prototype:RecipePrototype}.
7545
+ * A recipe category. The built-in categories can be found {@link here | https://wiki.factorio.com/Data.raw#recipe-category}. See {@link RecipePrototype::categories | prototype:RecipePrototype::categories}. Recipe categories can be used to specify which {@link machine | prototype:CraftingMachinePrototype::crafting_categories} can craft which {@link recipes | prototype:RecipePrototype}.
7512
7546
  *
7513
7547
  * The recipe category with the name "crafting" cannot contain recipes with fluid ingredients or products.
7514
7548
  * @example ```
@@ -7720,7 +7754,7 @@ interface RecipePrototype extends Prototype {
7720
7754
  /**
7721
7755
  * If set to true, an event with identifier of {@link LuaRecipePrototype::on_crafted_event | runtime:LuaRecipePrototype::on_crafted_event} will be raised when this recipe is crafted. Currently this is only raised when recipe is crafted by a crafting machine.
7722
7756
  *
7723
- * Event raised will be given data as described by {@link OnRecipeCraftedData | runtime:OnRecipeCraftedData}.
7757
+ * Event raised will be given data as described by {@link RecipeCraftedEvent | runtime:RecipeCraftedEvent}.
7724
7758
  * @example ```
7725
7759
  -- in data stage:
7726
7760
  data.raw.recipe["iron-plate"].raise_on_crafted = true
@@ -10454,7 +10488,7 @@ interface TransportBeltPrototype extends TransportBeltConnectablePrototype {
10454
10488
  */
10455
10489
  interface TreePrototype extends EntityWithHealthPrototype {
10456
10490
  /**
10457
- * Mandatory if `variations` is defined.
10491
+ * Mandatory if `variations` is defined. Can't be empty.
10458
10492
  */
10459
10493
  colors?: Color[];
10460
10494
  darkness_of_burnt_tree?: float;
@@ -12111,6 +12145,7 @@ interface UtilitySprites extends PrototypeBase {
12111
12145
  show_worker_robots_in_map_view: Sprite;
12112
12146
  shuffle: Sprite;
12113
12147
  side_menu_achievements_icon: Sprite;
12148
+ side_menu_alerts_config_icon: Sprite;
12114
12149
  side_menu_blueprint_library_icon: Sprite;
12115
12150
  side_menu_bonus_icon: Sprite;
12116
12151
  side_menu_factoriopedia_icon: Sprite;
package/dist/types.d.ts CHANGED
@@ -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/prototype-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.1.17
5
+ // Factorio version 2.1.19
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -3948,23 +3948,23 @@ interface EditorUtilityConstants {
3948
3948
  */
3949
3949
  interface Effect {
3950
3950
  /**
3951
- * Multiplier to energy used during operation (not idle/drain use). The minimum possible sum is -80%.
3951
+ * Multiplier to energy used during operation (not idle/drain use). The minimum possible sum defaults to -80% and can be changed through {@link EffectReceiver::consumption_limits | prototype:EffectReceiver::consumption_limits} on the machine.
3952
3952
  */
3953
3953
  consumption?: EffectValue;
3954
3954
  /**
3955
- * Multiplier to the pollution factor of an entity's pollution during use. The minimum possible sum is -80%.
3955
+ * Multiplier to the pollution factor of an entity's pollution during use. The minimum possible sum defaults to -80% and can be changed through {@link EffectReceiver::pollution_limits | prototype:EffectReceiver::pollution_limits} on the machine.
3956
3956
  */
3957
3957
  pollution?: EffectValue;
3958
3958
  /**
3959
- * Multiplied against work completed, adds to the bonus results of operating. E.g. an extra crafted recipe or immediate research bonus. The minimum possible sum is 0%.
3959
+ * Multiplied against work completed, adds to the bonus results of operating. E.g. an extra crafted recipe or immediate research bonus. The minimum possible sum defaults to -80% and can be changed through {@link EffectReceiver::productivity_limits | prototype:EffectReceiver::productivity_limits} on the machine.
3960
3960
  */
3961
3961
  productivity?: EffectValue;
3962
3962
  /**
3963
- * Adds a bonus chance to increase a product's quality. The minimum possible sum is 0%.
3963
+ * Adds a bonus chance to increase a product's quality. The minimum possible sum defaults to 0% and can be changed through {@link EffectReceiver::quality_limits | prototype:EffectReceiver::quality_limits} on the machine. If negative values are allowed on the effect receiver, the product's quality can be {@link decreased | prototype:QualityPrototype::previous_probability}.
3964
3964
  */
3965
3965
  quality?: EffectValue;
3966
3966
  /**
3967
- * Modifier to crafting speed, research speed, etc. The minimum possible sum is -80%.
3967
+ * Modifier to crafting speed, research speed, etc. The minimum possible sum defaults to -80% and can be changed through {@link EffectReceiver::speed_limits | prototype:EffectReceiver::speed_limits} on the machine.
3968
3968
  */
3969
3969
  speed?: EffectValue;
3970
3970
  }
@@ -8280,7 +8280,6 @@ interface PollutionSettings {
8280
8280
  * Anything bigger than this is visualized as this value.
8281
8281
  */
8282
8282
  expected_max_per_chunk: double;
8283
- max_pollution_to_restore_trees: double;
8284
8283
  min_pollution_to_damage_trees: double;
8285
8284
  /**
8286
8285
  * This much pollution units must be on the chunk to start diffusing.
@@ -14043,23 +14042,49 @@ interface WaterReflectionDefinition {
14043
14042
  rotate?: boolean;
14044
14043
  }
14045
14044
  interface WaterTileEffectParameters {
14045
+ /**
14046
+ * Affects animation scale for `"water"` `shader_variation`. Affects warp effect intensity for `"lava"` `shader_variation`. Affects depth contrast for `"wetland-water"` `shader_variation`. Affects thin film effect intensity for `"oil"` `shader_variation`.
14047
+ */
14046
14048
  animation_scale: float | [
14047
14049
  float,
14048
14050
  float
14049
14051
  ];
14052
+ /**
14053
+ * Affects distortion speed for `"water"` `shader_variation`. Affects panning/warping speed for all other `shader_variation`s.
14054
+ */
14050
14055
  animation_speed: float;
14056
+ /**
14057
+ * Affects dark threshold for `"water"` `shader_variation`. Affects brightness of the shoreline lava for `"lava"` `shader_variation`. Affects water depth for `"wetland-water"` `shader_variation`. Affects thin film effect noise scale for `"oil"` `shader_variation`.
14058
+ */
14051
14059
  dark_threshold: float | [
14052
14060
  float,
14053
14061
  float
14054
14062
  ];
14063
+ /**
14064
+ * If they are set to a tuple, the properties `animation_scale`, `dark_threshold`, `reflection_threshold` and `specular_threshold` are linearly interpolated between each of their two values based on the current zoom level expressed as a ratio between `near_zoom` and `far_zoom`. E.g. if current zoom level is equal to `far_zoom`, the second tuple value is picked.
14065
+ */
14055
14066
  far_zoom?: float;
14067
+ /**
14068
+ * Affects foam color for `"water"` `shader_variation`. Affects panning/warping vector for all other `shader_variation`s.
14069
+ *
14070
+ * Any alpha value set here is ignored and will always be `1` in the shader.
14071
+ */
14056
14072
  foam_color: Color;
14073
+ /**
14074
+ * Multiplies the rgb values of `foam_color` before they are passed to the shader.
14075
+ */
14057
14076
  foam_color_multiplier: float;
14058
14077
  /**
14059
14078
  * Value 0 makes water appear as water in water mask, but does not occlude lights, and doesn't overwrite lightmap alpha drawn to pixel previously (by background layer of tile transition, or underwater sprite). Light emitted by water-like-tile (for example lava) will blend additively with previously rendered light. Value 1 makes water occlude lights, but won't be recognized as water in water mask used for masking decals by water.
14060
14079
  */
14061
14080
  lightmap_alpha?: float;
14081
+ /**
14082
+ * If they are set to a tuple, the properties `animation_scale`, `dark_threshold`, `reflection_threshold` and `specular_threshold` are linearly interpolated between each of their two values based on the current zoom level expressed as a ratio between `near_zoom` and `far_zoom`. E.g. if current zoom level is equal to `near_zoom`, the first tuple value is picked.
14083
+ */
14062
14084
  near_zoom?: float;
14085
+ /**
14086
+ * Affects reflection threshold for `"water"` `shader_variation`. Affects distortion scale for `"lava"` `shader_variation`. Affects distortion tiling for `"wetland-water"` `shader_variation`. Affects distortion map scale for `"oil"` `shader_variation`.
14087
+ */
14063
14088
  reflection_threshold: float | [
14064
14089
  float,
14065
14090
  float
@@ -14067,7 +14092,15 @@ interface WaterTileEffectParameters {
14067
14092
  secondary_texture_variations_columns?: uint8;
14068
14093
  secondary_texture_variations_rows?: uint8;
14069
14094
  shader_variation?: EffectVariation;
14095
+ /**
14096
+ * Affects specular lightness for `"water"` `shader_variation`. Affects panning/warping vector for all other `shader_variation`s.
14097
+ *
14098
+ * Any alpha value set here is ignored and will always be `1` in the shader.
14099
+ */
14070
14100
  specular_lightness: Color;
14101
+ /**
14102
+ * Affects specular threshold for `"water"` and `"wetland-water"` `shader_variation`s. Affects shoreline lava for `"lava"` `shader_variation`. Affects nothing for `"oil"` `shader_variation`.
14103
+ */
14071
14104
  specular_threshold: float | [
14072
14105
  float,
14073
14106
  float
@@ -14078,6 +14111,9 @@ interface WaterTileEffectParameters {
14078
14111
  * Texture size must be 512x512. Shader variant `"water"` must have 1 texture, `"lava"` and `"wetland-water"` must have 2 textures and `"oil"` must have 4 textures.
14079
14112
  */
14080
14113
  textures: EffectTexture[];
14114
+ /**
14115
+ * Affects distortion speed for `"water"` `shader_variation`. Affects panning/warping speed for all other `shader_variation`s.
14116
+ */
14081
14117
  tick_scale: float;
14082
14118
  }
14083
14119
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.67",
3
+ "version": "1.2.68",
4
4
  "description": "Typescript declarations for the Factorio mod API",
5
5
  "main": "index.d.ts",
6
6
  "repository": "https://github.com/sguest/factorio-types.git",
@@ -23,7 +23,7 @@
23
23
  "src/**/*.d.ts",
24
24
  "dist/**/*.d.ts"
25
25
  ],
26
- "factorioVersion": "2.1.17",
26
+ "factorioVersion": "2.1.19",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },
package/src/core.d.ts CHANGED
@@ -79,7 +79,3 @@ type bool = boolean;
79
79
  * ```
80
80
  */
81
81
  type DataExtendMethod = (data: prototype.Data, ...otherData: any[]) => void;
82
-
83
- // used by UndoRedoEquipment but not declared anywhere
84
- // Can be removed if/when this is resolved https://forums.factorio.com/viewtopic.php?t=135506
85
- type PropertyTree = any;