factorio-types 1.2.31 → 1.2.32

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.0.44
5
+ // Factorio version 2.0.45
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -4962,9 +4962,9 @@ interface LuaControl {
4962
4962
  */
4963
4963
  mine_tile(this: void, tile: LuaTile): boolean;
4964
4964
  /**
4965
- * Open the Factoriopedia GUI and select a given entry.
4965
+ * Open the Factoriopedia GUI and select a given entry, if any valid ID is given.
4966
4966
  */
4967
- open_factoriopedia_gui(this: void, prototype?: LuaPrototypeBase): void;
4967
+ open_factoriopedia_gui(this: void, prototype?: FactoriopediaID): void;
4968
4968
  /**
4969
4969
  * Open the technology GUI and select a given technology.
4970
4970
  * @param technology The technology to select after opening the GUI.
@@ -7867,6 +7867,7 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
7867
7867
  * The flags for this entity prototype.
7868
7868
  */
7869
7869
  readonly flags: EntityPrototypeFlags;
7870
+ readonly flow_scaling?: boolean;
7870
7871
  /**
7871
7872
  * The fluid capacity of this entity or 0 if this entity doesn't support fluids.
7872
7873
  *
@@ -8437,6 +8438,10 @@ interface LuaEntityPrototype extends LuaPrototypeBase {
8437
8438
  * Whether this logistic container prototype uses exact mode
8438
8439
  */
8439
8440
  readonly use_exact_mode?: boolean;
8441
+ /**
8442
+ * If this drill uses force productivity bonus
8443
+ */
8444
+ readonly uses_force_mining_productivity_bonus?: bool;
8440
8445
  /**
8441
8446
  * Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be `false`. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
8442
8447
  */
@@ -14997,7 +15002,7 @@ interface LuaRecipePrototype extends LuaPrototypeBase {
14997
15002
  */
14998
15003
  readonly allowed_module_categories?: Record<string, true>;
14999
15004
  /**
15000
- * Alternative technologies that can unlocked this recipe.
15005
+ * Additional technologies listed under "Unlocked by" on a recipe's Factoriopedia page.
15001
15006
  */
15002
15007
  readonly alternative_unlock_methods?: LuaTechnologyPrototype[];
15003
15008
  /**
@@ -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.44
5
+ // Factorio version 2.0.45
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -1852,6 +1852,10 @@ interface EventData {
1852
1852
  * 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.
1853
1853
  */
1854
1854
  type EventFilter = (LuaScriptRaisedTeleportedEventFilter | LuaPreRobotMinedEntityEventFilter | LuaScriptRaisedBuiltEventFilter | LuaPlatformMinedEntityEventFilter | LuaRobotBuiltEntityEventFilter | LuaPrePlayerMinedEntityEventFilter | LuaEntityDeconstructionCancelledEventFilter | LuaPreGhostUpgradedEventFilter | LuaPlatformBuiltEntityEventFilter | LuaPrePlatformMinedEntityEventFilter | LuaEntityClonedEventFilter | LuaPlayerRepairedEntityEventFilter | LuaPostEntityDiedEventFilter | LuaPreGhostDeconstructedEventFilter | LuaPlayerMinedEntityEventFilter | LuaSectorScannedEventFilter | LuaRobotMinedEntityEventFilter | LuaEntityMarkedForDeconstructionEventFilter | LuaScriptRaisedReviveEventFilter | LuaPlayerBuiltEntityEventFilter | LuaUpgradeCancelledEventFilter | LuaEntityDamagedEventFilter | LuaEntityDiedEventFilter | LuaEntityMarkedForUpgradeEventFilter | LuaScriptRaisedDestroyEventFilter)[];
1855
+ type FactoriopediaID = LuaItemPrototype | LuaFluidPrototype | LuaRecipePrototype | LuaEntityPrototype | LuaTilePrototype | LuaSpaceLocationPrototype | /**
1856
+ * Does not actually have an entry in Factoriopedia.
1857
+ */
1858
+ LuaTechnologyPrototype | LuaAmmoCategoryPrototype | LuaSpaceConnectionPrototype | LuaAsteroidChunkPrototype | LuaVirtualSignalPrototype | LuaSurfacePrototype;
1855
1859
  /**
1856
1860
  * Identifies a statistics prototype, depending on the statistics type.
1857
1861
  */
@@ -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.0.44
5
+ // Factorio version 2.0.45
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.0.44
5
+ // Factorio version 2.0.45
6
6
  // API version 6
7
7
 
8
8
  declare namespace defines {
@@ -982,244 +982,245 @@ enum input_action {
982
982
  change_programmable_speaker_alert_parameters = 36,
983
983
  change_programmable_speaker_circuit_parameters = 37,
984
984
  change_programmable_speaker_parameters = 38,
985
- change_riding_state = 39,
986
- change_selector_combinator_parameters = 40,
987
- change_shooting_state = 41,
988
- change_train_name = 42,
989
- change_train_stop_station = 43,
990
- change_train_wait_condition = 44,
991
- change_train_wait_condition_data = 45,
992
- clear_cursor = 46,
993
- connect_rolling_stock = 47,
994
- copy = 48,
995
- copy_entity_settings = 49,
996
- copy_large_opened_blueprint = 50,
997
- copy_large_opened_item = 51,
998
- copy_opened_blueprint = 52,
999
- copy_opened_item = 53,
1000
- craft = 54,
1001
- create_space_platform = 55,
1002
- cursor_split = 56,
1003
- cursor_transfer = 57,
1004
- custom_input = 58,
1005
- cycle_blueprint_book_backwards = 59,
1006
- cycle_blueprint_book_forwards = 60,
1007
- cycle_quality_down = 61,
1008
- cycle_quality_up = 62,
1009
- deconstruct = 63,
1010
- delete_blueprint_library = 64,
1011
- delete_blueprint_record = 65,
1012
- delete_custom_tag = 66,
1013
- delete_logistic_group = 67,
1014
- delete_permission_group = 68,
1015
- delete_space_platform = 69,
1016
- destroy_item = 70,
1017
- destroy_opened_item = 71,
1018
- disconnect_rolling_stock = 72,
1019
- drag_decider_combinator_condition = 73,
1020
- drag_decider_combinator_output = 74,
1021
- drag_train_schedule = 75,
1022
- drag_train_schedule_interrupt = 76,
1023
- drag_train_wait_condition = 77,
1024
- drop_blueprint_record = 78,
1025
- drop_item = 79,
1026
- edit_blueprint_tool_preview = 80,
1027
- edit_custom_tag = 81,
1028
- edit_display_panel = 82,
1029
- edit_display_panel_always_show = 83,
1030
- edit_display_panel_icon = 84,
1031
- edit_display_panel_parameters = 85,
1032
- edit_display_panel_show_in_chart = 86,
1033
- edit_interrupt = 87,
1034
- edit_permission_group = 88,
1035
- edit_pin = 89,
1036
- enable_transitional_requests = 90,
1037
- export_blueprint = 91,
1038
- fast_entity_split = 92,
1039
- fast_entity_transfer = 93,
1040
- flip_entity = 94,
1041
- flush_opened_entity_fluid = 95,
1042
- flush_opened_entity_specific_fluid = 96,
1043
- go_to_train_station = 97,
1044
- grab_blueprint_record = 98,
1045
- gui_checked_state_changed = 99,
1046
- gui_click = 100,
1047
- gui_confirmed = 101,
1048
- gui_elem_changed = 102,
1049
- gui_hover = 103,
1050
- gui_leave = 104,
1051
- gui_location_changed = 105,
1052
- gui_selected_tab_changed = 106,
1053
- gui_selection_state_changed = 107,
1054
- gui_switch_state_changed = 108,
1055
- gui_text_changed = 109,
1056
- gui_value_changed = 110,
1057
- import_blueprint = 111,
1058
- import_blueprint_string = 112,
1059
- import_blueprints_filtered = 113,
1060
- import_permissions_string = 114,
1061
- instantly_create_space_platform = 115,
1062
- inventory_split = 116,
1063
- inventory_transfer = 117,
1064
- land_at_planet = 118,
1065
- launch_rocket = 119,
1066
- lua_shortcut = 120,
1067
- map_editor_action = 121,
1068
- market_offer = 122,
1069
- mod_settings_changed = 123,
1070
- modify_decider_combinator_condition = 124,
1071
- modify_decider_combinator_output = 125,
1072
- move_pin = 126,
1073
- move_research = 127,
1074
- open_achievements_gui = 128,
1075
- open_blueprint_library_gui = 129,
1076
- open_blueprint_record = 130,
1077
- open_bonus_gui = 131,
1078
- open_character_gui = 132,
1079
- open_current_vehicle_gui = 133,
1080
- open_equipment = 134,
1081
- open_global_electric_network_gui = 135,
1082
- open_gui = 136,
1083
- open_item = 137,
1084
- open_logistics_gui = 138,
1085
- open_mod_item = 139,
1086
- open_new_platform_button_from_rocket_silo = 140,
1087
- open_opened_entity_grid = 141,
1088
- open_parent_of_opened_item = 142,
1089
- open_production_gui = 143,
1090
- open_train_gui = 144,
1091
- open_train_station_gui = 145,
1092
- open_trains_gui = 146,
1093
- parametrise_blueprint = 147,
1094
- paste_entity_settings = 148,
1095
- pin_alert_group = 149,
1096
- pin_custom_alert = 150,
1097
- pin_search_result = 151,
1098
- pipette = 152,
1099
- place_equipment = 153,
1100
- quick_bar_pick_slot = 154,
1101
- quick_bar_set_selected_page = 155,
1102
- quick_bar_set_slot = 156,
1103
- reassign_blueprint = 157,
1104
- redo = 158,
1105
- remote_view_entity = 159,
1106
- remote_view_surface = 160,
1107
- remove_cables = 161,
1108
- remove_decider_combinator_condition = 162,
1109
- remove_decider_combinator_output = 163,
1110
- remove_logistic_section = 164,
1111
- remove_pin = 165,
1112
- remove_train_interrupt = 166,
1113
- remove_train_station = 167,
1114
- rename_interrupt = 168,
1115
- rename_space_platform = 169,
1116
- reorder_logistic_section = 170,
1117
- request_missing_construction_materials = 171,
1118
- reset_assembling_machine = 172,
1119
- reverse_select_area = 173,
1120
- rotate_entity = 174,
1121
- select_area = 175,
1122
- select_asteroid_chunk_slot = 176,
1123
- select_blueprint_entities = 177,
1124
- select_entity_filter_slot = 178,
1125
- select_entity_slot = 179,
1126
- select_item_filter = 180,
1127
- select_mapper_slot_from = 181,
1128
- select_mapper_slot_to = 182,
1129
- select_next_valid_gun = 183,
1130
- select_tile_slot = 184,
1131
- send_spidertron = 185,
1132
- send_stack_to_trash = 186,
1133
- send_stacks_to_trash = 187,
1134
- send_train_to_pin_target = 188,
1135
- set_behavior_mode = 189,
1136
- set_car_weapons_control = 190,
1137
- set_cheat_mode_quality = 191,
1138
- set_circuit_condition = 192,
1139
- set_circuit_mode_of_operation = 193,
1140
- set_combinator_description = 194,
1141
- set_copy_color_from_train_stop = 195,
1142
- set_deconstruction_item_tile_selection_mode = 196,
1143
- set_deconstruction_item_trees_and_rocks_only = 197,
1144
- set_entity_color = 198,
1145
- set_entity_energy_property = 199,
1146
- set_filter = 200,
1147
- set_ghost_cursor = 201,
1148
- set_heat_interface_mode = 202,
1149
- set_heat_interface_temperature = 203,
1150
- set_infinity_container_filter_item = 204,
1151
- set_infinity_container_remove_unfiltered_items = 205,
1152
- set_infinity_pipe_filter = 206,
1153
- set_inserter_max_stack_size = 207,
1154
- set_inventory_bar = 208,
1155
- set_lamp_always_on = 209,
1156
- set_linked_container_link_i_d = 210,
1157
- set_loader_belt_stack_size_override = 211,
1158
- set_logistic_filter_item = 212,
1159
- set_logistic_network_name = 213,
1160
- set_logistic_section_active = 214,
1161
- set_player_color = 215,
1162
- set_pump_fluid_filter = 216,
1163
- set_request_from_buffers = 217,
1164
- set_research_finished_stops_game = 218,
1165
- set_rocket_silo_send_to_orbit_automated_mode = 219,
1166
- set_schedule_record_allow_unloading = 220,
1167
- set_signal = 221,
1168
- set_splitter_priority = 222,
1169
- set_spoil_priority = 223,
1170
- set_train_stop_priority = 224,
1171
- set_train_stopped = 225,
1172
- set_trains_limit = 226,
1173
- set_turret_ignore_unlisted = 227,
1174
- set_use_inserter_filters = 228,
1175
- set_vehicle_automatic_targeting_parameters = 229,
1176
- setup_assembling_machine = 230,
1177
- setup_blueprint = 231,
1178
- setup_single_blueprint_record = 232,
1179
- spawn_item = 233,
1180
- spectator_change_surface = 234,
1181
- stack_split = 235,
1182
- stack_transfer = 236,
1183
- start_repair = 237,
1184
- start_research = 238,
1185
- start_walking = 239,
1186
- stop_drag_build = 240,
1187
- swap_asteroid_chunk_slots = 241,
1188
- swap_entity_filter_slots = 242,
1189
- swap_entity_slots = 243,
1190
- swap_infinity_container_filter_items = 244,
1191
- swap_item_filters = 245,
1192
- swap_logistic_filter_items = 246,
1193
- swap_mappers = 247,
1194
- swap_tile_slots = 248,
1195
- switch_connect_to_logistic_network = 249,
1196
- switch_constant_combinator_state = 250,
1197
- switch_inserter_filter_mode_state = 251,
1198
- switch_loader_filter_mode = 252,
1199
- switch_mining_drill_filter_mode_state = 253,
1200
- switch_power_switch_state = 254,
1201
- take_equipment = 255,
1202
- toggle_artillery_auto_targeting = 256,
1203
- toggle_deconstruction_item_entity_filter_mode = 257,
1204
- toggle_deconstruction_item_tile_filter_mode = 258,
1205
- toggle_driving = 259,
1206
- toggle_enable_vehicle_logistics_while_moving = 260,
1207
- toggle_entity_logistic_requests = 261,
1208
- toggle_equipment_movement_bonus = 262,
1209
- toggle_map_editor = 263,
1210
- toggle_personal_logistic_requests = 264,
1211
- toggle_personal_roboport = 265,
1212
- toggle_selected_entity = 266,
1213
- toggle_show_entity_info = 267,
1214
- translate_string = 268,
1215
- trash_not_requested_items = 269,
1216
- undo = 270,
1217
- upgrade = 271,
1218
- upgrade_opened_blueprint_by_item = 272,
1219
- upgrade_opened_blueprint_by_record = 273,
1220
- use_item = 274,
1221
- wire_dragging = 275,
1222
- write_to_console = 276
985
+ change_relative_riding_state = 39,
986
+ change_riding_state = 40,
987
+ change_selector_combinator_parameters = 41,
988
+ change_shooting_state = 42,
989
+ change_train_name = 43,
990
+ change_train_stop_station = 44,
991
+ change_train_wait_condition = 45,
992
+ change_train_wait_condition_data = 46,
993
+ clear_cursor = 47,
994
+ connect_rolling_stock = 48,
995
+ copy = 49,
996
+ copy_entity_settings = 50,
997
+ copy_large_opened_blueprint = 51,
998
+ copy_large_opened_item = 52,
999
+ copy_opened_blueprint = 53,
1000
+ copy_opened_item = 54,
1001
+ craft = 55,
1002
+ create_space_platform = 56,
1003
+ cursor_split = 57,
1004
+ cursor_transfer = 58,
1005
+ custom_input = 59,
1006
+ cycle_blueprint_book_backwards = 60,
1007
+ cycle_blueprint_book_forwards = 61,
1008
+ cycle_quality_down = 62,
1009
+ cycle_quality_up = 63,
1010
+ deconstruct = 64,
1011
+ delete_blueprint_library = 65,
1012
+ delete_blueprint_record = 66,
1013
+ delete_custom_tag = 67,
1014
+ delete_logistic_group = 68,
1015
+ delete_permission_group = 69,
1016
+ delete_space_platform = 70,
1017
+ destroy_item = 71,
1018
+ destroy_opened_item = 72,
1019
+ disconnect_rolling_stock = 73,
1020
+ drag_decider_combinator_condition = 74,
1021
+ drag_decider_combinator_output = 75,
1022
+ drag_train_schedule = 76,
1023
+ drag_train_schedule_interrupt = 77,
1024
+ drag_train_wait_condition = 78,
1025
+ drop_blueprint_record = 79,
1026
+ drop_item = 80,
1027
+ edit_blueprint_tool_preview = 81,
1028
+ edit_custom_tag = 82,
1029
+ edit_display_panel = 83,
1030
+ edit_display_panel_always_show = 84,
1031
+ edit_display_panel_icon = 85,
1032
+ edit_display_panel_parameters = 86,
1033
+ edit_display_panel_show_in_chart = 87,
1034
+ edit_interrupt = 88,
1035
+ edit_permission_group = 89,
1036
+ edit_pin = 90,
1037
+ enable_transitional_requests = 91,
1038
+ export_blueprint = 92,
1039
+ fast_entity_split = 93,
1040
+ fast_entity_transfer = 94,
1041
+ flip_entity = 95,
1042
+ flush_opened_entity_fluid = 96,
1043
+ flush_opened_entity_specific_fluid = 97,
1044
+ go_to_train_station = 98,
1045
+ grab_blueprint_record = 99,
1046
+ gui_checked_state_changed = 100,
1047
+ gui_click = 101,
1048
+ gui_confirmed = 102,
1049
+ gui_elem_changed = 103,
1050
+ gui_hover = 104,
1051
+ gui_leave = 105,
1052
+ gui_location_changed = 106,
1053
+ gui_selected_tab_changed = 107,
1054
+ gui_selection_state_changed = 108,
1055
+ gui_switch_state_changed = 109,
1056
+ gui_text_changed = 110,
1057
+ gui_value_changed = 111,
1058
+ import_blueprint = 112,
1059
+ import_blueprint_string = 113,
1060
+ import_blueprints_filtered = 114,
1061
+ import_permissions_string = 115,
1062
+ instantly_create_space_platform = 116,
1063
+ inventory_split = 117,
1064
+ inventory_transfer = 118,
1065
+ land_at_planet = 119,
1066
+ launch_rocket = 120,
1067
+ lua_shortcut = 121,
1068
+ map_editor_action = 122,
1069
+ market_offer = 123,
1070
+ mod_settings_changed = 124,
1071
+ modify_decider_combinator_condition = 125,
1072
+ modify_decider_combinator_output = 126,
1073
+ move_pin = 127,
1074
+ move_research = 128,
1075
+ open_achievements_gui = 129,
1076
+ open_blueprint_library_gui = 130,
1077
+ open_blueprint_record = 131,
1078
+ open_bonus_gui = 132,
1079
+ open_character_gui = 133,
1080
+ open_current_vehicle_gui = 134,
1081
+ open_equipment = 135,
1082
+ open_global_electric_network_gui = 136,
1083
+ open_gui = 137,
1084
+ open_item = 138,
1085
+ open_logistics_gui = 139,
1086
+ open_mod_item = 140,
1087
+ open_new_platform_button_from_rocket_silo = 141,
1088
+ open_opened_entity_grid = 142,
1089
+ open_parent_of_opened_item = 143,
1090
+ open_production_gui = 144,
1091
+ open_train_gui = 145,
1092
+ open_train_station_gui = 146,
1093
+ open_trains_gui = 147,
1094
+ parametrise_blueprint = 148,
1095
+ paste_entity_settings = 149,
1096
+ pin_alert_group = 150,
1097
+ pin_custom_alert = 151,
1098
+ pin_search_result = 152,
1099
+ pipette = 153,
1100
+ place_equipment = 154,
1101
+ quick_bar_pick_slot = 155,
1102
+ quick_bar_set_selected_page = 156,
1103
+ quick_bar_set_slot = 157,
1104
+ reassign_blueprint = 158,
1105
+ redo = 159,
1106
+ remote_view_entity = 160,
1107
+ remote_view_surface = 161,
1108
+ remove_cables = 162,
1109
+ remove_decider_combinator_condition = 163,
1110
+ remove_decider_combinator_output = 164,
1111
+ remove_logistic_section = 165,
1112
+ remove_pin = 166,
1113
+ remove_train_interrupt = 167,
1114
+ remove_train_station = 168,
1115
+ rename_interrupt = 169,
1116
+ rename_space_platform = 170,
1117
+ reorder_logistic_section = 171,
1118
+ request_missing_construction_materials = 172,
1119
+ reset_assembling_machine = 173,
1120
+ reverse_select_area = 174,
1121
+ rotate_entity = 175,
1122
+ select_area = 176,
1123
+ select_asteroid_chunk_slot = 177,
1124
+ select_blueprint_entities = 178,
1125
+ select_entity_filter_slot = 179,
1126
+ select_entity_slot = 180,
1127
+ select_item_filter = 181,
1128
+ select_mapper_slot_from = 182,
1129
+ select_mapper_slot_to = 183,
1130
+ select_next_valid_gun = 184,
1131
+ select_tile_slot = 185,
1132
+ send_spidertron = 186,
1133
+ send_stack_to_trash = 187,
1134
+ send_stacks_to_trash = 188,
1135
+ send_train_to_pin_target = 189,
1136
+ set_behavior_mode = 190,
1137
+ set_car_weapons_control = 191,
1138
+ set_cheat_mode_quality = 192,
1139
+ set_circuit_condition = 193,
1140
+ set_circuit_mode_of_operation = 194,
1141
+ set_combinator_description = 195,
1142
+ set_copy_color_from_train_stop = 196,
1143
+ set_deconstruction_item_tile_selection_mode = 197,
1144
+ set_deconstruction_item_trees_and_rocks_only = 198,
1145
+ set_entity_color = 199,
1146
+ set_entity_energy_property = 200,
1147
+ set_filter = 201,
1148
+ set_ghost_cursor = 202,
1149
+ set_heat_interface_mode = 203,
1150
+ set_heat_interface_temperature = 204,
1151
+ set_infinity_container_filter_item = 205,
1152
+ set_infinity_container_remove_unfiltered_items = 206,
1153
+ set_infinity_pipe_filter = 207,
1154
+ set_inserter_max_stack_size = 208,
1155
+ set_inventory_bar = 209,
1156
+ set_lamp_always_on = 210,
1157
+ set_linked_container_link_i_d = 211,
1158
+ set_loader_belt_stack_size_override = 212,
1159
+ set_logistic_filter_item = 213,
1160
+ set_logistic_network_name = 214,
1161
+ set_logistic_section_active = 215,
1162
+ set_player_color = 216,
1163
+ set_pump_fluid_filter = 217,
1164
+ set_request_from_buffers = 218,
1165
+ set_research_finished_stops_game = 219,
1166
+ set_rocket_silo_send_to_orbit_automated_mode = 220,
1167
+ set_schedule_record_allow_unloading = 221,
1168
+ set_signal = 222,
1169
+ set_splitter_priority = 223,
1170
+ set_spoil_priority = 224,
1171
+ set_train_stop_priority = 225,
1172
+ set_train_stopped = 226,
1173
+ set_trains_limit = 227,
1174
+ set_turret_ignore_unlisted = 228,
1175
+ set_use_inserter_filters = 229,
1176
+ set_vehicle_automatic_targeting_parameters = 230,
1177
+ setup_assembling_machine = 231,
1178
+ setup_blueprint = 232,
1179
+ setup_single_blueprint_record = 233,
1180
+ spawn_item = 234,
1181
+ spectator_change_surface = 235,
1182
+ stack_split = 236,
1183
+ stack_transfer = 237,
1184
+ start_repair = 238,
1185
+ start_research = 239,
1186
+ start_walking = 240,
1187
+ stop_drag_build = 241,
1188
+ swap_asteroid_chunk_slots = 242,
1189
+ swap_entity_filter_slots = 243,
1190
+ swap_entity_slots = 244,
1191
+ swap_infinity_container_filter_items = 245,
1192
+ swap_item_filters = 246,
1193
+ swap_logistic_filter_items = 247,
1194
+ swap_mappers = 248,
1195
+ swap_tile_slots = 249,
1196
+ switch_connect_to_logistic_network = 250,
1197
+ switch_constant_combinator_state = 251,
1198
+ switch_inserter_filter_mode_state = 252,
1199
+ switch_loader_filter_mode = 253,
1200
+ switch_mining_drill_filter_mode_state = 254,
1201
+ switch_power_switch_state = 255,
1202
+ take_equipment = 256,
1203
+ toggle_artillery_auto_targeting = 257,
1204
+ toggle_deconstruction_item_entity_filter_mode = 258,
1205
+ toggle_deconstruction_item_tile_filter_mode = 259,
1206
+ toggle_driving = 260,
1207
+ toggle_enable_vehicle_logistics_while_moving = 261,
1208
+ toggle_entity_logistic_requests = 262,
1209
+ toggle_equipment_movement_bonus = 263,
1210
+ toggle_map_editor = 264,
1211
+ toggle_personal_logistic_requests = 265,
1212
+ toggle_personal_roboport = 266,
1213
+ toggle_selected_entity = 267,
1214
+ toggle_show_entity_info = 268,
1215
+ translate_string = 269,
1216
+ trash_not_requested_items = 270,
1217
+ undo = 271,
1218
+ upgrade = 272,
1219
+ upgrade_opened_blueprint_by_item = 273,
1220
+ upgrade_opened_blueprint_by_record = 274,
1221
+ use_item = 275,
1222
+ wire_dragging = 276,
1223
+ write_to_console = 277
1223
1224
  }
1224
1225
  enum input_method {
1225
1226
  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.0.44
5
+ // Factorio version 2.0.45
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
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.0.44
5
+ // Factorio version 2.0.45
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.0.44
5
+ // Factorio version 2.0.45
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
@@ -5517,6 +5517,7 @@ interface MiningDrillPrototype extends EntityWithOwnerPrototype {
5517
5517
  */
5518
5518
  resource_searching_radius: double;
5519
5519
  shuffle_resources_to_mine?: boolean;
5520
+ uses_force_mining_productivity_bonus?: boolean;
5520
5521
  /**
5521
5522
  * The position where any item results are placed, when the mining drill is facing north (default direction). If the drill does not produce any solid items but uses a fluidbox output instead (e.g. pumpjacks), a vector of `{0,0}` disables the yellow arrow alt-mode indicator for the placed item location.
5522
5523
  */
@@ -6212,6 +6213,10 @@ interface PumpPrototype extends EntityWithOwnerPrototype {
6212
6213
  * The amount of energy the pump uses.
6213
6214
  */
6214
6215
  energy_usage: Energy;
6216
+ /**
6217
+ * When true, pump will reduce pumping speed based on fullness of the input fluid segment.
6218
+ */
6219
+ flow_scaling?: boolean;
6215
6220
  fluid_animation?: Animation4Way;
6216
6221
  /**
6217
6222
  * The area of the entity where fluid travels.
@@ -6631,6 +6636,9 @@ interface RecipePrototype extends Prototype {
6631
6636
  * Sets the {@link module categories | prototype:ModuleCategory} that are allowed to be used with this recipe.
6632
6637
  */
6633
6638
  allowed_module_categories?: ModuleCategoryID[];
6639
+ /**
6640
+ * Additional technologies to list under "Unlocked by" on a recipe's Factoriopedia page.
6641
+ */
6634
6642
  alternative_unlock_methods?: TechnologyID[];
6635
6643
  /**
6636
6644
  * Whether the "Made in: <Machine>" part of the tool-tip should always be present, and not only when the recipe can't be hand-crafted.
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.0.44
5
+ // Factorio version 2.0.45
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.31",
3
+ "version": "1.2.32",
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.0.44",
26
+ "factorioVersion": "2.0.45",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },