factorio-types 0.0.40 → 0.0.42
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 +5 -13
- package/dist/concepts.d.ts +8 -8
- package/dist/defines.d.ts +49 -1
- package/dist/events.d.ts +10 -2
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +110 -9
- package/dist/types.d.ts +12 -8
- package/package.json +1 -1
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -291,7 +291,7 @@ interface LuaBootstrap {
|
|
|
291
291
|
*
|
|
292
292
|
*/
|
|
293
293
|
on_event<T extends event>(this: void,
|
|
294
|
-
event: defines.events | defines.events
|
|
294
|
+
event: defines.events | string | Array<defines.events | string>,
|
|
295
295
|
handler: (this: void, arg0: EventData) => any | null,
|
|
296
296
|
filters?: EventFilter): void
|
|
297
297
|
|
|
@@ -4217,7 +4217,7 @@ interface LuaEntity extends LuaControl {
|
|
|
4217
4217
|
/**
|
|
4218
4218
|
* The ticks left before a ghost, combat robot, highlight box or smoke with trigger is destroyed.
|
|
4219
4219
|
*
|
|
4220
|
-
* - for ghosts set to uint32 max (4
|
|
4220
|
+
* - for ghosts set to uint32 max (4 294 967 295) to never expire.
|
|
4221
4221
|
* - for ghosts can not be set higher than {@link LuaForce::ghost_time_to_live | runtime:LuaForce::ghost_time_to_live} of the entity's force.
|
|
4222
4222
|
*/
|
|
4223
4223
|
time_to_live: number
|
|
@@ -5120,14 +5120,6 @@ interface LuaEntityPrototype {
|
|
|
5120
5120
|
*/
|
|
5121
5121
|
readonly height?: number
|
|
5122
5122
|
|
|
5123
|
-
/**
|
|
5124
|
-
* The idle energy usage of this rocket silo prototype.
|
|
5125
|
-
* @remarks
|
|
5126
|
-
* Applies to subclasses: RocketSilo
|
|
5127
|
-
*
|
|
5128
|
-
*/
|
|
5129
|
-
readonly idle_energy_usage?: number
|
|
5130
|
-
|
|
5131
5123
|
/**
|
|
5132
5124
|
* A vector of the gun prototypes of this car, spider vehicle, artillery wagon, or turret.
|
|
5133
5125
|
* @remarks
|
|
@@ -7929,7 +7921,7 @@ interface LuaGameScript {
|
|
|
7929
7921
|
/**
|
|
7930
7922
|
* Create a new surface.
|
|
7931
7923
|
* @remarks
|
|
7932
|
-
* The game currently supports a maximum of 4
|
|
7924
|
+
* The game currently supports a maximum of 4 294 967 295 surfaces, including the default surface.
|
|
7933
7925
|
* Surface names must be unique.
|
|
7934
7926
|
*
|
|
7935
7927
|
* @param name - Name of the new surface.
|
|
@@ -17501,7 +17493,7 @@ interface LuaTilePrototype {
|
|
|
17501
17493
|
readonly name: string
|
|
17502
17494
|
|
|
17503
17495
|
/**
|
|
17504
|
-
* If this tile needs correction logic applied when it's generated in the world
|
|
17496
|
+
* If this tile needs correction logic applied when it's generated in the world.
|
|
17505
17497
|
*/
|
|
17506
17498
|
readonly needs_correction: boolean
|
|
17507
17499
|
|
package/dist/concepts.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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -847,7 +847,7 @@ interface EnemyExpansionMapSettings {
|
|
|
847
847
|
max_colliding_tiles_coefficient: number,
|
|
848
848
|
|
|
849
849
|
/**
|
|
850
|
-
* The maximum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `60*3
|
|
850
|
+
* The maximum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `60*3 600=216 000` ticks.
|
|
851
851
|
*/
|
|
852
852
|
max_expansion_cooldown: number,
|
|
853
853
|
|
|
@@ -857,7 +857,7 @@ interface EnemyExpansionMapSettings {
|
|
|
857
857
|
max_expansion_distance: number,
|
|
858
858
|
|
|
859
859
|
/**
|
|
860
|
-
* The minimum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `4*3
|
|
860
|
+
* The minimum time between expansions in ticks. The actual cooldown is adjusted to the current evolution levels. Defaults to `4*3 600=14 400` ticks.
|
|
861
861
|
*/
|
|
862
862
|
min_expansion_cooldown: number,
|
|
863
863
|
|
|
@@ -2058,12 +2058,12 @@ interface PathFinderMapSettings {
|
|
|
2058
2058
|
max_clients_to_accept_short_new_request: number,
|
|
2059
2059
|
|
|
2060
2060
|
/**
|
|
2061
|
-
* The maximum number of nodes that are expanded per tick. Defaults to `1
|
|
2061
|
+
* The maximum number of nodes that are expanded per tick. Defaults to `1 000`.
|
|
2062
2062
|
*/
|
|
2063
2063
|
max_steps_worked_per_tick: number,
|
|
2064
2064
|
|
|
2065
2065
|
/**
|
|
2066
|
-
* The maximum amount of work each pathfinding job is allowed to do per tick. Defaults to `8
|
|
2066
|
+
* The maximum amount of work each pathfinding job is allowed to do per tick. Defaults to `8 000`.
|
|
2067
2067
|
*/
|
|
2068
2068
|
max_work_done_per_tick: number,
|
|
2069
2069
|
|
|
@@ -2823,7 +2823,7 @@ interface UnitGroupMapSettings {
|
|
|
2823
2823
|
max_gathering_unit_groups: number,
|
|
2824
2824
|
|
|
2825
2825
|
/**
|
|
2826
|
-
* The maximum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `10*3
|
|
2826
|
+
* The maximum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `10*3 600=36 000` ticks.
|
|
2827
2827
|
*/
|
|
2828
2828
|
max_group_gathering_time: number,
|
|
2829
2829
|
|
|
@@ -2858,7 +2858,7 @@ interface UnitGroupMapSettings {
|
|
|
2858
2858
|
max_unit_group_size: number,
|
|
2859
2859
|
|
|
2860
2860
|
/**
|
|
2861
|
-
* After gathering has finished, the group is allowed to wait this long in ticks for delayed members. New members are not accepted anymore however. Defaults to `2*3
|
|
2861
|
+
* After gathering has finished, the group is allowed to wait this long in ticks for delayed members. New members are not accepted anymore however. Defaults to `2*3 600=7 200` ticks.
|
|
2862
2862
|
*/
|
|
2863
2863
|
max_wait_time_for_late_members: number,
|
|
2864
2864
|
|
|
@@ -2868,7 +2868,7 @@ interface UnitGroupMapSettings {
|
|
|
2868
2868
|
member_disown_distance: number,
|
|
2869
2869
|
|
|
2870
2870
|
/**
|
|
2871
|
-
* The minimum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `3
|
|
2871
|
+
* The minimum amount of time in ticks a group will spend gathering before setting off. The actual time is a random time between the minimum and maximum times. Defaults to `3 600` ticks.
|
|
2872
2872
|
*/
|
|
2873
2873
|
min_group_gathering_time: number,
|
|
2874
2874
|
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace defines {
|
|
@@ -1124,21 +1124,69 @@ declare namespace defines {
|
|
|
1124
1124
|
straight,
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
+
/**
|
|
1128
|
+
* The various parts of the launch sequence of the rocket silo.
|
|
1129
|
+
*/
|
|
1127
1130
|
enum rocket_silo_status {
|
|
1131
|
+
/**
|
|
1132
|
+
* The next state is `rocket_ready` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1133
|
+
*/
|
|
1128
1134
|
arms_advance,
|
|
1135
|
+
/**
|
|
1136
|
+
* The next state is `rocket_flying` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1137
|
+
*/
|
|
1129
1138
|
arms_retract,
|
|
1139
|
+
/**
|
|
1140
|
+
* The rocket silo is crafting rocket parts. When there are enough rocket parts, the silo will switch into the `create_rocket` state.
|
|
1141
|
+
*/
|
|
1130
1142
|
building_rocket,
|
|
1143
|
+
/**
|
|
1144
|
+
* The next state is `lights_blinking_open`. The rocket silo rocket entity gets created.
|
|
1145
|
+
*/
|
|
1131
1146
|
create_rocket,
|
|
1147
|
+
/**
|
|
1148
|
+
* The next state is `building_rocket`.
|
|
1149
|
+
*/
|
|
1132
1150
|
doors_closing,
|
|
1151
|
+
/**
|
|
1152
|
+
* The next state is `rocket_rising` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1153
|
+
*/
|
|
1133
1154
|
doors_opened,
|
|
1155
|
+
/**
|
|
1156
|
+
* The next state is `doors_opened`. The rocket is getting prepared for launch.
|
|
1157
|
+
*/
|
|
1134
1158
|
doors_opening,
|
|
1159
|
+
/**
|
|
1160
|
+
* The next state is `arms_retract` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1161
|
+
*/
|
|
1135
1162
|
engine_starting,
|
|
1163
|
+
/**
|
|
1164
|
+
* The next state is `engine_starting` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting launched.
|
|
1165
|
+
*/
|
|
1136
1166
|
launch_started,
|
|
1167
|
+
/**
|
|
1168
|
+
* The next state is `launch_started`.
|
|
1169
|
+
*/
|
|
1137
1170
|
launch_starting,
|
|
1171
|
+
/**
|
|
1172
|
+
* The next state is `doors_closing`.
|
|
1173
|
+
*/
|
|
1138
1174
|
lights_blinking_close,
|
|
1175
|
+
/**
|
|
1176
|
+
* The next state is `doors_opening`. The rocket is getting prepared for launch.
|
|
1177
|
+
*/
|
|
1139
1178
|
lights_blinking_open,
|
|
1179
|
+
/**
|
|
1180
|
+
* The next state is `lights_blinking_close`. The rocket is getting launched.
|
|
1181
|
+
*/
|
|
1140
1182
|
rocket_flying,
|
|
1183
|
+
/**
|
|
1184
|
+
* The rocket launch can be started by the player. When the launch is started, the silo switches into the `launch_starting` state.
|
|
1185
|
+
*/
|
|
1141
1186
|
rocket_ready,
|
|
1187
|
+
/**
|
|
1188
|
+
* The next state is `arms_advance` or if the rocket is destroyed in this state then the next state will be `lights_blinking_close`. The rocket is getting prepared for launch.
|
|
1189
|
+
*/
|
|
1142
1190
|
rocket_rising,
|
|
1143
1191
|
}
|
|
1144
1192
|
enum shooting {
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -24,6 +24,14 @@ interface event {
|
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Called when a {@link CustomInputPrototype | prototype:CustomInputPrototype} is activated.
|
|
27
|
+
* @example
|
|
28
|
+
* This will be raised when a custom input with the name "my-potato-control" and action "lua" is pressed
|
|
29
|
+
* ```
|
|
30
|
+
* script.on_event("my-potato-control", function(event)
|
|
31
|
+
* game.print("Keyboard shortcut pressed on tick: " ..tostring(event.tick))
|
|
32
|
+
* end)
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
27
35
|
*/
|
|
28
36
|
interface CustomInputEvent extends event {
|
|
29
37
|
/**
|
|
@@ -877,7 +885,7 @@ interface on_land_mine_armed extends event {
|
|
|
877
885
|
mine: LuaEntity
|
|
878
886
|
}
|
|
879
887
|
/**
|
|
880
|
-
* Called when a custom Lua shortcut is pressed.
|
|
888
|
+
* Called when a custom {@link Lua shortcut | prototype:ShortcutPrototype} is pressed.
|
|
881
889
|
*/
|
|
882
890
|
interface on_lua_shortcut extends event {
|
|
883
891
|
player_index: number
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
/**
|
package/dist/prototypes.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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -1255,7 +1255,7 @@ interface BlueprintItemPrototype extends SelectionToolPrototype{
|
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
1257
|
/**
|
|
1258
|
-
* A {@link boiler | https://wiki.factorio.com/Boiler}.
|
|
1258
|
+
* A {@link boiler | https://wiki.factorio.com/Boiler}. It heats fluid and optionally outputs it as a different fluid.
|
|
1259
1259
|
*/
|
|
1260
1260
|
interface BoilerPrototype extends EntityWithOwnerPrototype{
|
|
1261
1261
|
|
|
@@ -1302,14 +1302,14 @@ If `mode` is `"heat-water-inside"`, the fluid is heated up directly in this flui
|
|
|
1302
1302
|
/**
|
|
1303
1303
|
* In the `"heat-water-inside"` mode, fluid in the `fluid_box` is continuously heated from the input temperature up to its {@link FluidPrototype::max_temperature | prototype:FluidPrototype::max_temperature}.
|
|
1304
1304
|
|
|
1305
|
-
In the `"output-to-separate-pipe"` mode, fluid is transferred from the `fluid_box` to the `output_fluid_box` when enough energy is available to {@link heat | prototype:FluidPrototype::heat_capacity} the fluid to the `target_temperature`. Setting a filter on the `output_fluid_box`
|
|
1305
|
+
In the `"output-to-separate-pipe"` mode, fluid is transferred from the `fluid_box` to the `output_fluid_box` when enough energy is available to {@link heat | prototype:FluidPrototype::heat_capacity} the input fluid to the `target_temperature`. Setting a filter on the `output_fluid_box` means that instead of the heated input fluid getting moved to the output, it is converted to the filtered fluid in a 1:1 ratio.
|
|
1306
1306
|
*/
|
|
1307
1307
|
mode?: 'heat-water-inside' | 'output-to-separate-pipe',
|
|
1308
1308
|
|
|
1309
1309
|
/**
|
|
1310
1310
|
* The output fluid box.
|
|
1311
1311
|
|
|
1312
|
-
If `mode` is `"output-to-separate-pipe"` and this has a {@link filter | prototype:FluidBox::filter}, the input fluid is converted to the output fluid that is set in the filter (in a 1:1 ratio).
|
|
1312
|
+
If `mode` is `"output-to-separate-pipe"` and this has a {@link filter | prototype:FluidBox::filter}, the heated input fluid is converted to the output fluid that is set in the filter (in a 1:1 ratio).
|
|
1313
1313
|
|
|
1314
1314
|
If `mode` is `"heat-water-inside"`, this fluidbox is unused.
|
|
1315
1315
|
*/
|
|
@@ -1322,7 +1322,7 @@ If `mode` is `"heat-water-inside"`, this fluidbox is unused.
|
|
|
1322
1322
|
structure: BoilerStructure,
|
|
1323
1323
|
|
|
1324
1324
|
/**
|
|
1325
|
-
* When `mode` is `"output-to-separate-pipe"`, this is the temperature that the input fluid must reach to be moved to output fluid box.
|
|
1325
|
+
* When `mode` is `"output-to-separate-pipe"`, this is the temperature that the input fluid must reach to be moved to the output fluid box.
|
|
1326
1326
|
|
|
1327
1327
|
When `mode` is `"heat-water-inside"` this is unused. Instead, the fluid {@link max_temperature | prototype:FluidPrototype::max_temperature} is the target temperature for heating the fluid.
|
|
1328
1328
|
*/
|
|
@@ -2221,7 +2221,7 @@ A key binding can contain an unlimited amount of modifier keys (listed above) bu
|
|
|
2221
2221
|
|
|
2222
2222
|
For a list of all names used in vanilla, see {@link data.raw | https://wiki.factorio.com/Data.raw}.
|
|
2223
2223
|
|
|
2224
|
-
It is also the name for the event that is raised when they key (combination) is pressed and action is `"lua"`, see {@link Tutorial:Script interfaces | https://wiki.factorio.com/Tutorial:Script_interfaces}.
|
|
2224
|
+
It is also the name for the event that is raised when they key (combination) is pressed and action is `"lua"`, see {@link Tutorial:Script interfaces | https://wiki.factorio.com/Tutorial:Script_interfaces#Custom_input}.
|
|
2225
2225
|
*/
|
|
2226
2226
|
name: string
|
|
2227
2227
|
}
|
|
@@ -2909,6 +2909,10 @@ The selection box is usually a little bit bigger than the collision box, for til
|
|
|
2909
2909
|
When the tile width is odd, the center will be in the center of the tile, when it is even, the center is on the tile transition.
|
|
2910
2910
|
*/
|
|
2911
2911
|
tile_width?: number,
|
|
2912
|
+
|
|
2913
|
+
/**
|
|
2914
|
+
* Defaults to the mask from {@link UtilityConstants::default_trigger_target_mask_by_type | prototype:UtilityConstants::default_trigger_target_mask_by_type}.
|
|
2915
|
+
*/
|
|
2912
2916
|
trigger_target_mask?: TriggerTargetMask,
|
|
2913
2917
|
|
|
2914
2918
|
/**
|
|
@@ -3018,7 +3022,7 @@ interface EntityWithHealthPrototype extends EntityPrototype{
|
|
|
3018
3022
|
interface EntityWithOwnerPrototype extends EntityWithHealthPrototype{
|
|
3019
3023
|
|
|
3020
3024
|
/**
|
|
3021
|
-
* If this is true, this
|
|
3025
|
+
* If this is true, this entity's `is_military_target` property can be changed during runtime (on the entity, not on the prototype itself).
|
|
3022
3026
|
*/
|
|
3023
3027
|
allow_run_time_change_of_is_military_target?: boolean,
|
|
3024
3028
|
|
|
@@ -6240,7 +6244,7 @@ Mandatory if `icons` is not defined, or if `icon_size` is not specified for all
|
|
|
6240
6244
|
/**
|
|
6241
6245
|
* A table containing ingredient names and counts. Can also contain information about fluid temperature and catalyst amounts. The catalyst amounts are automatically calculated from the recipe, or can be set manually in the IngredientPrototype (see {@link here | https://factorio.com/blog/post/fff-256}).
|
|
6242
6246
|
|
|
6243
|
-
The maximum ingredient amount is
|
|
6247
|
+
The maximum ingredient amount is 65 535. Can be set to an empty table to create a recipe that needs no ingredients.
|
|
6244
6248
|
|
|
6245
6249
|
Duplicate ingredients, e.g. two entries with the same name, are *not* allowed. In-game, the item ingredients are ordered by {@link ItemGroup::order_in_recipe | prototype:ItemGroup::order_in_recipe}.
|
|
6246
6250
|
|
|
@@ -6437,6 +6441,11 @@ interface ResourceEntityPrototype extends EntityPrototype{
|
|
|
6437
6441
|
*/
|
|
6438
6442
|
category?: ResourceCategoryID,
|
|
6439
6443
|
|
|
6444
|
+
/**
|
|
6445
|
+
* Must be positive.
|
|
6446
|
+
*/
|
|
6447
|
+
cliff_removal_probability?: number,
|
|
6448
|
+
|
|
6440
6449
|
/**
|
|
6441
6450
|
* Two entities can collide only if they share a layer from the collision mask.
|
|
6442
6451
|
*/
|
|
@@ -6798,8 +6807,20 @@ interface RobotWithLogisticInterfacePrototype extends FlyingRobotPrototype{
|
|
|
6798
6807
|
* A {@link rocket silo | https://wiki.factorio.com/Rocket_silo}.
|
|
6799
6808
|
*/
|
|
6800
6809
|
interface RocketSiloPrototype extends AssemblingMachinePrototype{
|
|
6810
|
+
|
|
6811
|
+
/**
|
|
6812
|
+
* Additional energy used during the following parts of the {@link launch sequence | runtime:defines.rocket_silo_status}: doors_opening, rocket_rising, arms_advance, engine_starting, arms_retract, doors_closing.
|
|
6813
|
+
*/
|
|
6801
6814
|
active_energy_usage: Energy,
|
|
6815
|
+
|
|
6816
|
+
/**
|
|
6817
|
+
* Played when switching into the {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} state.
|
|
6818
|
+
*/
|
|
6802
6819
|
alarm_sound?: Sound,
|
|
6820
|
+
|
|
6821
|
+
/**
|
|
6822
|
+
* Applied when switching into the {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} state.
|
|
6823
|
+
*/
|
|
6803
6824
|
alarm_trigger?: TriggerEffect,
|
|
6804
6825
|
arm_01_back_animation: Animation,
|
|
6805
6826
|
arm_02_right_animation: Animation,
|
|
@@ -6808,33 +6829,94 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype{
|
|
|
6808
6829
|
base_engine_light?: LightDefinition,
|
|
6809
6830
|
base_front_sprite: Sprite,
|
|
6810
6831
|
base_light?: LightDefinition,
|
|
6832
|
+
|
|
6833
|
+
/**
|
|
6834
|
+
* Drawn instead of `base_day_sprite` during the night i.e. when {@link LuaSurface::darkness | runtime:LuaSurface::darkness} is larger than 0.3.
|
|
6835
|
+
*/
|
|
6811
6836
|
base_night_sprite?: Sprite,
|
|
6837
|
+
|
|
6838
|
+
/**
|
|
6839
|
+
* Played when switching into the {@link arms_retract | runtime:defines.rocket_silo_status.arms_retract} state.
|
|
6840
|
+
*/
|
|
6812
6841
|
clamps_off_sound?: Sound,
|
|
6842
|
+
|
|
6843
|
+
/**
|
|
6844
|
+
* Applied when switching into the {@link arms_retract | runtime:defines.rocket_silo_status.arms_retract} state.
|
|
6845
|
+
*/
|
|
6813
6846
|
clamps_off_trigger?: TriggerEffect,
|
|
6847
|
+
|
|
6848
|
+
/**
|
|
6849
|
+
* Played when switching into the {@link arms_advance | runtime:defines.rocket_silo_status.arms_advance} state.
|
|
6850
|
+
*/
|
|
6814
6851
|
clamps_on_sound?: Sound,
|
|
6852
|
+
|
|
6853
|
+
/**
|
|
6854
|
+
* Applied when switching into the {@link arms_advance | runtime:defines.rocket_silo_status.arms_advance} state.
|
|
6855
|
+
*/
|
|
6815
6856
|
clamps_on_trigger?: TriggerEffect,
|
|
6816
6857
|
door_back_open_offset: Vector,
|
|
6817
6858
|
door_back_sprite: Sprite,
|
|
6818
6859
|
door_front_open_offset: Vector,
|
|
6819
6860
|
door_front_sprite: Sprite,
|
|
6861
|
+
|
|
6862
|
+
/**
|
|
6863
|
+
* The inverse of the duration in ticks of {@link doors_opening | runtime:defines.rocket_silo_status.doors_opening} and {@link closing | runtime:defines.rocket_silo_status.doors_closing}.
|
|
6864
|
+
*/
|
|
6820
6865
|
door_opening_speed: number,
|
|
6866
|
+
|
|
6867
|
+
/**
|
|
6868
|
+
* Played when switching into the {@link doors_opening | runtime:defines.rocket_silo_status.doors_opening} and {@link doors_closing | runtime:defines.rocket_silo_status.doors_closing} states.
|
|
6869
|
+
*/
|
|
6821
6870
|
doors_sound?: Sound,
|
|
6871
|
+
|
|
6872
|
+
/**
|
|
6873
|
+
* Applied when switching into the {@link doors_opening | runtime:defines.rocket_silo_status.doors_opening} and {@link doors_closing | runtime:defines.rocket_silo_status.doors_closing} states.
|
|
6874
|
+
*/
|
|
6822
6875
|
doors_trigger?: TriggerEffect,
|
|
6876
|
+
|
|
6877
|
+
/**
|
|
6878
|
+
* Played when switching into the {@link engine_starting | runtime:defines.rocket_silo_status.engine_starting} state.
|
|
6879
|
+
*/
|
|
6823
6880
|
flying_sound?: Sound,
|
|
6824
6881
|
hole_clipping_box: BoundingBox,
|
|
6825
6882
|
hole_light_sprite: Sprite,
|
|
6826
6883
|
hole_sprite: Sprite,
|
|
6827
|
-
idle_energy_usage: Energy,
|
|
6828
6884
|
|
|
6829
6885
|
/**
|
|
6830
6886
|
* May be 0.
|
|
6887
|
+
|
|
6888
|
+
Additional energy used during the night i.e. when {@link LuaSurface::darkness | runtime:LuaSurface::darkness} is larger than 0.3.
|
|
6831
6889
|
*/
|
|
6832
6890
|
lamp_energy_usage: Energy,
|
|
6891
|
+
|
|
6892
|
+
/**
|
|
6893
|
+
* The time to wait in the {@link launch_started | runtime:defines.rocket_silo_status.launch_started} state before switching to {@link engine_starting | runtime:defines.rocket_silo_status.engine_starting}.
|
|
6894
|
+
*/
|
|
6833
6895
|
launch_wait_time?: number,
|
|
6896
|
+
|
|
6897
|
+
/**
|
|
6898
|
+
* The inverse of the duration in ticks of {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} and {@link lights_blinking_close | runtime:defines.rocket_silo_status.lights_blinking_close}.
|
|
6899
|
+
*/
|
|
6834
6900
|
light_blinking_speed: number,
|
|
6901
|
+
|
|
6902
|
+
/**
|
|
6903
|
+
* Played when switching into the {@link rocket_rising | runtime:defines.rocket_silo_status.rocket_rising} state.
|
|
6904
|
+
*/
|
|
6835
6905
|
raise_rocket_sound?: Sound,
|
|
6906
|
+
|
|
6907
|
+
/**
|
|
6908
|
+
* Applied when switching into the {@link rocket_rising | runtime:defines.rocket_silo_status.rocket_rising} state.
|
|
6909
|
+
*/
|
|
6836
6910
|
raise_rocket_trigger?: TriggerEffect,
|
|
6911
|
+
|
|
6912
|
+
/**
|
|
6913
|
+
* Drawn from the start of the {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} state until the end of the {@link lights_blinking_close | runtime:defines.rocket_silo_status.lights_blinking_close} state.
|
|
6914
|
+
*/
|
|
6837
6915
|
red_lights_back_sprites: Sprite,
|
|
6916
|
+
|
|
6917
|
+
/**
|
|
6918
|
+
* Drawn from the start of the {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} state until the end of the {@link lights_blinking_close | runtime:defines.rocket_silo_status.lights_blinking_close} state.
|
|
6919
|
+
*/
|
|
6838
6920
|
red_lights_front_sprites: Sprite,
|
|
6839
6921
|
|
|
6840
6922
|
/**
|
|
@@ -6848,6 +6930,10 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype{
|
|
|
6848
6930
|
*/
|
|
6849
6931
|
rocket_parts_required: number,
|
|
6850
6932
|
rocket_result_inventory_size?: ItemStackIndex,
|
|
6933
|
+
|
|
6934
|
+
/**
|
|
6935
|
+
* The time to wait in the {@link doors_opened | runtime:defines.rocket_silo_status.doors_opened} state before switching to {@link rocket_rising | runtime:defines.rocket_silo_status.rocket_rising}.
|
|
6936
|
+
*/
|
|
6851
6937
|
rocket_rising_delay?: number,
|
|
6852
6938
|
rocket_shadow_overlay_sprite: Sprite,
|
|
6853
6939
|
satellite_animation: Animation,
|
|
@@ -6855,6 +6941,12 @@ interface RocketSiloPrototype extends AssemblingMachinePrototype{
|
|
|
6855
6941
|
shadow_sprite: Sprite,
|
|
6856
6942
|
silo_fade_out_end_distance: number,
|
|
6857
6943
|
silo_fade_out_start_distance: number,
|
|
6944
|
+
|
|
6945
|
+
/**
|
|
6946
|
+
* How many times the `red_lights_back_sprites` and `red_lights_front_sprites` should blink during {@link lights_blinking_open | runtime:defines.rocket_silo_status.lights_blinking_open} and {@link lights_blinking_close | runtime:defines.rocket_silo_status.lights_blinking_close}.
|
|
6947
|
+
|
|
6948
|
+
Does not affect the duration of the launch sequence.
|
|
6949
|
+
*/
|
|
6858
6950
|
times_to_blink: number
|
|
6859
6951
|
}
|
|
6860
6952
|
|
|
@@ -7144,6 +7236,11 @@ Note: The scale that can be defined in the sprite may not behave as expected bec
|
|
|
7144
7236
|
*/
|
|
7145
7237
|
item_to_spawn?: ItemID,
|
|
7146
7238
|
|
|
7239
|
+
/**
|
|
7240
|
+
* Used to order the shortcuts in the {@link quick panel | https://wiki.factorio.com/Quick_panel}, which replaces the shortcut bar when using a controller (game pad). It {@link is recommended | https://forums.factorio.com/106661} to order modded shortcuts after the vanilla shortcuts.
|
|
7241
|
+
*/
|
|
7242
|
+
order?: Order,
|
|
7243
|
+
|
|
7147
7244
|
/**
|
|
7148
7245
|
* The icon used in the panel for visible shortcuts, when the shortcut is usable.
|
|
7149
7246
|
|
|
@@ -8212,6 +8309,10 @@ Only loaded if `icons` is not defined, or if `icon_size` is not specified for al
|
|
|
8212
8309
|
*/
|
|
8213
8310
|
minable?: MinableProperties,
|
|
8214
8311
|
mined_sound?: Sound,
|
|
8312
|
+
|
|
8313
|
+
/**
|
|
8314
|
+
* Whether the tile needs tile correction logic applied when it's generated in the world, to prevent graphical artifacts. The tile correction logic disallows 1-wide stripes of the tile, see {@link Friday Facts #346 | https://factorio.com/blog/post/fff-346}.
|
|
8315
|
+
*/
|
|
8215
8316
|
needs_correction?: boolean,
|
|
8216
8317
|
next_direction?: TileID,
|
|
8217
8318
|
placeable_by?: ItemToPlace | ItemToPlace[],
|
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 1.1.
|
|
5
|
+
// Factorio version 1.1.92
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace prototype {
|
|
@@ -289,7 +289,7 @@ interface AnimationElement {
|
|
|
289
289
|
*
|
|
290
290
|
* @example
|
|
291
291
|
* ```
|
|
292
|
-
* Complex example - animation contains different layers with different frame counts:
|
|
292
|
+
* -- Complex example - animation contains different layers with different frame counts:
|
|
293
293
|
* local custom_frame_sequence = { 2, 2, 2, 2, 2, 4, 3, 4, 3 }
|
|
294
294
|
* layers = {
|
|
295
295
|
* {
|
|
@@ -2688,7 +2688,7 @@ interface EnemyExpansionSettings {
|
|
|
2688
2688
|
*
|
|
2689
2689
|
* Supported Multipliers:
|
|
2690
2690
|
*
|
|
2691
|
-
* - `k/K`: 10^3, or 1
|
|
2691
|
+
* - `k/K`: 10^3, or 1 000
|
|
2692
2692
|
*
|
|
2693
2693
|
* - `M`: 10^6
|
|
2694
2694
|
*
|
|
@@ -2850,7 +2850,7 @@ interface FactorioBasisNoiseArguments {
|
|
|
2850
2850
|
output_scale?: ConstantNoiseNumber,
|
|
2851
2851
|
|
|
2852
2852
|
/**
|
|
2853
|
-
* Integer between 0 and 4
|
|
2853
|
+
* Integer between 0 and 4 294 967 295 (inclusive) used to populate the backing random noise.
|
|
2854
2854
|
*/
|
|
2855
2855
|
seed0: ConstantNoiseNumber,
|
|
2856
2856
|
|
|
@@ -2885,7 +2885,7 @@ interface FactorioMultioctaveNoiseArguments {
|
|
|
2885
2885
|
persistence: ConstantNoiseNumber,
|
|
2886
2886
|
|
|
2887
2887
|
/**
|
|
2888
|
-
* Integer between 0 and 4
|
|
2888
|
+
* Integer between 0 and 4 294 967 295 (inclusive) used to populate the backing random noise.
|
|
2889
2889
|
*/
|
|
2890
2890
|
seed0: ConstantNoiseNumber,
|
|
2891
2891
|
|
|
@@ -4412,7 +4412,7 @@ interface MapGenSettings {
|
|
|
4412
4412
|
default_enable_all_autoplace_controls?: boolean,
|
|
4413
4413
|
|
|
4414
4414
|
/**
|
|
4415
|
-
* Height of the map in tiles. Silently limited to 2
|
|
4415
|
+
* Height of the map in tiles. Silently limited to 2 000 000, ie. +/- 1 million tiles from the center in both directions.
|
|
4416
4416
|
*/
|
|
4417
4417
|
height?: number,
|
|
4418
4418
|
peaceful_mode?: boolean,
|
|
@@ -4448,7 +4448,7 @@ interface MapGenSettings {
|
|
|
4448
4448
|
water?: MapGenSize,
|
|
4449
4449
|
|
|
4450
4450
|
/**
|
|
4451
|
-
* Width of the map in tiles. Silently limited to 2
|
|
4451
|
+
* Width of the map in tiles. Silently limited to 2 000 000, ie. +/- 1 million tiles from the center in both directions.
|
|
4452
4452
|
*/
|
|
4453
4453
|
width?: number
|
|
4454
4454
|
}
|
|
@@ -6252,7 +6252,7 @@ If a recipe is unlocked via technology, this should be set to `false`.
|
|
|
6252
6252
|
/**
|
|
6253
6253
|
* A table containing ingredient names and counts. Can also contain information about fluid temperature and catalyst amounts. The catalyst amounts are automatically calculated from the recipe, or can be set manually in the IngredientPrototype (see {@link here | https://factorio.com/blog/post/fff-256}).
|
|
6254
6254
|
|
|
6255
|
-
The maximum ingredient amount is
|
|
6255
|
+
The maximum ingredient amount is 65 535. Can be set to an empty table to create a recipe that needs no ingredients.
|
|
6256
6256
|
|
|
6257
6257
|
Duplicate ingredients, e.g. two entries with the same name, are *not* allowed. In-game, the item ingredients are ordered by {@link ItemGroup::order_in_recipe | prototype:ItemGroup::order_in_recipe}.
|
|
6258
6258
|
*/
|
|
@@ -8420,6 +8420,10 @@ interface TriggerItem {
|
|
|
8420
8420
|
*/
|
|
8421
8421
|
probability?: number,
|
|
8422
8422
|
repeat_count?: number,
|
|
8423
|
+
|
|
8424
|
+
/**
|
|
8425
|
+
* The trigger affects only prototypes with these masks.
|
|
8426
|
+
*/
|
|
8423
8427
|
trigger_target_mask?: TriggerTargetMask
|
|
8424
8428
|
}
|
|
8425
8429
|
|