factorio-types 0.0.46 → 0.0.47
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 +210 -150
- package/dist/concepts.d.ts +474 -529
- package/dist/core.d.ts +3 -0
- package/dist/defines.d.ts +5 -1
- package/dist/events.d.ts +3 -3
- package/dist/global.d.ts +1 -1
- package/dist/prototypes.d.ts +99 -31
- package/dist/types.d.ts +153 -11
- package/package.json +2 -2
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.102
|
|
6
6
|
// API version 4
|
|
7
7
|
|
|
8
8
|
declare namespace runtime {
|
|
@@ -67,11 +67,7 @@ interface AmmoType {
|
|
|
67
67
|
*/
|
|
68
68
|
energy_consumption?: number,
|
|
69
69
|
range_modifier?: number,
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* One of `"entity"` (fires at an entity), `"position"` (fires directly at a position), or `"direction"` (fires in a direction).
|
|
73
|
-
*/
|
|
74
|
-
target_type: string
|
|
70
|
+
target_type: TargetType
|
|
75
71
|
}
|
|
76
72
|
|
|
77
73
|
/**
|
|
@@ -97,9 +93,9 @@ interface ArithmeticCombinatorParameters {
|
|
|
97
93
|
first_signal?: SignalID,
|
|
98
94
|
|
|
99
95
|
/**
|
|
100
|
-
*
|
|
96
|
+
* When not specified, defaults to `"*"`.
|
|
101
97
|
*/
|
|
102
|
-
operation?:
|
|
98
|
+
operation?: '*' | '/' | '+' | '-' | '%' | '^' | '<<' | '>>' | 'AND' | 'OR' | 'XOR',
|
|
103
99
|
|
|
104
100
|
/**
|
|
105
101
|
* Specifies the signal to output.
|
|
@@ -135,7 +131,81 @@ interface AttackParameterFluid {
|
|
|
135
131
|
* Other attributes may be specified depending on `type`:
|
|
136
132
|
*
|
|
137
133
|
*/
|
|
138
|
-
|
|
134
|
+
interface AttackParameters {
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* List of the names of compatible {@link LuaAmmoCategoryPrototypes | runtime:LuaAmmoCategoryPrototype}.
|
|
138
|
+
*/
|
|
139
|
+
ammo_categories?: string[],
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Multiplier applied to the ammo consumption of an attack.
|
|
143
|
+
*/
|
|
144
|
+
ammo_consumption_modifier: number,
|
|
145
|
+
ammo_type?: AmmoType,
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Minimum amount of ticks between shots. If this is less than `1`, multiple shots can be performed per tick.
|
|
149
|
+
*/
|
|
150
|
+
cooldown: number,
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Multiplier applied to the damage of an attack.
|
|
154
|
+
*/
|
|
155
|
+
damage_modifier: number,
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* When searching for the nearest enemy to attack, `fire_penalty` is added to the enemy's distance if they are on fire.
|
|
159
|
+
*/
|
|
160
|
+
fire_penalty: number,
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* When searching for an enemy to attack, a higher `health_penalty` will discourage targeting enemies with high health. A negative penalty will do the opposite.
|
|
164
|
+
*/
|
|
165
|
+
health_penalty: number,
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* If less than `range`, the entity will choose a random distance between `range` and `min_attack_distance` and attack from that distance. Used for spitters.
|
|
169
|
+
*/
|
|
170
|
+
min_attack_distance: number,
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Minimum range of attack. Used with flamethrower turrets to prevent self-immolation.
|
|
174
|
+
*/
|
|
175
|
+
min_range: number,
|
|
176
|
+
movement_slow_down_cooldown: number,
|
|
177
|
+
movement_slow_down_factor: number,
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Maximum range of attack.
|
|
181
|
+
*/
|
|
182
|
+
range: number,
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Defines how the range is determined.
|
|
186
|
+
*/
|
|
187
|
+
range_mode: 'center-to-center' | 'bounding-box-to-bounding-box',
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* When searching for an enemy to attack, a higher `rotate_penalty` will discourage targeting enemies that would take longer to turn to face.
|
|
191
|
+
*/
|
|
192
|
+
rotate_penalty: number,
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The arc that the entity can attack in as a fraction of a circle. A value of `1` means the full 360 degrees.
|
|
196
|
+
*/
|
|
197
|
+
turn_range: number,
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* The type of AttackParameter.
|
|
201
|
+
*/
|
|
202
|
+
type: 'projectile' | 'stream' | 'beam',
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Number of ticks it takes for the weapon to actually shoot after it has been ordered to do so.
|
|
206
|
+
*/
|
|
207
|
+
warmup: number
|
|
208
|
+
}
|
|
139
209
|
|
|
140
210
|
interface AutoplaceControl {
|
|
141
211
|
|
|
@@ -349,7 +419,9 @@ type BoundingBox = {
|
|
|
349
419
|
* Other attributes may be specified depending on `type`:
|
|
350
420
|
*
|
|
351
421
|
*/
|
|
352
|
-
|
|
422
|
+
interface CapsuleAction {
|
|
423
|
+
type: 'throw' | 'equipment-remote' | 'use-on-self' | 'artillery-remote' | 'destroy-cliffs'
|
|
424
|
+
}
|
|
353
425
|
|
|
354
426
|
/**
|
|
355
427
|
* @remarks
|
|
@@ -437,7 +509,7 @@ interface CircularParticleCreationSpecification {
|
|
|
437
509
|
height_deviation: number,
|
|
438
510
|
|
|
439
511
|
/**
|
|
440
|
-
* Name of the {@link LuaEntityPrototype | runtime:LuaEntityPrototype}
|
|
512
|
+
* Name of the {@link LuaEntityPrototype | runtime:LuaEntityPrototype}.
|
|
441
513
|
*/
|
|
442
514
|
name: string,
|
|
443
515
|
speed: number,
|
|
@@ -450,8 +522,8 @@ interface CircularParticleCreationSpecification {
|
|
|
450
522
|
}
|
|
451
523
|
|
|
452
524
|
interface CircularProjectileCreationSpecification {
|
|
453
|
-
|
|
454
|
-
|
|
525
|
+
[1]: RealOrientation,
|
|
526
|
+
[2]: Vector
|
|
455
527
|
}
|
|
456
528
|
|
|
457
529
|
type CliffOrientation = 'west-to-east' | 'north-to-south' | 'east-to-west' | 'south-to-north' | 'west-to-north' | 'north-to-east' | 'east-to-south' | 'south-to-west' | 'west-to-south' | 'north-to-west' | 'east-to-north' | 'south-to-east' | 'west-to-none' | 'none-to-east' | 'east-to-none' | 'none-to-west' | 'north-to-none' | 'none-to-south' | 'south-to-none' | 'none-to-north'
|
|
@@ -623,7 +695,10 @@ interface CraftingQueueItem {
|
|
|
623
695
|
recipe: string
|
|
624
696
|
}
|
|
625
697
|
|
|
626
|
-
|
|
698
|
+
/**
|
|
699
|
+
* One of the following values:
|
|
700
|
+
*/
|
|
701
|
+
type CursorBoxRenderType = /* The normal entity selection box. Yellow by default. */ 'entity' | /* The selection box used to specify electric poles an entity is connected to. Light blue by default. */ 'electricity' | /* The selection box used when doing entity copy-paste. Green by default. */ 'copy' | /* The selection box used when specifying colliding entities. Red by default. */ 'not-allowed' | /* Light blue by default. */ 'pair' | /* Light blue by default. */ 'logistics' | /* White by default. */ 'train-visualization' | /* Green by default. */ 'blueprint-snap-rectangle'
|
|
627
702
|
|
|
628
703
|
interface CustomCommandData {
|
|
629
704
|
|
|
@@ -676,6 +751,19 @@ interface CutsceneWaypoint {
|
|
|
676
751
|
zoom?: number
|
|
677
752
|
}
|
|
678
753
|
|
|
754
|
+
interface DamageTypeFilters {
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* The damage types to filter for. The value in the dictionary is meaningless and exists just to allow for easy lookup.
|
|
758
|
+
*/
|
|
759
|
+
types: {[key: string]: true},
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Whether this is a whitelist or a blacklist of damage types. `true` means whitelist.
|
|
763
|
+
*/
|
|
764
|
+
whitelist: boolean
|
|
765
|
+
}
|
|
766
|
+
|
|
679
767
|
interface DeciderCombinatorParameters {
|
|
680
768
|
|
|
681
769
|
/**
|
|
@@ -740,9 +828,9 @@ interface DifficultySettings {
|
|
|
740
828
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty
|
|
741
829
|
|
|
742
830
|
/**
|
|
743
|
-
*
|
|
831
|
+
* Changing this to `"always"` or `"after-victory"` does not automatically unlock the research queue. See {@link LuaForce::research_queue_enabled | runtime:LuaForce::research_queue_enabled} for that.
|
|
744
832
|
*/
|
|
745
|
-
research_queue_setting:
|
|
833
|
+
research_queue_setting: 'after-victory' | 'always' | 'never'
|
|
746
834
|
|
|
747
835
|
technology_difficulty: defines.difficulty_settings.technology_difficulty
|
|
748
836
|
|
|
@@ -778,13 +866,14 @@ interface ElemID {
|
|
|
778
866
|
* Name of a prototype as defined by `type`.
|
|
779
867
|
*/
|
|
780
868
|
name: string,
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* One of `"achievement"`, `"decorative"`, `"entity"`, `"equipment"`, `"fluid"`, `"item"`, `"item-group"`, `"recipe"`, `"signal"`, or `"technology"`.
|
|
784
|
-
*/
|
|
785
|
-
type: string
|
|
869
|
+
type: ElemType
|
|
786
870
|
}
|
|
787
871
|
|
|
872
|
+
/**
|
|
873
|
+
* A {@link string | runtime:string} specifying a type for {@link choose elem buttons | runtime:LuaGuiElement::elem_type}. It's also used by {@link ElemID | runtime:ElemID} for {@link LuaGuiElement::elem_tooltip | runtime:LuaGuiElement::elem_tooltip}.
|
|
874
|
+
*/
|
|
875
|
+
type ElemType = 'achievement' | 'decorative' | 'entity' | 'equipment' | 'fluid' | 'item' | 'item-group' | 'recipe' | 'signal' | 'technology' | 'tile'
|
|
876
|
+
|
|
788
877
|
/**
|
|
789
878
|
* These values represent a percentual increase in evolution. This means a value of `0.1` would increase evolution by 10%.
|
|
790
879
|
*/
|
|
@@ -1023,11 +1112,7 @@ interface FluidBoxConnection {
|
|
|
1023
1112
|
* The 4 cardinal direction connection points for this pipe. This vector is a table with `x` and `y` keys instead of an array.
|
|
1024
1113
|
*/
|
|
1025
1114
|
positions: Vector[],
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
* One of "input", "output", or "input-output".
|
|
1029
|
-
*/
|
|
1030
|
-
type: string
|
|
1115
|
+
type: 'input' | 'output' | 'input-output'
|
|
1031
1116
|
}
|
|
1032
1117
|
|
|
1033
1118
|
interface FluidBoxFilter {
|
|
@@ -1198,9 +1283,24 @@ interface GuiAnchor {
|
|
|
1198
1283
|
* Other attributes may be specified depending on `type`:
|
|
1199
1284
|
*
|
|
1200
1285
|
*/
|
|
1201
|
-
|
|
1286
|
+
interface GuiArrowSpecification {
|
|
1287
|
+
margin: number,
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* This determines which of the following fields will be required.
|
|
1291
|
+
*/
|
|
1292
|
+
type: GuiArrowType
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Used by {@link GuiArrowSpecification | runtime:GuiArrowSpecification}.
|
|
1297
|
+
*/
|
|
1298
|
+
type GuiArrowType = /* Will remove the arrow entirely. */ 'nowhere' | /* Will point to the current goal. */ 'goal' | 'entity_info' | 'active_window' | 'entity' | 'position' | 'crafting_queue' | /* Will point to a given item stack in an inventory. */ 'item_stack'
|
|
1202
1299
|
|
|
1203
|
-
|
|
1300
|
+
/**
|
|
1301
|
+
* Direction of a {@link LuaGuiElement's | runtime:LuaGuiElement::direction} layout.
|
|
1302
|
+
*/
|
|
1303
|
+
type GuiDirection = 'horizontal' | 'vertical'
|
|
1204
1304
|
|
|
1205
1305
|
type GuiElementType = /* A clickable element. Relevant event: {@link on_gui_click | runtime:on_gui_click} */ 'button' | /* A `button` that displays a sprite rather than text. Relevant event: {@link on_gui_click | runtime:on_gui_click} */ 'sprite-button' | /* A clickable element with a check mark that can be turned off or on. Relevant event: {@link on_gui_checked_state_changed | runtime:on_gui_checked_state_changed} */ 'checkbox' | /* An invisible container that lays out its children either horizontally or vertically. */ 'flow' | /* A non-transparent box that contains other elements. It can have a title (set via the `caption` attribute). Just like a `flow`, it lays out its children either horizontally or vertically. Relevant event: {@link on_gui_location_changed | runtime:on_gui_location_changed} */ 'frame' | /* A piece of text. */ 'label' | /* A horizontal or vertical separation line. */ 'line' | /* A partially filled bar that can be used to indicate progress. */ 'progressbar' | /* An invisible container that lays out its children in a specific number of columns. The width of each column is determined by the widest element it contains. */ 'table' | /* A single-line box the user can type into. Relevant events: {@link on_gui_text_changed | runtime:on_gui_text_changed}, {@link on_gui_confirmed | runtime:on_gui_confirmed} */ 'textfield' | /* An element that is similar to a `checkbox`, but with a circular appearance. Clicking a selected radio button will not unselect it. Radio buttons are not linked to each other in any way. Relevant event: {@link on_gui_checked_state_changed | runtime:on_gui_checked_state_changed} */ 'radiobutton' | /* An element that shows an image. */ 'sprite' | /* An invisible element that is similar to a `flow`, but has the ability to show and use scroll bars. */ 'scroll-pane' | /* A drop-down containing strings of text. Relevant event: {@link on_gui_selection_state_changed | runtime:on_gui_selection_state_changed} */ 'drop-down' | /* A list of strings, only one of which can be selected at a time. Shows a scroll bar if necessary. Relevant event: {@link on_gui_selection_state_changed | runtime:on_gui_selection_state_changed} */ 'list-box' | /* A camera that shows the game at the given position on the given surface. It can visually track an {@link entity | runtime:LuaGuiElement::entity} that is set after the element has been created. */ 'camera' | /* A button that lets the player pick from a certain kind of prototype, with optional filtering. Relevant event: {@link on_gui_elem_changed | runtime:on_gui_elem_changed} */ 'choose-elem-button' | /* A multi-line `textfield`. Relevant event: {@link on_gui_text_changed | runtime:on_gui_text_changed} */ 'text-box' | /* A horizontal number line which can be used to choose a number. Relevant event: {@link on_gui_value_changed | runtime:on_gui_value_changed} */ 'slider' | /* A minimap preview, similar to the normal player minimap. It can visually track an {@link entity | runtime:LuaGuiElement::entity} that is set after the element has been created. */ 'minimap' | /* A preview of an entity. The {@link entity | runtime:LuaGuiElement::entity} has to be set after the element has been created. */ 'entity-preview' | /* An empty element that just exists. The root GUI elements `screen` and `relative` are `empty-widget`s. */ 'empty-widget' | /* A collection of `tab`s and their contents. Relevant event: {@link on_gui_selected_tab_changed | runtime:on_gui_selected_tab_changed} */ 'tabbed-pane' | /* A tab for use in a `tabbed-pane`. */ 'tab' | /* A switch with three possible states. Can have labels attached to either side. Relevant event: {@link on_gui_switch_state_changed | runtime:on_gui_switch_state_changed} */ 'switch'
|
|
1206
1306
|
|
|
@@ -1230,9 +1330,9 @@ interface HeatConnection {
|
|
|
1230
1330
|
interface HeatSetting {
|
|
1231
1331
|
|
|
1232
1332
|
/**
|
|
1233
|
-
*
|
|
1333
|
+
* Defaults to `"at-least"`.
|
|
1234
1334
|
*/
|
|
1235
|
-
mode?:
|
|
1335
|
+
mode?: 'at-least' | 'at-most' | 'exactly' | 'add' | 'remove',
|
|
1236
1336
|
|
|
1237
1337
|
/**
|
|
1238
1338
|
* The target temperature. Defaults to the minimum temperature of the heat buffer.
|
|
@@ -1256,9 +1356,9 @@ interface InfinityInventoryFilter {
|
|
|
1256
1356
|
index: number,
|
|
1257
1357
|
|
|
1258
1358
|
/**
|
|
1259
|
-
*
|
|
1359
|
+
* Defaults to `"at-least"`.
|
|
1260
1360
|
*/
|
|
1261
|
-
mode?:
|
|
1361
|
+
mode?: 'at-least' | 'at-most' | 'exactly',
|
|
1262
1362
|
|
|
1263
1363
|
/**
|
|
1264
1364
|
* Name of the item.
|
|
@@ -1272,9 +1372,9 @@ interface InfinityInventoryFilter {
|
|
|
1272
1372
|
interface InfinityPipeFilter {
|
|
1273
1373
|
|
|
1274
1374
|
/**
|
|
1275
|
-
*
|
|
1375
|
+
* Defaults to `"at-least"`.
|
|
1276
1376
|
*/
|
|
1277
|
-
mode?:
|
|
1377
|
+
mode?: 'at-least' | 'at-most' | 'exactly' | 'add' | 'remove',
|
|
1278
1378
|
|
|
1279
1379
|
/**
|
|
1280
1380
|
* Name of the fluid.
|
|
@@ -1282,7 +1382,7 @@ interface InfinityPipeFilter {
|
|
|
1282
1382
|
name: string,
|
|
1283
1383
|
|
|
1284
1384
|
/**
|
|
1285
|
-
* The fill percentage the pipe (
|
|
1385
|
+
* The fill percentage the pipe (`0.5` for 50%). Can't be negative.
|
|
1286
1386
|
*/
|
|
1287
1387
|
percentage?: number,
|
|
1288
1388
|
|
|
@@ -1297,7 +1397,24 @@ interface InfinityPipeFilter {
|
|
|
1297
1397
|
* Other attributes may be specified depending on `type`:
|
|
1298
1398
|
*
|
|
1299
1399
|
*/
|
|
1300
|
-
|
|
1400
|
+
interface Ingredient {
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Amount of the item or fluid.
|
|
1404
|
+
*/
|
|
1405
|
+
amount: number,
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* How much of this ingredient is a catalyst.
|
|
1409
|
+
*/
|
|
1410
|
+
catalyst_amount?: number,
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* Prototype name of the required item or fluid.
|
|
1414
|
+
*/
|
|
1415
|
+
name: string,
|
|
1416
|
+
type: 'item' | 'fluid'
|
|
1417
|
+
}
|
|
1301
1418
|
|
|
1302
1419
|
interface InserterCircuitConditions {
|
|
1303
1420
|
circuit?: CircuitCondition,
|
|
@@ -1450,7 +1567,15 @@ interface LogisticFilter {
|
|
|
1450
1567
|
}
|
|
1451
1568
|
|
|
1452
1569
|
interface LogisticParameters {
|
|
1570
|
+
|
|
1571
|
+
/**
|
|
1572
|
+
* Defaults to max uint.
|
|
1573
|
+
*/
|
|
1453
1574
|
max?: number,
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* Defaults to `0`.
|
|
1578
|
+
*/
|
|
1454
1579
|
min?: number,
|
|
1455
1580
|
|
|
1456
1581
|
/**
|
|
@@ -1710,9 +1835,9 @@ interface MapDifficultySettings {
|
|
|
1710
1835
|
recipe_difficulty: defines.difficulty_settings.recipe_difficulty,
|
|
1711
1836
|
|
|
1712
1837
|
/**
|
|
1713
|
-
*
|
|
1838
|
+
* Changing this to `"always"` or `"after-victory"` does not automatically unlock the research queue. See {@link LuaForce::research_queue_enabled | runtime:LuaForce::research_queue_enabled} for that.
|
|
1714
1839
|
*/
|
|
1715
|
-
research_queue_setting:
|
|
1840
|
+
research_queue_setting: 'after-victory' | 'always' | 'never',
|
|
1716
1841
|
technology_difficulty: defines.difficulty_settings.technology_difficulty,
|
|
1717
1842
|
|
|
1718
1843
|
/**
|
|
@@ -1775,7 +1900,7 @@ interface MapGenSettings {
|
|
|
1775
1900
|
autoplace_controls: {[key: string]: AutoplaceControl},
|
|
1776
1901
|
|
|
1777
1902
|
/**
|
|
1778
|
-
* Each setting in this dictionary maps the string type to the settings for that type.
|
|
1903
|
+
* Each setting in this dictionary maps the string type to the settings for that type.
|
|
1779
1904
|
*/
|
|
1780
1905
|
autoplace_settings: {[key: string]: AutoplaceSettings},
|
|
1781
1906
|
|
|
@@ -1952,6 +2077,11 @@ interface ModSetting {
|
|
|
1952
2077
|
*/
|
|
1953
2078
|
type ModSettingPrototypeFilter = ModSettingPrototypeFilterMod | ModSettingPrototypeFilterSettingType | ModSettingPrototypeFilterType
|
|
1954
2079
|
|
|
2080
|
+
/**
|
|
2081
|
+
* Used by {@link TechnologyModifier | runtime:TechnologyModifier}.
|
|
2082
|
+
*/
|
|
2083
|
+
type ModifierType = 'inserter-stack-size-bonus' | 'stack-inserter-capacity-bonus' | 'laboratory-speed' | 'character-logistic-trash-slots' | 'maximum-following-robots-count' | 'worker-robot-speed' | 'worker-robot-storage' | 'ghost-time-to-live' | 'turret-attack' | 'ammo-damage' | 'give-item' | 'gun-speed' | 'unlock-recipe' | 'character-crafting-speed' | 'character-mining-speed' | 'character-running-speed' | 'character-build-distance' | 'character-item-drop-distance' | 'character-reach-distance' | 'character-resource-reach-distance' | 'character-item-pickup-distance' | 'character-loot-pickup-distance' | 'character-inventory-slots-bonus' | 'deconstruction-time-to-live' | 'max-failed-attempts-per-tick-per-construction-queue' | 'max-successful-attempts-per-tick-per-construction-queue' | 'character-health-bonus' | 'mining-drill-productivity-bonus' | 'train-braking-force-bonus' | 'zoom-to-world-enabled' | 'zoom-to-world-ghost-building-enabled' | 'zoom-to-world-blueprint-enabled' | 'zoom-to-world-deconstruction-planner-enabled' | 'zoom-to-world-upgrade-planner-enabled' | 'zoom-to-world-selection-tool-enabled' | 'worker-robot-battery' | 'laboratory-productivity' | 'follower-robot-lifetime' | 'artillery-range' | 'nothing' | 'character-logistic-requests'
|
|
2084
|
+
|
|
1955
2085
|
interface ModuleEffectValue {
|
|
1956
2086
|
|
|
1957
2087
|
/**
|
|
@@ -2248,16 +2378,8 @@ interface PathfinderWaypoint {
|
|
|
2248
2378
|
* A single pipe connection for a given fluidbox.
|
|
2249
2379
|
*/
|
|
2250
2380
|
interface PipeConnection {
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
* One of "normal" or "underground".
|
|
2254
|
-
*/
|
|
2255
|
-
connection_type: string,
|
|
2256
|
-
|
|
2257
|
-
/**
|
|
2258
|
-
* One of "input", "output", or "input-output".
|
|
2259
|
-
*/
|
|
2260
|
-
flow_direction: string,
|
|
2381
|
+
connection_type: 'normal' | 'underground',
|
|
2382
|
+
flow_direction: 'input' | 'output' | 'input-output',
|
|
2261
2383
|
|
|
2262
2384
|
/**
|
|
2263
2385
|
* The absolute position of this connection within the entity.
|
|
@@ -2424,7 +2546,39 @@ interface PrintSettings {
|
|
|
2424
2546
|
* ```
|
|
2425
2547
|
*
|
|
2426
2548
|
*/
|
|
2427
|
-
|
|
2549
|
+
interface Product {
|
|
2550
|
+
|
|
2551
|
+
/**
|
|
2552
|
+
* Amount of the item or fluid to give. If not specified, `amount_min`, `amount_max` and `probability` must all be specified.
|
|
2553
|
+
*/
|
|
2554
|
+
amount?: number,
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Maximum amount of the item or fluid to give. Has no effect when `amount` is specified.
|
|
2558
|
+
*/
|
|
2559
|
+
amount_max?: number,
|
|
2560
|
+
|
|
2561
|
+
/**
|
|
2562
|
+
* Minimal amount of the item or fluid to give. Has no effect when `amount` is specified.
|
|
2563
|
+
*/
|
|
2564
|
+
amount_min?: number,
|
|
2565
|
+
|
|
2566
|
+
/**
|
|
2567
|
+
* How much of this product is a catalyst.
|
|
2568
|
+
*/
|
|
2569
|
+
catalyst_amount?: number,
|
|
2570
|
+
|
|
2571
|
+
/**
|
|
2572
|
+
* Prototype name of the result.
|
|
2573
|
+
*/
|
|
2574
|
+
name: string,
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* A value in range [0, 1]. Item or fluid is only given with this probability; otherwise no product is produced.
|
|
2578
|
+
*/
|
|
2579
|
+
probability?: number,
|
|
2580
|
+
type: 'item' | 'fluid'
|
|
2581
|
+
}
|
|
2428
2582
|
|
|
2429
2583
|
interface ProgrammableSpeakerAlertParameters {
|
|
2430
2584
|
alert_message: string,
|
|
@@ -2458,6 +2612,11 @@ interface ProgrammableSpeakerParameters {
|
|
|
2458
2612
|
*/
|
|
2459
2613
|
type PrototypeFilter = Array</* for type `"item"` */ ItemPrototypeFilter | /* for type `"tile"` */ TilePrototypeFilter | /* for type `"entity"` */ EntityPrototypeFilter | /* for type `"fluid"` */ FluidPrototypeFilter | /* for type `"recipe"` */ RecipePrototypeFilter | /* for type `"decorative"` */ DecorativePrototypeFilter | /* for type `"achievement"` */ AchievementPrototypeFilter | /* for type `"equipment"` */ EquipmentPrototypeFilter | /* for type `"technology"` */ TechnologyPrototypeFilter>
|
|
2460
2614
|
|
|
2615
|
+
/**
|
|
2616
|
+
* One of the following values:
|
|
2617
|
+
*/
|
|
2618
|
+
type PrototypeFilterMode = 'none' | 'whitelist' | 'blacklist'
|
|
2619
|
+
|
|
2461
2620
|
interface PrototypeHistory {
|
|
2462
2621
|
|
|
2463
2622
|
/**
|
|
@@ -2564,6 +2723,11 @@ interface ScriptRenderVertexTarget {
|
|
|
2564
2723
|
target_offset?: Vector
|
|
2565
2724
|
}
|
|
2566
2725
|
|
|
2726
|
+
/**
|
|
2727
|
+
* Scroll policy of a {@link scroll pane | runtime:LuaGuiElement}.
|
|
2728
|
+
*/
|
|
2729
|
+
type ScrollPolicy = 'never' | 'dont-show-but-allow-scrolling' | 'always' | 'auto' | 'auto-and-reserve-space'
|
|
2730
|
+
|
|
2567
2731
|
interface SelectedPrototypeData {
|
|
2568
2732
|
|
|
2569
2733
|
/**
|
|
@@ -2572,12 +2736,12 @@ interface SelectedPrototypeData {
|
|
|
2572
2736
|
base_type: string,
|
|
2573
2737
|
|
|
2574
2738
|
/**
|
|
2575
|
-
* E.g. `"tree"`.
|
|
2739
|
+
* The `type` of the prototype. E.g. `"tree"`.
|
|
2576
2740
|
*/
|
|
2577
2741
|
derived_type: string,
|
|
2578
2742
|
|
|
2579
2743
|
/**
|
|
2580
|
-
* E.g. `"tree-05"`.
|
|
2744
|
+
* The `name` of the prototype. E.g. `"tree-05"`.
|
|
2581
2745
|
*/
|
|
2582
2746
|
name: string
|
|
2583
2747
|
}
|
|
@@ -2609,11 +2773,7 @@ interface SignalID {
|
|
|
2609
2773
|
* Name of the item, fluid or virtual signal.
|
|
2610
2774
|
*/
|
|
2611
2775
|
name?: string,
|
|
2612
|
-
|
|
2613
|
-
/**
|
|
2614
|
-
* `"item"`, `"fluid"`, or `"virtual"`.
|
|
2615
|
-
*/
|
|
2616
|
-
type: string
|
|
2776
|
+
type: 'item' | 'fluid' | 'virtual'
|
|
2617
2777
|
}
|
|
2618
2778
|
|
|
2619
2779
|
/**
|
|
@@ -2767,6 +2927,11 @@ interface SteeringMapSettings {
|
|
|
2767
2927
|
*/
|
|
2768
2928
|
type SurfaceIdentification = /* It will be the index of the surface. `nauvis` has index `1`, the first surface-created surface will have index `2` and so on. */ number | /* It will be the surface name. E.g. `"nauvis"`. */ string | /* A reference to {@link LuaSurface | runtime:LuaSurface} may be passed directly. */ LuaSurface
|
|
2769
2929
|
|
|
2930
|
+
/**
|
|
2931
|
+
* State of a GUI {@link switch | runtime:LuaGuiElement::switch_state}.
|
|
2932
|
+
*/
|
|
2933
|
+
type SwitchState = 'left' | 'right' | 'none'
|
|
2934
|
+
|
|
2770
2935
|
interface TabAndContent {
|
|
2771
2936
|
content: LuaGuiElement,
|
|
2772
2937
|
tab: LuaGuiElement
|
|
@@ -2784,6 +2949,11 @@ interface TabAndContent {
|
|
|
2784
2949
|
*/
|
|
2785
2950
|
type Tags = {[key: string]: AnyBasic}
|
|
2786
2951
|
|
|
2952
|
+
/**
|
|
2953
|
+
* Target type of an {@link AmmoType | runtime:AmmoType}.
|
|
2954
|
+
*/
|
|
2955
|
+
type TargetType = /* Fires at an entity. */ 'entity' | /* Fires directly at a position. */ 'position' | /* Fires in a direction. */ 'direction'
|
|
2956
|
+
|
|
2787
2957
|
/**
|
|
2788
2958
|
* A technology may be specified in one of three ways.
|
|
2789
2959
|
*/
|
|
@@ -2795,7 +2965,13 @@ type TechnologyIdentification = /* The technology name. */ string | /* A referen
|
|
|
2795
2965
|
* Other attributes may be specified depending on `type`:
|
|
2796
2966
|
*
|
|
2797
2967
|
*/
|
|
2798
|
-
|
|
2968
|
+
interface TechnologyModifier {
|
|
2969
|
+
|
|
2970
|
+
/**
|
|
2971
|
+
* Modifier type. Specifies which of the other fields will be available.
|
|
2972
|
+
*/
|
|
2973
|
+
type: ModifierType
|
|
2974
|
+
}
|
|
2799
2975
|
|
|
2800
2976
|
/**
|
|
2801
2977
|
* Depending on the value of `filter`, the table may take additional fields. `filter` may be one of the following:
|
|
@@ -2805,6 +2981,13 @@ type TechnologyModifier = TechnologyModifierOtherTypes | TechnologyModifierAmmoD
|
|
|
2805
2981
|
*/
|
|
2806
2982
|
type TechnologyPrototypeFilter = TechnologyPrototypeFilterLevel | TechnologyPrototypeFilterMaxLevel | TechnologyPrototypeFilterResearchUnitIngredient | TechnologyPrototypeFilterTime | TechnologyPrototypeFilterUnlocksRecipe | DefaultTechnologyPrototypeFilter
|
|
2807
2983
|
|
|
2984
|
+
/**
|
|
2985
|
+
* The text is aligned so that the target position is at the given side of the text.
|
|
2986
|
+
*
|
|
2987
|
+
* For example, `"right"` aligned text means the right side of the text is at the target position. Or in other words, the target is on the right of the text.
|
|
2988
|
+
*/
|
|
2989
|
+
type TextAlign = 'left' | 'right' | 'center'
|
|
2990
|
+
|
|
2808
2991
|
interface Tile {
|
|
2809
2992
|
|
|
2810
2993
|
/**
|
|
@@ -2837,17 +3020,17 @@ type TilePrototypeFilter = TilePrototypeFilterCollisionMask | TilePrototypeFilte
|
|
|
2837
3020
|
interface TrainPathAllGoalsResult {
|
|
2838
3021
|
|
|
2839
3022
|
/**
|
|
2840
|
-
*
|
|
3023
|
+
* Array of the same length as requested goals: each field will tell if related goal is accessible for the train.
|
|
2841
3024
|
*/
|
|
2842
3025
|
accessible: boolean[],
|
|
2843
3026
|
|
|
2844
3027
|
/**
|
|
2845
|
-
* Amount of goals that are accessible
|
|
3028
|
+
* Amount of goals that are accessible.
|
|
2846
3029
|
*/
|
|
2847
3030
|
amount_accessible: number,
|
|
2848
3031
|
|
|
2849
3032
|
/**
|
|
2850
|
-
*
|
|
3033
|
+
* Array of the same length as requested goals. Only present if request type was `"all-goals-penalties"`.
|
|
2851
3034
|
*/
|
|
2852
3035
|
penalties?: number[],
|
|
2853
3036
|
|
|
@@ -2860,17 +3043,17 @@ interface TrainPathAllGoalsResult {
|
|
|
2860
3043
|
interface TrainPathAnyGoalResult {
|
|
2861
3044
|
|
|
2862
3045
|
/**
|
|
2863
|
-
* True if any goal was accessible
|
|
3046
|
+
* True if any goal was accessible.
|
|
2864
3047
|
*/
|
|
2865
3048
|
found_path: boolean,
|
|
2866
3049
|
|
|
2867
3050
|
/**
|
|
2868
|
-
* If any goal was accessible, this gives index of the particular goal that was found
|
|
3051
|
+
* If any goal was accessible, this gives index of the particular goal that was found.
|
|
2869
3052
|
*/
|
|
2870
3053
|
goal_index?: number,
|
|
2871
3054
|
|
|
2872
3055
|
/**
|
|
2873
|
-
* Penalty of the path to goal if a goal was accessible
|
|
3056
|
+
* Penalty of the path to goal if a goal was accessible.
|
|
2874
3057
|
*/
|
|
2875
3058
|
penalty?: number,
|
|
2876
3059
|
|
|
@@ -2888,22 +3071,22 @@ interface TrainPathFinderPathResult {
|
|
|
2888
3071
|
found_path: boolean,
|
|
2889
3072
|
|
|
2890
3073
|
/**
|
|
2891
|
-
* If path was found, provides index of the specific goal to which the path goes to
|
|
3074
|
+
* If path was found, provides index of the specific goal to which the path goes to.
|
|
2892
3075
|
*/
|
|
2893
3076
|
goal_index?: number,
|
|
2894
3077
|
|
|
2895
3078
|
/**
|
|
2896
|
-
* If path was found, tells if the path was reached from the from_front or train's front end.
|
|
3079
|
+
* If path was found, tells if the path was reached from the `from_front` or train's front end.
|
|
2897
3080
|
*/
|
|
2898
3081
|
is_front?: boolean,
|
|
2899
3082
|
|
|
2900
3083
|
/**
|
|
2901
|
-
* Only returned if return_path was set to true and path was found. Contains all rails in order that are part of the found path
|
|
3084
|
+
* Only returned if `return_path` was set to true and path was found. Contains all rails in order that are part of the found path.
|
|
2902
3085
|
*/
|
|
2903
3086
|
path?: LuaEntity[],
|
|
2904
3087
|
|
|
2905
3088
|
/**
|
|
2906
|
-
* Penalty of the path to goal if path was found
|
|
3089
|
+
* Penalty of the path to goal if path was found.
|
|
2907
3090
|
*/
|
|
2908
3091
|
penalty?: number,
|
|
2909
3092
|
|
|
@@ -2913,64 +3096,15 @@ interface TrainPathFinderPathResult {
|
|
|
2913
3096
|
steps_count: number,
|
|
2914
3097
|
|
|
2915
3098
|
/**
|
|
2916
|
-
* If path was found, provides total length of all rails of the path
|
|
3099
|
+
* If path was found, provides total length of all rails of the path.
|
|
2917
3100
|
*/
|
|
2918
3101
|
total_length?: number
|
|
2919
3102
|
}
|
|
2920
3103
|
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
*/
|
|
2926
|
-
allow_path_within_segment_back?: boolean,
|
|
2927
|
-
|
|
2928
|
-
/**
|
|
2929
|
-
* Only relevant if from_front is given. Defaults to true. Providing false will cause the pathfinder to reject a path that starts on front and ends within the same segment as the path would be too short to provide correct alignment with a goal.
|
|
2930
|
-
*/
|
|
2931
|
-
allow_path_within_segment_front?: boolean,
|
|
2932
|
-
|
|
2933
|
-
/**
|
|
2934
|
-
* Manually provided starting back of the train.
|
|
2935
|
-
*/
|
|
2936
|
-
from_back?: RailEnd,
|
|
2937
|
-
|
|
2938
|
-
/**
|
|
2939
|
-
* Manually provided starting front of the train.
|
|
2940
|
-
*/
|
|
2941
|
-
from_front?: RailEnd,
|
|
2942
|
-
goals: Array<TrainStopGoal | RailEnd>,
|
|
2943
|
-
|
|
2944
|
-
/**
|
|
2945
|
-
* Defaults to false. If set to true, pathfinder will not return a path that cannot have its beginning immediately reserved causing train to stop inside of intersection.
|
|
2946
|
-
*/
|
|
2947
|
-
in_chain_signal_section?: boolean,
|
|
2948
|
-
|
|
2949
|
-
/**
|
|
2950
|
-
* Only relevant if request type is "path". Returning a full path is expensive due to multiple LuaEntity created. In order for path to be returned, true must be provided here. Defaults to false in which case a path will not be provided.
|
|
2951
|
-
*/
|
|
2952
|
-
return_path?: boolean,
|
|
2953
|
-
|
|
2954
|
-
/**
|
|
2955
|
-
* Only relevant if none of from_front/from_back was provied in which case from_front and from_back are deduced from the train. Selects which train ends should be considered as starts. Possible values: "respect-movement-direction", "any-direction-with-locomotives". Defaults to "any-direction-with-locomotives"
|
|
2956
|
-
*/
|
|
2957
|
-
search_direction?: string,
|
|
2958
|
-
|
|
2959
|
-
/**
|
|
2960
|
-
* Maximum amount of steps pathfinder is allowed to perform
|
|
2961
|
-
*/
|
|
2962
|
-
steps_limit?: number,
|
|
2963
|
-
|
|
2964
|
-
/**
|
|
2965
|
-
* Mandatory if from_front and from_back are not provided, optional otherwise. Selects a context for the pathfinder to decide which train to exclude from penalties and which signals are considered possible to reacquire. If from_front and from_back are not provided, then it is also used to collect front and back ends for the search
|
|
2966
|
-
*/
|
|
2967
|
-
train?: LuaTrain,
|
|
2968
|
-
|
|
2969
|
-
/**
|
|
2970
|
-
* Request type. "path", "any-goal-accessible", "all-goals-accessible" or "all-goals-penalties". Defaults to "path"
|
|
2971
|
-
*/
|
|
2972
|
-
type?: string
|
|
2973
|
-
}
|
|
3104
|
+
/**
|
|
3105
|
+
* A {@link string | runtime:string} specifying the type of request for {@link LuaGameScript::request_train_path | runtime:LuaGameScript::request_train_path}.
|
|
3106
|
+
*/
|
|
3107
|
+
type TrainPathRequestType = /* The method will return {@link TrainPathFinderPathResult | runtime:TrainPathFinderPathResult}. */ 'path' | /* The method will return {@link TrainPathAnyGoalResult | runtime:TrainPathAnyGoalResult}. */ 'any-goal-accessible' | /* The method will return {@link TrainPathAllGoalsResult | runtime:TrainPathAllGoalsResult}. */ 'all-goals-accessible' | /* The method will return {@link TrainPathAllGoalsResult | runtime:TrainPathAllGoalsResult} with `penalties`. */ 'all-goals-penalties'
|
|
2974
3108
|
|
|
2975
3109
|
interface TrainSchedule {
|
|
2976
3110
|
|
|
@@ -3008,7 +3142,7 @@ interface TrainScheduleRecord {
|
|
|
3008
3142
|
interface TrainStopGoal {
|
|
3009
3143
|
|
|
3010
3144
|
/**
|
|
3011
|
-
* Train stop target. Must be connected to rail (LuaEntity::connected_rail returns valid LuaEntity)
|
|
3145
|
+
* Train stop target. Must be connected to rail ({@link LuaEntity::connected_rail | runtime:LuaEntity::connected_rail} returns valid LuaEntity).
|
|
3012
3146
|
*/
|
|
3013
3147
|
train_stop: LuaEntity
|
|
3014
3148
|
}
|
|
@@ -3016,24 +3150,24 @@ interface TrainStopGoal {
|
|
|
3016
3150
|
interface TriggerDelivery {
|
|
3017
3151
|
source_effects: TriggerEffectItem[],
|
|
3018
3152
|
target_effects: TriggerEffectItem[],
|
|
3019
|
-
|
|
3020
|
-
/**
|
|
3021
|
-
* One of `"instant"`, `"projectile"`, `"flame-thrower"`, `"beam"`, `"stream"`, `"artillery"`.
|
|
3022
|
-
*/
|
|
3023
|
-
type: string
|
|
3153
|
+
type: 'instant' | 'projectile' | 'flame-thrower' | 'beam' | 'stream' | 'artillery'
|
|
3024
3154
|
}
|
|
3025
3155
|
|
|
3026
3156
|
interface TriggerEffectItem {
|
|
3027
3157
|
affects_target: boolean,
|
|
3158
|
+
damage_type_filters?: DamageTypeFilters,
|
|
3159
|
+
probability: number,
|
|
3028
3160
|
repeat_count: number,
|
|
3161
|
+
repeat_count_deviation: number,
|
|
3029
3162
|
show_in_tooltip: boolean,
|
|
3030
|
-
|
|
3031
|
-
/**
|
|
3032
|
-
* One of`"damage"`, `"create-entity"`, `"create-explosion"`, `"create-fire"`, `"create-smoke"`, `"create-trivial-smoke"`, `"create-particle"`, `"create-sticker"`, `"nested-result"`, `"play-sound"`, `"push-back"`, `"destroy-cliffs"`, `"show-explosion-on-chart"`, `"insert-item"`, `"script"`.
|
|
3033
|
-
*/
|
|
3034
|
-
type: string
|
|
3163
|
+
type: TriggerEffectItemType
|
|
3035
3164
|
}
|
|
3036
3165
|
|
|
3166
|
+
/**
|
|
3167
|
+
* Used by {@link TriggerEffectItem | runtime:TriggerEffectItem}.
|
|
3168
|
+
*/
|
|
3169
|
+
type TriggerEffectItemType = 'damage' | 'create-entity' | 'create-explosion' | 'create-fire' | 'create-smoke' | 'create-trivial-smoke' | 'create-particle' | 'create-sticker' | 'create-decorative' | 'nested-result' | 'play-sound' | 'push-back' | 'destroy-cliffs' | 'show-explosion-on-chart' | 'insert-item' | 'script' | 'set-tile' | 'invoke-tile-trigger' | 'destroy-decoratives' | 'camera-effect'
|
|
3170
|
+
|
|
3037
3171
|
interface TriggerItem {
|
|
3038
3172
|
action_delivery?: TriggerDelivery[],
|
|
3039
3173
|
|
|
@@ -3052,13 +3186,10 @@ interface TriggerItem {
|
|
|
3052
3186
|
*/
|
|
3053
3187
|
force: ForceCondition,
|
|
3054
3188
|
ignore_collision_condition: boolean,
|
|
3189
|
+
probability: number,
|
|
3055
3190
|
repeat_count: number,
|
|
3056
3191
|
trigger_target_mask: TriggerTargetMask,
|
|
3057
|
-
|
|
3058
|
-
/**
|
|
3059
|
-
* One of `"direct"`, `"area"`, `"line"`, `"cluster"`.
|
|
3060
|
-
*/
|
|
3061
|
-
type: string
|
|
3192
|
+
type: 'direct' | 'area' | 'line' | 'cluster'
|
|
3062
3193
|
}
|
|
3063
3194
|
|
|
3064
3195
|
/**
|
|
@@ -3149,11 +3280,7 @@ interface UpgradeFilter {
|
|
|
3149
3280
|
* Name of the item, or entity.
|
|
3150
3281
|
*/
|
|
3151
3282
|
name?: string,
|
|
3152
|
-
|
|
3153
|
-
/**
|
|
3154
|
-
* `"item"`, or `"entity"`.
|
|
3155
|
-
*/
|
|
3156
|
-
type: string
|
|
3283
|
+
type: 'item' | 'entity'
|
|
3157
3284
|
}
|
|
3158
3285
|
|
|
3159
3286
|
/**
|
|
@@ -3174,12 +3301,19 @@ interface VehicleAutomaticTargetingParameters {
|
|
|
3174
3301
|
auto_target_without_gunner: boolean
|
|
3175
3302
|
}
|
|
3176
3303
|
|
|
3304
|
+
/**
|
|
3305
|
+
* The text is aligned so that the target position is at the given side of the text.
|
|
3306
|
+
*
|
|
3307
|
+
* For example, `"top"` aligned text means the top of the text is at the target position. Or in other words, the target is at the top of the text.
|
|
3308
|
+
*/
|
|
3309
|
+
type VerticalTextAlign = 'top' | 'middle' | 'baseline' | 'bottom'
|
|
3310
|
+
|
|
3177
3311
|
interface WaitCondition {
|
|
3178
3312
|
|
|
3179
3313
|
/**
|
|
3180
|
-
*
|
|
3314
|
+
* Specifies how this condition is to be compared with the preceding conditions in the corresponding `wait_conditions` array.
|
|
3181
3315
|
*/
|
|
3182
|
-
compare_type:
|
|
3316
|
+
compare_type: 'and' | 'or',
|
|
3183
3317
|
|
|
3184
3318
|
/**
|
|
3185
3319
|
* Only present when `type` is `"item_count"`, `"circuit"` or `"fluid_count"`, and a circuit condition is configured.
|
|
@@ -3190,13 +3324,14 @@ interface WaitCondition {
|
|
|
3190
3324
|
* Number of ticks to wait when `type` is `"time"`, or number of ticks of inactivity when `type` is `"inactivity"`.
|
|
3191
3325
|
*/
|
|
3192
3326
|
ticks?: number,
|
|
3193
|
-
|
|
3194
|
-
/**
|
|
3195
|
-
* One of `"time"`, `"inactivity"`, `"full"`, `"empty"`, `"item_count"`, `"circuit"`, `"robots_inactive"`, `"fluid_count"`, `"passenger_present"`, `"passenger_not_present"`.
|
|
3196
|
-
*/
|
|
3197
|
-
type: string
|
|
3327
|
+
type: WaitConditionType
|
|
3198
3328
|
}
|
|
3199
3329
|
|
|
3330
|
+
/**
|
|
3331
|
+
* Type of a {@link WaitCondition | runtime:WaitCondition}.
|
|
3332
|
+
*/
|
|
3333
|
+
type WaitConditionType = 'time' | 'full' | 'empty' | 'item_count' | 'circuit' | 'inactivity' | 'robots_inactive' | 'fluid_count' | 'passenger_present' | 'passenger_not_present'
|
|
3334
|
+
|
|
3200
3335
|
interface WireConnectionDefinition {
|
|
3201
3336
|
|
|
3202
3337
|
/**
|
|
@@ -3238,9 +3373,9 @@ interface BaseAchievementPrototypeFilter {
|
|
|
3238
3373
|
invert?: boolean,
|
|
3239
3374
|
|
|
3240
3375
|
/**
|
|
3241
|
-
* How to combine this with the previous filter.
|
|
3376
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
3242
3377
|
*/
|
|
3243
|
-
mode?:
|
|
3378
|
+
mode?: 'or' | 'and'
|
|
3244
3379
|
}
|
|
3245
3380
|
|
|
3246
3381
|
interface AchievementPrototypeFilterType extends BaseAchievementPrototypeFilter {
|
|
@@ -3264,83 +3399,12 @@ interface DefaultAchievementPrototypeFilter extends BaseAchievementPrototypeFilt
|
|
|
3264
3399
|
filter: 'allowed-without-fight'
|
|
3265
3400
|
}
|
|
3266
3401
|
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
/**
|
|
3275
|
-
* Multiplier applied to the ammo consumption of an attack.
|
|
3276
|
-
*/
|
|
3277
|
-
ammo_consumption_modifier: number,
|
|
3278
|
-
ammo_type?: AmmoType,
|
|
3279
|
-
|
|
3280
|
-
/**
|
|
3281
|
-
* Minimum amount of ticks between shots. If this is less than `1`, multiple shots can be performed per tick.
|
|
3282
|
-
*/
|
|
3283
|
-
cooldown: number,
|
|
3284
|
-
|
|
3285
|
-
/**
|
|
3286
|
-
* Multiplier applied to the damage of an attack.
|
|
3287
|
-
*/
|
|
3288
|
-
damage_modifier: number,
|
|
3289
|
-
|
|
3290
|
-
/**
|
|
3291
|
-
* When searching for the nearest enemy to attack, `fire_penalty` is added to the enemy's distance if they are on fire.
|
|
3292
|
-
*/
|
|
3293
|
-
fire_penalty: number,
|
|
3294
|
-
|
|
3295
|
-
/**
|
|
3296
|
-
* When searching for an enemy to attack, a higher `health_penalty` will discourage targeting enemies with high health. A negative penalty will do the opposite.
|
|
3297
|
-
*/
|
|
3298
|
-
health_penalty: number,
|
|
3299
|
-
|
|
3300
|
-
/**
|
|
3301
|
-
* If less than `range`, the entity will choose a random distance between `range` and `min_attack_distance` and attack from that distance. Used for spitters.
|
|
3302
|
-
*/
|
|
3303
|
-
min_attack_distance: number,
|
|
3304
|
-
|
|
3305
|
-
/**
|
|
3306
|
-
* Minimum range of attack. Used with flamethrower turrets to prevent self-immolation.
|
|
3307
|
-
*/
|
|
3308
|
-
min_range: number,
|
|
3309
|
-
movement_slow_down_cooldown: number,
|
|
3310
|
-
movement_slow_down_factor: number,
|
|
3311
|
-
|
|
3312
|
-
/**
|
|
3313
|
-
* Maximum range of attack.
|
|
3314
|
-
*/
|
|
3315
|
-
range: number,
|
|
3316
|
-
|
|
3317
|
-
/**
|
|
3318
|
-
* Defines how the range is determined. Either `'center-to-center'` or `'bounding-box-to-bounding-box'`.
|
|
3319
|
-
*/
|
|
3320
|
-
range_mode: string,
|
|
3321
|
-
|
|
3322
|
-
/**
|
|
3323
|
-
* When searching for an enemy to attack, a higher `rotate_penalty` will discourage targeting enemies that would take longer to turn to face.
|
|
3324
|
-
*/
|
|
3325
|
-
rotate_penalty: number,
|
|
3326
|
-
|
|
3327
|
-
/**
|
|
3328
|
-
* The arc that the entity can attack in as a fraction of a circle. A value of `1` means the full 360 degrees.
|
|
3329
|
-
*/
|
|
3330
|
-
turn_range: number,
|
|
3331
|
-
|
|
3332
|
-
/**
|
|
3333
|
-
* Number of ticks it takes for the weapon to actually shoot after it has been ordered to do so.
|
|
3334
|
-
*/
|
|
3335
|
-
warmup: number
|
|
3336
|
-
}
|
|
3337
|
-
|
|
3338
|
-
interface AttackParametersProjectile extends BaseAttackParameters {
|
|
3339
|
-
|
|
3340
|
-
/**
|
|
3341
|
-
* The type of AttackParameter. One of `'projectile'`, `'stream'` or `'beam'`.
|
|
3342
|
-
*/
|
|
3343
|
-
type: 'projectile',
|
|
3402
|
+
/**
|
|
3403
|
+
* @remarks
|
|
3404
|
+
* Applies to `projectile` variant case
|
|
3405
|
+
*
|
|
3406
|
+
*/
|
|
3407
|
+
interface AttackParametersProjectile extends AttackParameters {
|
|
3344
3408
|
projectile_center: Vector,
|
|
3345
3409
|
projectile_creation_distance: number,
|
|
3346
3410
|
projectile_creation_parameters?: CircularProjectileCreationSpecification[],
|
|
@@ -3348,12 +3412,12 @@ interface AttackParametersProjectile extends BaseAttackParameters {
|
|
|
3348
3412
|
shell_particle?: CircularParticleCreationSpecification
|
|
3349
3413
|
}
|
|
3350
3414
|
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3415
|
+
/**
|
|
3416
|
+
* @remarks
|
|
3417
|
+
* Applies to `stream` variant case
|
|
3418
|
+
*
|
|
3419
|
+
*/
|
|
3420
|
+
interface AttackParametersStream extends AttackParameters {
|
|
3357
3421
|
fluid_consumption: number,
|
|
3358
3422
|
fluids?: AttackParameterFluid[],
|
|
3359
3423
|
gun_barrel_length: number,
|
|
@@ -3361,24 +3425,12 @@ interface AttackParametersStream extends BaseAttackParameters {
|
|
|
3361
3425
|
projectile_creation_parameters?: CircularProjectileCreationSpecification[]
|
|
3362
3426
|
}
|
|
3363
3427
|
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
}
|
|
3371
|
-
|
|
3372
|
-
interface BaseCapsuleAction {
|
|
3373
|
-
|
|
3374
|
-
}
|
|
3375
|
-
|
|
3376
|
-
interface CapsuleActionArtilleryRemote extends BaseCapsuleAction {
|
|
3377
|
-
|
|
3378
|
-
/**
|
|
3379
|
-
* One of `"throw"`, `"equipment-remote"`, `"use-on-self"`, `"artillery-remote"`, `"destroy-cliffs"`.
|
|
3380
|
-
*/
|
|
3381
|
-
type: 'artillery-remote',
|
|
3428
|
+
/**
|
|
3429
|
+
* @remarks
|
|
3430
|
+
* Applies to `artillery-remote` variant case
|
|
3431
|
+
*
|
|
3432
|
+
*/
|
|
3433
|
+
interface CapsuleActionArtilleryRemote extends CapsuleAction {
|
|
3382
3434
|
|
|
3383
3435
|
/**
|
|
3384
3436
|
* Name of the {@link flare prototype | runtime:LuaEntityPrototype}.
|
|
@@ -3386,23 +3438,23 @@ interface CapsuleActionArtilleryRemote extends BaseCapsuleAction {
|
|
|
3386
3438
|
flare: string
|
|
3387
3439
|
}
|
|
3388
3440
|
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3441
|
+
/**
|
|
3442
|
+
* @remarks
|
|
3443
|
+
* Applies to `destroy-cliffs` variant case
|
|
3444
|
+
*
|
|
3445
|
+
*/
|
|
3446
|
+
interface CapsuleActionDestroyCliffs extends CapsuleAction {
|
|
3395
3447
|
attack_parameters: AttackParameters,
|
|
3396
3448
|
radius: number,
|
|
3397
3449
|
timeout: number
|
|
3398
3450
|
}
|
|
3399
3451
|
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3452
|
+
/**
|
|
3453
|
+
* @remarks
|
|
3454
|
+
* Applies to `equipment-remote` variant case
|
|
3455
|
+
*
|
|
3456
|
+
*/
|
|
3457
|
+
interface CapsuleActionEquipmentRemote extends CapsuleAction {
|
|
3406
3458
|
|
|
3407
3459
|
/**
|
|
3408
3460
|
* Name of the {@link LuaEquipmentPrototype | runtime:LuaEquipmentPrototype}.
|
|
@@ -3410,12 +3462,12 @@ interface CapsuleActionEquipmentRemote extends BaseCapsuleAction {
|
|
|
3410
3462
|
equipment: string
|
|
3411
3463
|
}
|
|
3412
3464
|
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3465
|
+
/**
|
|
3466
|
+
* @remarks
|
|
3467
|
+
* Applies to `throw` variant case
|
|
3468
|
+
*
|
|
3469
|
+
*/
|
|
3470
|
+
interface CapsuleActionThrow extends CapsuleAction {
|
|
3419
3471
|
attack_parameters: AttackParameters,
|
|
3420
3472
|
|
|
3421
3473
|
/**
|
|
@@ -3424,12 +3476,12 @@ interface CapsuleActionThrow extends BaseCapsuleAction {
|
|
|
3424
3476
|
uses_stack: boolean
|
|
3425
3477
|
}
|
|
3426
3478
|
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3479
|
+
/**
|
|
3480
|
+
* @remarks
|
|
3481
|
+
* Applies to `use-on-self` variant case
|
|
3482
|
+
*
|
|
3483
|
+
*/
|
|
3484
|
+
interface CapsuleActionUseOnSelf extends CapsuleAction {
|
|
3433
3485
|
attack_parameters: AttackParameters
|
|
3434
3486
|
}
|
|
3435
3487
|
|
|
@@ -3639,9 +3691,9 @@ interface BaseDecorativePrototypeFilter {
|
|
|
3639
3691
|
invert?: boolean,
|
|
3640
3692
|
|
|
3641
3693
|
/**
|
|
3642
|
-
* How to combine this with the previous filter.
|
|
3694
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
3643
3695
|
*/
|
|
3644
|
-
mode?:
|
|
3696
|
+
mode?: 'or' | 'and'
|
|
3645
3697
|
}
|
|
3646
3698
|
|
|
3647
3699
|
interface DecorativePrototypeFilterCollisionMask extends BaseDecorativePrototypeFilter {
|
|
@@ -3674,9 +3726,9 @@ interface BaseEntityPrototypeFilter {
|
|
|
3674
3726
|
invert?: boolean,
|
|
3675
3727
|
|
|
3676
3728
|
/**
|
|
3677
|
-
* How to combine this with the previous filter.
|
|
3729
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
3678
3730
|
*/
|
|
3679
|
-
mode?:
|
|
3731
|
+
mode?: 'or' | 'and'
|
|
3680
3732
|
}
|
|
3681
3733
|
|
|
3682
3734
|
interface EntityPrototypeFilterBuildBaseEvolutionRequirement extends BaseEntityPrototypeFilter {
|
|
@@ -3700,11 +3752,7 @@ interface EntityPrototypeFilterCollisionMask extends BaseEntityPrototypeFilter {
|
|
|
3700
3752
|
*/
|
|
3701
3753
|
filter: 'collision-mask',
|
|
3702
3754
|
mask: CollisionMask | CollisionMaskWithFlags,
|
|
3703
|
-
|
|
3704
|
-
/**
|
|
3705
|
-
* How to filter: `"collides"`, `"layers-equals"`, `"contains-any"` or `"contains-all"`
|
|
3706
|
-
*/
|
|
3707
|
-
mask_mode: string
|
|
3755
|
+
mask_mode: 'collides' | 'layers-equals' | 'contains-any' | 'contains-all'
|
|
3708
3756
|
}
|
|
3709
3757
|
|
|
3710
3758
|
interface EntityPrototypeFilterCraftingCategory extends BaseEntityPrototypeFilter {
|
|
@@ -3715,7 +3763,7 @@ interface EntityPrototypeFilterCraftingCategory extends BaseEntityPrototypeFilte
|
|
|
3715
3763
|
filter: 'crafting-category',
|
|
3716
3764
|
|
|
3717
3765
|
/**
|
|
3718
|
-
* Matches if the prototype is for a crafting machine with this crafting category.
|
|
3766
|
+
* Matches if the prototype is for a crafting machine with this {@link crafting category | runtime:LuaEntityPrototype::crafting_categories}.
|
|
3719
3767
|
*/
|
|
3720
3768
|
crafting_category: string
|
|
3721
3769
|
}
|
|
@@ -3740,11 +3788,7 @@ interface EntityPrototypeFilterFlag extends BaseEntityPrototypeFilter {
|
|
|
3740
3788
|
* The condition to filter on. One of `"flying-robot"`, `"robot-with-logistics-interface"`, `"rail"`, `"ghost"`, `"explosion"`, `"vehicle"`, `"crafting-machine"`, `"rolling-stock"`, `"turret"`, `"transport-belt-connectable"`, `"wall-connectable"`, `"buildable"`, `"placable-in-editor"`, `"clonable"`, `"selectable"`, `"hidden"`, `"entity-with-health"`, `"building"`, `"fast-replaceable"`, `"uses-direction"`, `"minable"`, `"circuit-connectable"`, `"autoplace"`, `"blueprintable"`, `"item-to-place"`, `"name"`, `"type"`, `"collision-mask"`, `"flag"`, `"build-base-evolution-requirement"`, `"selection-priority"`, `"emissions"`, `"crafting-category"`.
|
|
3741
3789
|
*/
|
|
3742
3790
|
filter: 'flag',
|
|
3743
|
-
|
|
3744
|
-
/**
|
|
3745
|
-
* One of the values in {@link EntityPrototypeFlags | runtime:EntityPrototypeFlags}.
|
|
3746
|
-
*/
|
|
3747
|
-
flag: string
|
|
3791
|
+
flag: EntityPrototypeFlag
|
|
3748
3792
|
}
|
|
3749
3793
|
|
|
3750
3794
|
interface EntityPrototypeFilterName extends BaseEntityPrototypeFilter {
|
|
@@ -3803,9 +3847,9 @@ interface BaseEquipmentPrototypeFilter {
|
|
|
3803
3847
|
invert?: boolean,
|
|
3804
3848
|
|
|
3805
3849
|
/**
|
|
3806
|
-
* How to combine this with the previous filter.
|
|
3850
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
3807
3851
|
*/
|
|
3808
|
-
mode?:
|
|
3852
|
+
mode?: 'or' | 'and'
|
|
3809
3853
|
}
|
|
3810
3854
|
|
|
3811
3855
|
interface EquipmentPrototypeFilterType extends BaseEquipmentPrototypeFilter {
|
|
@@ -3837,9 +3881,9 @@ interface BaseFluidPrototypeFilter {
|
|
|
3837
3881
|
invert?: boolean,
|
|
3838
3882
|
|
|
3839
3883
|
/**
|
|
3840
|
-
* How to combine this with the previous filter.
|
|
3884
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
3841
3885
|
*/
|
|
3842
|
-
mode?:
|
|
3886
|
+
mode?: 'or' | 'and'
|
|
3843
3887
|
}
|
|
3844
3888
|
|
|
3845
3889
|
interface FluidPrototypeFilterDefaultTemperature extends BaseFluidPrototypeFilter {
|
|
@@ -3960,16 +4004,12 @@ interface DefaultFluidPrototypeFilter extends BaseFluidPrototypeFilter {
|
|
|
3960
4004
|
filter: 'hidden'
|
|
3961
4005
|
}
|
|
3962
4006
|
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
/**
|
|
3970
|
-
* This determines which of the following fields will be required. Must be one of `"nowhere"` (will remove the arrow entirely), `"goal"` (will point to the current goal), `"entity_info"`, `"active_window"`, `"entity"`, `"position"`, `"crafting_queue"` or `"item_stack"` (will point to a given item stack in an inventory). Depending on this value, other fields may have to be specified.
|
|
3971
|
-
*/
|
|
3972
|
-
type: 'crafting_queue',
|
|
4007
|
+
/**
|
|
4008
|
+
* @remarks
|
|
4009
|
+
* Applies to `crafting_queue` variant case
|
|
4010
|
+
*
|
|
4011
|
+
*/
|
|
4012
|
+
interface GuiArrowSpecificationCraftingQueue extends GuiArrowSpecification {
|
|
3973
4013
|
|
|
3974
4014
|
/**
|
|
3975
4015
|
* Index in the crafting queue to point to.
|
|
@@ -3977,21 +4017,21 @@ interface GuiArrowSpecificationCraftingQueue extends BaseGuiArrowSpecification {
|
|
|
3977
4017
|
crafting_queueindex: number
|
|
3978
4018
|
}
|
|
3979
4019
|
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
4020
|
+
/**
|
|
4021
|
+
* @remarks
|
|
4022
|
+
* Applies to `entity` variant case
|
|
4023
|
+
*
|
|
4024
|
+
*/
|
|
4025
|
+
interface GuiArrowSpecificationEntity extends GuiArrowSpecification {
|
|
3986
4026
|
entity: LuaEntity
|
|
3987
4027
|
}
|
|
3988
4028
|
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
4029
|
+
/**
|
|
4030
|
+
* @remarks
|
|
4031
|
+
* Applies to `item_stack` variant case
|
|
4032
|
+
*
|
|
4033
|
+
*/
|
|
4034
|
+
interface GuiArrowSpecificationItemStack extends GuiArrowSpecification {
|
|
3995
4035
|
|
|
3996
4036
|
/**
|
|
3997
4037
|
* Which inventory the stack is in.
|
|
@@ -4002,54 +4042,24 @@ interface GuiArrowSpecificationItemStack extends BaseGuiArrowSpecification {
|
|
|
4002
4042
|
* Which stack to point to.
|
|
4003
4043
|
*/
|
|
4004
4044
|
item_stack_index: number,
|
|
4005
|
-
|
|
4006
|
-
/**
|
|
4007
|
-
* Must be either `"player"`, `"target"`, `"player-quickbar"` or `"player-equipment-bar"`.
|
|
4008
|
-
*/
|
|
4009
|
-
source: string
|
|
4045
|
+
source: 'player' | 'target' | 'player-quickbar' | 'player-equipment-bar'
|
|
4010
4046
|
}
|
|
4011
4047
|
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4048
|
+
/**
|
|
4049
|
+
* @remarks
|
|
4050
|
+
* Applies to `position` variant case
|
|
4051
|
+
*
|
|
4052
|
+
*/
|
|
4053
|
+
interface GuiArrowSpecificationPosition extends GuiArrowSpecification {
|
|
4018
4054
|
position: MapPosition
|
|
4019
4055
|
}
|
|
4020
4056
|
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
}
|
|
4028
|
-
|
|
4029
|
-
interface BaseIngredient {
|
|
4030
|
-
|
|
4031
|
-
/**
|
|
4032
|
-
* Amount of the item or fluid.
|
|
4033
|
-
*/
|
|
4034
|
-
amount: number,
|
|
4035
|
-
|
|
4036
|
-
/**
|
|
4037
|
-
* How much of this ingredient is a catalyst.
|
|
4038
|
-
*/
|
|
4039
|
-
catalyst_amount?: number,
|
|
4040
|
-
|
|
4041
|
-
/**
|
|
4042
|
-
* Prototype name of the required item or fluid.
|
|
4043
|
-
*/
|
|
4044
|
-
name: string
|
|
4045
|
-
}
|
|
4046
|
-
|
|
4047
|
-
interface IngredientFluid extends BaseIngredient {
|
|
4048
|
-
|
|
4049
|
-
/**
|
|
4050
|
-
* `"item"` or `"fluid"`.
|
|
4051
|
-
*/
|
|
4052
|
-
type: 'fluid',
|
|
4057
|
+
/**
|
|
4058
|
+
* @remarks
|
|
4059
|
+
* Applies to `fluid` variant case
|
|
4060
|
+
*
|
|
4061
|
+
*/
|
|
4062
|
+
interface IngredientFluid extends Ingredient {
|
|
4053
4063
|
|
|
4054
4064
|
/**
|
|
4055
4065
|
* The maximum fluid temperature allowed.
|
|
@@ -4062,14 +4072,6 @@ interface IngredientFluid extends BaseIngredient {
|
|
|
4062
4072
|
minimum_temperature?: number
|
|
4063
4073
|
}
|
|
4064
4074
|
|
|
4065
|
-
interface DefaultIngredient extends BaseIngredient {
|
|
4066
|
-
|
|
4067
|
-
/**
|
|
4068
|
-
* `"item"` or `"fluid"`.
|
|
4069
|
-
*/
|
|
4070
|
-
type: 'item'
|
|
4071
|
-
}
|
|
4072
|
-
|
|
4073
4075
|
interface BaseItemPrototypeFilter {
|
|
4074
4076
|
|
|
4075
4077
|
/**
|
|
@@ -4078,9 +4080,9 @@ interface BaseItemPrototypeFilter {
|
|
|
4078
4080
|
invert?: boolean,
|
|
4079
4081
|
|
|
4080
4082
|
/**
|
|
4081
|
-
* How to combine this with the previous filter.
|
|
4083
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4082
4084
|
*/
|
|
4083
|
-
mode?:
|
|
4085
|
+
mode?: 'or' | 'and'
|
|
4084
4086
|
}
|
|
4085
4087
|
|
|
4086
4088
|
interface ItemPrototypeFilterBurntResult extends BaseItemPrototypeFilter {
|
|
@@ -4116,11 +4118,7 @@ interface ItemPrototypeFilterFlag extends BaseItemPrototypeFilter {
|
|
|
4116
4118
|
* The condition to filter on. One of `"tool"`, `"mergeable"`, `"item-with-inventory"`, `"selection-tool"`, `"item-with-label"`, `"has-rocket-launch-products"`, `"fuel"`, `"place-result"`, `"burnt-result"`, `"place-as-tile"`, `"placed-as-equipment-result"`, `"name"`, `"type"`, `"flag"`, `"subgroup"`, `"fuel-category"`, `"stack-size"`, `"default-request-amount"`, `"wire-count"`, `"fuel-value"`, `"fuel-acceleration-multiplier"`, `"fuel-top-speed-multiplier"`, `"fuel-emissions-multiplier"`.
|
|
4117
4119
|
*/
|
|
4118
4120
|
filter: 'flag',
|
|
4119
|
-
|
|
4120
|
-
/**
|
|
4121
|
-
* One of the values in {@link ItemPrototypeFlags | runtime:ItemPrototypeFlags}.
|
|
4122
|
-
*/
|
|
4123
|
-
flag: string
|
|
4121
|
+
flag: ItemPrototypeFlag
|
|
4124
4122
|
}
|
|
4125
4123
|
|
|
4126
4124
|
interface ItemPrototypeFilterFuelAccelerationMultiplier extends BaseItemPrototypeFilter {
|
|
@@ -4314,9 +4312,9 @@ interface BaseLuaEntityClonedEventFilter {
|
|
|
4314
4312
|
invert?: boolean,
|
|
4315
4313
|
|
|
4316
4314
|
/**
|
|
4317
|
-
* How to combine this with the previous filter.
|
|
4315
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4318
4316
|
*/
|
|
4319
|
-
mode?:
|
|
4317
|
+
mode?: 'or' | 'and'
|
|
4320
4318
|
}
|
|
4321
4319
|
|
|
4322
4320
|
interface LuaEntityClonedEventFilterGhostName extends BaseLuaEntityClonedEventFilter {
|
|
@@ -4387,9 +4385,9 @@ interface BaseLuaEntityDamagedEventFilter {
|
|
|
4387
4385
|
invert?: boolean,
|
|
4388
4386
|
|
|
4389
4387
|
/**
|
|
4390
|
-
* How to combine this with the previous filter.
|
|
4388
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4391
4389
|
*/
|
|
4392
|
-
mode?:
|
|
4390
|
+
mode?: 'or' | 'and'
|
|
4393
4391
|
}
|
|
4394
4392
|
|
|
4395
4393
|
interface LuaEntityDamagedEventFilterDamageType extends BaseLuaEntityDamagedEventFilter {
|
|
@@ -4515,9 +4513,9 @@ interface BaseLuaEntityDeconstructionCancelledEventFilter {
|
|
|
4515
4513
|
invert?: boolean,
|
|
4516
4514
|
|
|
4517
4515
|
/**
|
|
4518
|
-
* How to combine this with the previous filter.
|
|
4516
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4519
4517
|
*/
|
|
4520
|
-
mode?:
|
|
4518
|
+
mode?: 'or' | 'and'
|
|
4521
4519
|
}
|
|
4522
4520
|
|
|
4523
4521
|
interface LuaEntityDeconstructionCancelledEventFilterGhostName extends BaseLuaEntityDeconstructionCancelledEventFilter {
|
|
@@ -4588,9 +4586,9 @@ interface BaseLuaEntityDiedEventFilter {
|
|
|
4588
4586
|
invert?: boolean,
|
|
4589
4587
|
|
|
4590
4588
|
/**
|
|
4591
|
-
* How to combine this with the previous filter.
|
|
4589
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4592
4590
|
*/
|
|
4593
|
-
mode?:
|
|
4591
|
+
mode?: 'or' | 'and'
|
|
4594
4592
|
}
|
|
4595
4593
|
|
|
4596
4594
|
interface LuaEntityDiedEventFilterGhostName extends BaseLuaEntityDiedEventFilter {
|
|
@@ -4661,9 +4659,9 @@ interface BaseLuaEntityMarkedForDeconstructionEventFilter {
|
|
|
4661
4659
|
invert?: boolean,
|
|
4662
4660
|
|
|
4663
4661
|
/**
|
|
4664
|
-
* How to combine this with the previous filter.
|
|
4662
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4665
4663
|
*/
|
|
4666
|
-
mode?:
|
|
4664
|
+
mode?: 'or' | 'and'
|
|
4667
4665
|
}
|
|
4668
4666
|
|
|
4669
4667
|
interface LuaEntityMarkedForDeconstructionEventFilterGhostName extends BaseLuaEntityMarkedForDeconstructionEventFilter {
|
|
@@ -4734,9 +4732,9 @@ interface BaseLuaEntityMarkedForUpgradeEventFilter {
|
|
|
4734
4732
|
invert?: boolean,
|
|
4735
4733
|
|
|
4736
4734
|
/**
|
|
4737
|
-
* How to combine this with the previous filter.
|
|
4735
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4738
4736
|
*/
|
|
4739
|
-
mode?:
|
|
4737
|
+
mode?: 'or' | 'and'
|
|
4740
4738
|
}
|
|
4741
4739
|
|
|
4742
4740
|
interface LuaEntityMarkedForUpgradeEventFilterGhostName extends BaseLuaEntityMarkedForUpgradeEventFilter {
|
|
@@ -4807,9 +4805,9 @@ interface BaseLuaPlayerBuiltEntityEventFilter {
|
|
|
4807
4805
|
invert?: boolean,
|
|
4808
4806
|
|
|
4809
4807
|
/**
|
|
4810
|
-
* How to combine this with the previous filter.
|
|
4808
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4811
4809
|
*/
|
|
4812
|
-
mode?:
|
|
4810
|
+
mode?: 'or' | 'and'
|
|
4813
4811
|
}
|
|
4814
4812
|
|
|
4815
4813
|
interface LuaPlayerBuiltEntityEventFilterForce extends BaseLuaPlayerBuiltEntityEventFilter {
|
|
@@ -4893,9 +4891,9 @@ interface BaseLuaPlayerMinedEntityEventFilter {
|
|
|
4893
4891
|
invert?: boolean,
|
|
4894
4892
|
|
|
4895
4893
|
/**
|
|
4896
|
-
* How to combine this with the previous filter.
|
|
4894
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4897
4895
|
*/
|
|
4898
|
-
mode?:
|
|
4896
|
+
mode?: 'or' | 'and'
|
|
4899
4897
|
}
|
|
4900
4898
|
|
|
4901
4899
|
interface LuaPlayerMinedEntityEventFilterGhostName extends BaseLuaPlayerMinedEntityEventFilter {
|
|
@@ -4966,9 +4964,9 @@ interface BaseLuaPlayerRepairedEntityEventFilter {
|
|
|
4966
4964
|
invert?: boolean,
|
|
4967
4965
|
|
|
4968
4966
|
/**
|
|
4969
|
-
* How to combine this with the previous filter.
|
|
4967
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
4970
4968
|
*/
|
|
4971
|
-
mode?:
|
|
4969
|
+
mode?: 'or' | 'and'
|
|
4972
4970
|
}
|
|
4973
4971
|
|
|
4974
4972
|
interface LuaPlayerRepairedEntityEventFilterGhostName extends BaseLuaPlayerRepairedEntityEventFilter {
|
|
@@ -5039,9 +5037,9 @@ interface BaseLuaPostEntityDiedEventFilter {
|
|
|
5039
5037
|
invert?: boolean,
|
|
5040
5038
|
|
|
5041
5039
|
/**
|
|
5042
|
-
* How to combine this with the previous filter.
|
|
5040
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5043
5041
|
*/
|
|
5044
|
-
mode?:
|
|
5042
|
+
mode?: 'or' | 'and'
|
|
5045
5043
|
}
|
|
5046
5044
|
|
|
5047
5045
|
interface LuaPostEntityDiedEventFilterType extends BaseLuaPostEntityDiedEventFilter {
|
|
@@ -5065,9 +5063,9 @@ interface BaseLuaPreGhostDeconstructedEventFilter {
|
|
|
5065
5063
|
invert?: boolean,
|
|
5066
5064
|
|
|
5067
5065
|
/**
|
|
5068
|
-
* How to combine this with the previous filter.
|
|
5066
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5069
5067
|
*/
|
|
5070
|
-
mode?:
|
|
5068
|
+
mode?: 'or' | 'and'
|
|
5071
5069
|
}
|
|
5072
5070
|
|
|
5073
5071
|
interface LuaPreGhostDeconstructedEventFilterGhostName extends BaseLuaPreGhostDeconstructedEventFilter {
|
|
@@ -5138,9 +5136,9 @@ interface BaseLuaPreGhostUpgradedEventFilter {
|
|
|
5138
5136
|
invert?: boolean,
|
|
5139
5137
|
|
|
5140
5138
|
/**
|
|
5141
|
-
* How to combine this with the previous filter.
|
|
5139
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5142
5140
|
*/
|
|
5143
|
-
mode?:
|
|
5141
|
+
mode?: 'or' | 'and'
|
|
5144
5142
|
}
|
|
5145
5143
|
|
|
5146
5144
|
interface LuaPreGhostUpgradedEventFilterGhostName extends BaseLuaPreGhostUpgradedEventFilter {
|
|
@@ -5211,9 +5209,9 @@ interface BaseLuaPrePlayerMinedEntityEventFilter {
|
|
|
5211
5209
|
invert?: boolean,
|
|
5212
5210
|
|
|
5213
5211
|
/**
|
|
5214
|
-
* How to combine this with the previous filter.
|
|
5212
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5215
5213
|
*/
|
|
5216
|
-
mode?:
|
|
5214
|
+
mode?: 'or' | 'and'
|
|
5217
5215
|
}
|
|
5218
5216
|
|
|
5219
5217
|
interface LuaPrePlayerMinedEntityEventFilterGhostName extends BaseLuaPrePlayerMinedEntityEventFilter {
|
|
@@ -5284,9 +5282,9 @@ interface BaseLuaPreRobotMinedEntityEventFilter {
|
|
|
5284
5282
|
invert?: boolean,
|
|
5285
5283
|
|
|
5286
5284
|
/**
|
|
5287
|
-
* How to combine this with the previous filter.
|
|
5285
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5288
5286
|
*/
|
|
5289
|
-
mode?:
|
|
5287
|
+
mode?: 'or' | 'and'
|
|
5290
5288
|
}
|
|
5291
5289
|
|
|
5292
5290
|
interface LuaPreRobotMinedEntityEventFilterGhostName extends BaseLuaPreRobotMinedEntityEventFilter {
|
|
@@ -5357,9 +5355,9 @@ interface BaseLuaRobotBuiltEntityEventFilter {
|
|
|
5357
5355
|
invert?: boolean,
|
|
5358
5356
|
|
|
5359
5357
|
/**
|
|
5360
|
-
* How to combine this with the previous filter.
|
|
5358
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5361
5359
|
*/
|
|
5362
|
-
mode?:
|
|
5360
|
+
mode?: 'or' | 'and'
|
|
5363
5361
|
}
|
|
5364
5362
|
|
|
5365
5363
|
interface LuaRobotBuiltEntityEventFilterForce extends BaseLuaRobotBuiltEntityEventFilter {
|
|
@@ -5443,9 +5441,9 @@ interface BaseLuaRobotMinedEntityEventFilter {
|
|
|
5443
5441
|
invert?: boolean,
|
|
5444
5442
|
|
|
5445
5443
|
/**
|
|
5446
|
-
* How to combine this with the previous filter.
|
|
5444
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5447
5445
|
*/
|
|
5448
|
-
mode?:
|
|
5446
|
+
mode?: 'or' | 'and'
|
|
5449
5447
|
}
|
|
5450
5448
|
|
|
5451
5449
|
interface LuaRobotMinedEntityEventFilterGhostName extends BaseLuaRobotMinedEntityEventFilter {
|
|
@@ -5516,9 +5514,9 @@ interface BaseLuaScriptRaisedBuiltEventFilter {
|
|
|
5516
5514
|
invert?: boolean,
|
|
5517
5515
|
|
|
5518
5516
|
/**
|
|
5519
|
-
* How to combine this with the previous filter.
|
|
5517
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5520
5518
|
*/
|
|
5521
|
-
mode?:
|
|
5519
|
+
mode?: 'or' | 'and'
|
|
5522
5520
|
}
|
|
5523
5521
|
|
|
5524
5522
|
interface LuaScriptRaisedBuiltEventFilterGhostName extends BaseLuaScriptRaisedBuiltEventFilter {
|
|
@@ -5589,9 +5587,9 @@ interface BaseLuaScriptRaisedDestroyEventFilter {
|
|
|
5589
5587
|
invert?: boolean,
|
|
5590
5588
|
|
|
5591
5589
|
/**
|
|
5592
|
-
* How to combine this with the previous filter.
|
|
5590
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5593
5591
|
*/
|
|
5594
|
-
mode?:
|
|
5592
|
+
mode?: 'or' | 'and'
|
|
5595
5593
|
}
|
|
5596
5594
|
|
|
5597
5595
|
interface LuaScriptRaisedDestroyEventFilterGhostName extends BaseLuaScriptRaisedDestroyEventFilter {
|
|
@@ -5662,9 +5660,9 @@ interface BaseLuaScriptRaisedReviveEventFilter {
|
|
|
5662
5660
|
invert?: boolean,
|
|
5663
5661
|
|
|
5664
5662
|
/**
|
|
5665
|
-
* How to combine this with the previous filter.
|
|
5663
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5666
5664
|
*/
|
|
5667
|
-
mode?:
|
|
5665
|
+
mode?: 'or' | 'and'
|
|
5668
5666
|
}
|
|
5669
5667
|
|
|
5670
5668
|
interface LuaScriptRaisedReviveEventFilterGhostName extends BaseLuaScriptRaisedReviveEventFilter {
|
|
@@ -5735,9 +5733,9 @@ interface BaseLuaScriptRaisedTeleportedEventFilter {
|
|
|
5735
5733
|
invert?: boolean,
|
|
5736
5734
|
|
|
5737
5735
|
/**
|
|
5738
|
-
* How to combine this with the previous filter.
|
|
5736
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5739
5737
|
*/
|
|
5740
|
-
mode?:
|
|
5738
|
+
mode?: 'or' | 'and'
|
|
5741
5739
|
}
|
|
5742
5740
|
|
|
5743
5741
|
interface LuaScriptRaisedTeleportedEventFilterGhostName extends BaseLuaScriptRaisedTeleportedEventFilter {
|
|
@@ -5808,9 +5806,9 @@ interface BaseLuaSectorScannedEventFilter {
|
|
|
5808
5806
|
invert?: boolean,
|
|
5809
5807
|
|
|
5810
5808
|
/**
|
|
5811
|
-
* How to combine this with the previous filter.
|
|
5809
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5812
5810
|
*/
|
|
5813
|
-
mode?:
|
|
5811
|
+
mode?: 'or' | 'and'
|
|
5814
5812
|
}
|
|
5815
5813
|
|
|
5816
5814
|
interface LuaSectorScannedEventFilterGhostName extends BaseLuaSectorScannedEventFilter {
|
|
@@ -5881,9 +5879,9 @@ interface BaseLuaUpgradeCancelledEventFilter {
|
|
|
5881
5879
|
invert?: boolean,
|
|
5882
5880
|
|
|
5883
5881
|
/**
|
|
5884
|
-
* How to combine this with the previous filter.
|
|
5882
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5885
5883
|
*/
|
|
5886
|
-
mode?:
|
|
5884
|
+
mode?: 'or' | 'and'
|
|
5887
5885
|
}
|
|
5888
5886
|
|
|
5889
5887
|
interface LuaUpgradeCancelledEventFilterGhostName extends BaseLuaUpgradeCancelledEventFilter {
|
|
@@ -5954,9 +5952,9 @@ interface BaseModSettingPrototypeFilter {
|
|
|
5954
5952
|
invert?: boolean,
|
|
5955
5953
|
|
|
5956
5954
|
/**
|
|
5957
|
-
* How to combine this with the previous filter.
|
|
5955
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
5958
5956
|
*/
|
|
5959
|
-
mode?:
|
|
5957
|
+
mode?: 'or' | 'and'
|
|
5960
5958
|
}
|
|
5961
5959
|
|
|
5962
5960
|
interface ModSettingPrototypeFilterMod extends BaseModSettingPrototypeFilter {
|
|
@@ -5998,45 +5996,12 @@ interface ModSettingPrototypeFilterType extends BaseModSettingPrototypeFilter {
|
|
|
5998
5996
|
type: string | string[]
|
|
5999
5997
|
}
|
|
6000
5998
|
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
/**
|
|
6009
|
-
* Maximum amount of the item or fluid to give. Has no effect when `amount` is specified.
|
|
6010
|
-
*/
|
|
6011
|
-
amount_max?: number,
|
|
6012
|
-
|
|
6013
|
-
/**
|
|
6014
|
-
* Minimal amount of the item or fluid to give. Has no effect when `amount` is specified.
|
|
6015
|
-
*/
|
|
6016
|
-
amount_min?: number,
|
|
6017
|
-
|
|
6018
|
-
/**
|
|
6019
|
-
* How much of this product is a catalyst.
|
|
6020
|
-
*/
|
|
6021
|
-
catalyst_amount?: number,
|
|
6022
|
-
|
|
6023
|
-
/**
|
|
6024
|
-
* Prototype name of the result.
|
|
6025
|
-
*/
|
|
6026
|
-
name: string,
|
|
6027
|
-
|
|
6028
|
-
/**
|
|
6029
|
-
* A value in range [0, 1]. Item or fluid is only given with this probability; otherwise no product is produced.
|
|
6030
|
-
*/
|
|
6031
|
-
probability?: number
|
|
6032
|
-
}
|
|
6033
|
-
|
|
6034
|
-
interface ProductFluid extends BaseProduct {
|
|
6035
|
-
|
|
6036
|
-
/**
|
|
6037
|
-
* `"item"` or `"fluid"`.
|
|
6038
|
-
*/
|
|
6039
|
-
type: 'fluid',
|
|
5999
|
+
/**
|
|
6000
|
+
* @remarks
|
|
6001
|
+
* Applies to `fluid` variant case
|
|
6002
|
+
*
|
|
6003
|
+
*/
|
|
6004
|
+
interface ProductFluid extends Product {
|
|
6040
6005
|
|
|
6041
6006
|
/**
|
|
6042
6007
|
* The fluid temperature of this product.
|
|
@@ -6044,14 +6009,6 @@ interface ProductFluid extends BaseProduct {
|
|
|
6044
6009
|
temperature?: number
|
|
6045
6010
|
}
|
|
6046
6011
|
|
|
6047
|
-
interface DefaultProduct extends BaseProduct {
|
|
6048
|
-
|
|
6049
|
-
/**
|
|
6050
|
-
* `"item"` or `"fluid"`.
|
|
6051
|
-
*/
|
|
6052
|
-
type: 'item'
|
|
6053
|
-
}
|
|
6054
|
-
|
|
6055
6012
|
interface BaseRecipePrototypeFilter {
|
|
6056
6013
|
|
|
6057
6014
|
/**
|
|
@@ -6060,9 +6017,9 @@ interface BaseRecipePrototypeFilter {
|
|
|
6060
6017
|
invert?: boolean,
|
|
6061
6018
|
|
|
6062
6019
|
/**
|
|
6063
|
-
* How to combine this with the previous filter.
|
|
6020
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
6064
6021
|
*/
|
|
6065
|
-
mode?:
|
|
6022
|
+
mode?: 'or' | 'and'
|
|
6066
6023
|
}
|
|
6067
6024
|
|
|
6068
6025
|
interface RecipePrototypeFilterCategory extends BaseRecipePrototypeFilter {
|
|
@@ -6207,16 +6164,12 @@ interface DefaultRecipePrototypeFilter extends BaseRecipePrototypeFilter {
|
|
|
6207
6164
|
filter: 'enabled' | 'hidden' | 'hidden-from-flow-stats' | 'hidden-from-player-crafting' | 'allow-as-intermediate' | 'allow-intermediates' | 'allow-decomposition' | 'always-show-made-in' | 'always-show-products' | 'show-amount-in-title' | 'has-ingredients' | 'has-products'
|
|
6208
6165
|
}
|
|
6209
6166
|
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
/**
|
|
6217
|
-
* Modifier type. Specifies which of the other fields will be available. Possible values are: `"inserter-stack-size-bonus"`, `"stack-inserter-capacity-bonus"`, `"laboratory-speed"`, `"character-logistic-trash-slots"`, `"maximum-following-robots-count"`, `"worker-robot-speed"`, `"worker-robot-storage"`, `"ghost-time-to-live"`, `"turret-attack"`, `"ammo-damage"`, `"give-item"`, `"gun-speed"`, `"unlock-recipe"`, `"character-crafting-speed"`, `"character-mining-speed"`, `"character-running-speed"`, `"character-build-distance"`, `"character-item-drop-distance"`, `"character-reach-distance"`, `"character-resource-reach-distance"`, `"character-item-pickup-distance"`, `"character-loot-pickup-distance"`, `"character-inventory-slots-bonus"`, `"deconstruction-time-to-live"`, `"max-failed-attempts-per-tick-per-construction-queue"`, `"max-successful-attempts-per-tick-per-construction-queue"`, `"character-health-bonus"`, `"mining-drill-productivity-bonus"`, `"train-braking-force-bonus"`, `"zoom-to-world-enabled"`, `"zoom-to-world-ghost-building-enabled"`, `"zoom-to-world-blueprint-enabled"`, `"zoom-to-world-deconstruction-planner-enabled"`, `"zoom-to-world-upgrade-planner-enabled"`, `"zoom-to-world-selection-tool-enabled"`, `"worker-robot-battery"`, `"laboratory-productivity"`, `"follower-robot-lifetime"`, `"artillery-range"`, `"nothing"`, `"character-additional-mining-categories"`, `"character-logistic-requests"`.
|
|
6218
|
-
*/
|
|
6219
|
-
type: 'Other types',
|
|
6167
|
+
/**
|
|
6168
|
+
* @remarks
|
|
6169
|
+
* Applies to `Other types` variant case
|
|
6170
|
+
*
|
|
6171
|
+
*/
|
|
6172
|
+
interface TechnologyModifierOtherTypes extends TechnologyModifier {
|
|
6220
6173
|
|
|
6221
6174
|
/**
|
|
6222
6175
|
* Modification value. This value will be added to the variable it modifies.
|
|
@@ -6224,12 +6177,12 @@ interface TechnologyModifierOtherTypes extends BaseTechnologyModifier {
|
|
|
6224
6177
|
modifier: number
|
|
6225
6178
|
}
|
|
6226
6179
|
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
|
|
6180
|
+
/**
|
|
6181
|
+
* @remarks
|
|
6182
|
+
* Applies to `ammo-damage` variant case
|
|
6183
|
+
*
|
|
6184
|
+
*/
|
|
6185
|
+
interface TechnologyModifierAmmoDamage extends TechnologyModifier {
|
|
6233
6186
|
|
|
6234
6187
|
/**
|
|
6235
6188
|
* Prototype name of the ammunition category that is affected
|
|
@@ -6242,12 +6195,12 @@ interface TechnologyModifierAmmoDamage extends BaseTechnologyModifier {
|
|
|
6242
6195
|
modifier: number
|
|
6243
6196
|
}
|
|
6244
6197
|
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6198
|
+
/**
|
|
6199
|
+
* @remarks
|
|
6200
|
+
* Applies to `give-item` variant case
|
|
6201
|
+
*
|
|
6202
|
+
*/
|
|
6203
|
+
interface TechnologyModifierGiveItem extends TechnologyModifier {
|
|
6251
6204
|
|
|
6252
6205
|
/**
|
|
6253
6206
|
* Number of items to give. Defaults to `1`.
|
|
@@ -6260,12 +6213,12 @@ interface TechnologyModifierGiveItem extends BaseTechnologyModifier {
|
|
|
6260
6213
|
item: string
|
|
6261
6214
|
}
|
|
6262
6215
|
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6216
|
+
/**
|
|
6217
|
+
* @remarks
|
|
6218
|
+
* Applies to `gun-speed` variant case
|
|
6219
|
+
*
|
|
6220
|
+
*/
|
|
6221
|
+
interface TechnologyModifierGunSpeed extends TechnologyModifier {
|
|
6269
6222
|
|
|
6270
6223
|
/**
|
|
6271
6224
|
* Prototype name of the ammunition category that is affected
|
|
@@ -6278,12 +6231,12 @@ interface TechnologyModifierGunSpeed extends BaseTechnologyModifier {
|
|
|
6278
6231
|
modifier: number
|
|
6279
6232
|
}
|
|
6280
6233
|
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
|
|
6234
|
+
/**
|
|
6235
|
+
* @remarks
|
|
6236
|
+
* Applies to `nothing` variant case
|
|
6237
|
+
*
|
|
6238
|
+
*/
|
|
6239
|
+
interface TechnologyModifierNothing extends TechnologyModifier {
|
|
6287
6240
|
|
|
6288
6241
|
/**
|
|
6289
6242
|
* Description of this nothing modifier.
|
|
@@ -6291,12 +6244,12 @@ interface TechnologyModifierNothing extends BaseTechnologyModifier {
|
|
|
6291
6244
|
effect_description: LocalisedString
|
|
6292
6245
|
}
|
|
6293
6246
|
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6247
|
+
/**
|
|
6248
|
+
* @remarks
|
|
6249
|
+
* Applies to `turret-attack` variant case
|
|
6250
|
+
*
|
|
6251
|
+
*/
|
|
6252
|
+
interface TechnologyModifierTurretAttack extends TechnologyModifier {
|
|
6300
6253
|
|
|
6301
6254
|
/**
|
|
6302
6255
|
* Modification value. This will be added to the current turret damage modifier upon researching.
|
|
@@ -6309,12 +6262,12 @@ interface TechnologyModifierTurretAttack extends BaseTechnologyModifier {
|
|
|
6309
6262
|
turret_id: string
|
|
6310
6263
|
}
|
|
6311
6264
|
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6265
|
+
/**
|
|
6266
|
+
* @remarks
|
|
6267
|
+
* Applies to `unlock-recipe` variant case
|
|
6268
|
+
*
|
|
6269
|
+
*/
|
|
6270
|
+
interface TechnologyModifierUnlockRecipe extends TechnologyModifier {
|
|
6318
6271
|
|
|
6319
6272
|
/**
|
|
6320
6273
|
* Recipe prototype name to unlock.
|
|
@@ -6322,14 +6275,6 @@ interface TechnologyModifierUnlockRecipe extends BaseTechnologyModifier {
|
|
|
6322
6275
|
recipe: string
|
|
6323
6276
|
}
|
|
6324
6277
|
|
|
6325
|
-
interface DefaultTechnologyModifier extends BaseTechnologyModifier {
|
|
6326
|
-
|
|
6327
|
-
/**
|
|
6328
|
-
* Modifier type. Specifies which of the other fields will be available. Possible values are: `"inserter-stack-size-bonus"`, `"stack-inserter-capacity-bonus"`, `"laboratory-speed"`, `"character-logistic-trash-slots"`, `"maximum-following-robots-count"`, `"worker-robot-speed"`, `"worker-robot-storage"`, `"ghost-time-to-live"`, `"turret-attack"`, `"ammo-damage"`, `"give-item"`, `"gun-speed"`, `"unlock-recipe"`, `"character-crafting-speed"`, `"character-mining-speed"`, `"character-running-speed"`, `"character-build-distance"`, `"character-item-drop-distance"`, `"character-reach-distance"`, `"character-resource-reach-distance"`, `"character-item-pickup-distance"`, `"character-loot-pickup-distance"`, `"character-inventory-slots-bonus"`, `"deconstruction-time-to-live"`, `"max-failed-attempts-per-tick-per-construction-queue"`, `"max-successful-attempts-per-tick-per-construction-queue"`, `"character-health-bonus"`, `"mining-drill-productivity-bonus"`, `"train-braking-force-bonus"`, `"zoom-to-world-enabled"`, `"zoom-to-world-ghost-building-enabled"`, `"zoom-to-world-blueprint-enabled"`, `"zoom-to-world-deconstruction-planner-enabled"`, `"zoom-to-world-upgrade-planner-enabled"`, `"zoom-to-world-selection-tool-enabled"`, `"worker-robot-battery"`, `"laboratory-productivity"`, `"follower-robot-lifetime"`, `"artillery-range"`, `"nothing"`, `"character-additional-mining-categories"`, `"character-logistic-requests"`.
|
|
6329
|
-
*/
|
|
6330
|
-
type: 'inserter-stack-size-bonus' | 'stack-inserter-capacity-bonus' | 'laboratory-speed' | 'character-logistic-trash-slots' | 'maximum-following-robots-count' | 'worker-robot-speed' | 'worker-robot-storage' | 'ghost-time-to-live' | 'character-crafting-speed' | 'character-mining-speed' | 'character-running-speed' | 'character-build-distance' | 'character-item-drop-distance' | 'character-reach-distance' | 'character-resource-reach-distance' | 'character-item-pickup-distance' | 'character-loot-pickup-distance' | 'character-inventory-slots-bonus' | 'deconstruction-time-to-live' | 'max-failed-attempts-per-tick-per-construction-queue' | 'max-successful-attempts-per-tick-per-construction-queue' | 'character-health-bonus' | 'mining-drill-productivity-bonus' | 'train-braking-force-bonus' | 'zoom-to-world-enabled' | 'zoom-to-world-ghost-building-enabled' | 'zoom-to-world-blueprint-enabled' | 'zoom-to-world-deconstruction-planner-enabled' | 'zoom-to-world-upgrade-planner-enabled' | 'zoom-to-world-selection-tool-enabled' | 'worker-robot-battery' | 'laboratory-productivity' | 'follower-robot-lifetime' | 'artillery-range' | 'character-additional-mining-categories'
|
|
6331
|
-
}
|
|
6332
|
-
|
|
6333
6278
|
interface BaseTechnologyPrototypeFilter {
|
|
6334
6279
|
|
|
6335
6280
|
/**
|
|
@@ -6338,9 +6283,9 @@ interface BaseTechnologyPrototypeFilter {
|
|
|
6338
6283
|
invert?: boolean,
|
|
6339
6284
|
|
|
6340
6285
|
/**
|
|
6341
|
-
* How to combine this with the previous filter.
|
|
6286
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
6342
6287
|
*/
|
|
6343
|
-
mode?:
|
|
6288
|
+
mode?: 'or' | 'and'
|
|
6344
6289
|
}
|
|
6345
6290
|
|
|
6346
6291
|
interface TechnologyPrototypeFilterLevel extends BaseTechnologyPrototypeFilter {
|
|
@@ -6427,9 +6372,9 @@ interface BaseTilePrototypeFilter {
|
|
|
6427
6372
|
invert?: boolean,
|
|
6428
6373
|
|
|
6429
6374
|
/**
|
|
6430
|
-
* How to combine this with the previous filter.
|
|
6375
|
+
* How to combine this with the previous filter. Defaults to `"or"`. When evaluating the filters, `"and"` has higher precedence than `"or"`.
|
|
6431
6376
|
*/
|
|
6432
|
-
mode?:
|
|
6377
|
+
mode?: 'or' | 'and'
|
|
6433
6378
|
}
|
|
6434
6379
|
|
|
6435
6380
|
interface TilePrototypeFilterCollisionMask extends BaseTilePrototypeFilter {
|