@shipload/sdk 1.0.0-next.57 → 1.0.0-next.59

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipload/sdk",
3
3
  "description": "SDKs for Shipload",
4
- "version": "1.0.0-next.57",
4
+ "version": "1.0.0-next.59",
5
5
  "homepage": "https://github.com/shipload/toolkit/tree/master/packages/sdk",
6
6
  "repository": {
7
7
  "type": "git",
@@ -28,6 +28,7 @@ export const MODULE_STORAGE = 8
28
28
  export const MODULE_HAULER = 9
29
29
  export const MODULE_BATTERY = 10
30
30
  export const MODULE_BUILDER = 12
31
+ export const MODULE_AUX = 13
31
32
 
32
33
  export interface PackedModule {
33
34
  itemId: number
@@ -40,6 +41,13 @@ export interface ModuleEntry {
40
41
  }
41
42
 
42
43
  export function moduleAccepts(slotType: number, moduleType: number): boolean {
44
+ if (slotType === MODULE_AUX) {
45
+ return (
46
+ moduleType === MODULE_GENERATOR ||
47
+ moduleType === MODULE_ENGINE ||
48
+ moduleType === MODULE_BATTERY
49
+ )
50
+ }
43
51
  return slotType === MODULE_ANY || slotType === moduleType
44
52
  }
45
53
 
@@ -104,6 +112,8 @@ export function moduleSlotTypeToCode(slotType: string): number {
104
112
  return MODULE_HAULER
105
113
  case 'battery':
106
114
  return MODULE_BATTERY
115
+ case 'aux':
116
+ return MODULE_AUX
107
117
  default:
108
118
  return MODULE_ANY
109
119
  }
@@ -227,7 +227,7 @@
227
227
  "maxTier": 1
228
228
  }
229
229
  ],
230
- "baseHullmass": 3600000
230
+ "baseHullmass": 4000000
231
231
  },
232
232
  {
233
233
  "entityItemId": 10212,
@@ -248,7 +248,7 @@
248
248
  "maxTier": 1
249
249
  }
250
250
  ],
251
- "baseHullmass": 3600000
251
+ "baseHullmass": 4000000
252
252
  },
253
253
  {
254
254
  "entityItemId": 10213,
@@ -269,7 +269,7 @@
269
269
  "maxTier": 1
270
270
  }
271
271
  ],
272
- "baseHullmass": 4400000
272
+ "baseHullmass": 4000000
273
273
  },
274
274
  {
275
275
  "entityItemId": 10214,
@@ -290,7 +290,7 @@
290
290
  "maxTier": 1
291
291
  }
292
292
  ],
293
- "baseHullmass": 4400000
293
+ "baseHullmass": 4000000
294
294
  },
295
295
  {
296
296
  "entityItemId": 10215,
@@ -311,28 +311,23 @@
311
311
  "maxTier": 1
312
312
  }
313
313
  ],
314
- "baseHullmass": 5000000
314
+ "baseHullmass": 4000000
315
315
  },
316
316
  {
317
- "entityItemId": 10216,
317
+ "entityItemId": 10218,
318
318
  "slots": [
319
319
  {
320
320
  "type": "generator",
321
- "outputPct": 90,
321
+ "outputPct": 85,
322
322
  "maxTier": 1
323
323
  },
324
324
  {
325
325
  "type": "engine",
326
- "outputPct": 90,
327
- "maxTier": 1
328
- },
329
- {
330
- "type": "gatherer",
331
- "outputPct": 100,
326
+ "outputPct": 85,
332
327
  "maxTier": 1
333
328
  },
334
329
  {
335
- "type": "gatherer",
330
+ "type": "crafter",
336
331
  "outputPct": 100,
337
332
  "maxTier": 1
338
333
  }
@@ -340,52 +335,47 @@
340
335
  "baseHullmass": 4000000
341
336
  },
342
337
  {
343
- "entityItemId": 10217,
338
+ "entityItemId": 20200,
339
+ "slots": [],
340
+ "baseHullmass": 100000
341
+ },
342
+ {
343
+ "entityItemId": 20212,
344
344
  "slots": [
345
345
  {
346
346
  "type": "generator",
347
347
  "outputPct": 90,
348
- "maxTier": 1
348
+ "maxTier": 2
349
349
  },
350
350
  {
351
351
  "type": "engine",
352
352
  "outputPct": 90,
353
- "maxTier": 1
353
+ "maxTier": 2
354
354
  },
355
355
  {
356
356
  "type": "gatherer",
357
357
  "outputPct": 100,
358
- "maxTier": 1
359
- },
360
- {
361
- "type": "storage",
362
- "outputPct": 100,
363
- "maxTier": 1
358
+ "maxTier": 2
364
359
  }
365
360
  ],
366
- "baseHullmass": 4800000
367
- },
368
- {
369
- "entityItemId": 20200,
370
- "slots": [],
371
- "baseHullmass": 100000
361
+ "baseHullmass": 5920000
372
362
  },
373
363
  {
374
- "entityItemId": 20210,
364
+ "entityItemId": 20213,
375
365
  "slots": [
376
366
  {
377
367
  "type": "generator",
378
- "outputPct": 100,
368
+ "outputPct": 95,
379
369
  "maxTier": 2
380
370
  },
381
371
  {
382
- "type": "generator",
383
- "outputPct": 100,
372
+ "type": "engine",
373
+ "outputPct": 95,
384
374
  "maxTier": 2
385
375
  },
386
376
  {
387
- "type": "engine",
388
- "outputPct": 100,
377
+ "type": "aux",
378
+ "outputPct": 95,
389
379
  "maxTier": 2
390
380
  },
391
381
  {
@@ -394,32 +384,32 @@
394
384
  "maxTier": 2
395
385
  }
396
386
  ],
397
- "baseHullmass": 5760000
387
+ "baseHullmass": 7360000
398
388
  },
399
389
  {
400
- "entityItemId": 20211,
390
+ "entityItemId": 20214,
401
391
  "slots": [
402
392
  {
403
393
  "type": "generator",
404
- "outputPct": 100,
394
+ "outputPct": 95,
405
395
  "maxTier": 2
406
396
  },
407
397
  {
408
398
  "type": "engine",
409
- "outputPct": 100,
399
+ "outputPct": 95,
410
400
  "maxTier": 2
411
401
  },
412
402
  {
413
- "type": "hauler",
403
+ "type": "gatherer",
414
404
  "outputPct": 100,
415
405
  "maxTier": 2
416
406
  },
417
407
  {
418
- "type": "hauler",
408
+ "type": "storage",
419
409
  "outputPct": 100,
420
410
  "maxTier": 2
421
411
  }
422
412
  ],
423
- "baseHullmass": 7040000
413
+ "baseHullmass": 7360000
424
414
  }
425
415
  ]
@@ -81,14 +81,13 @@ export const ITEM_MASS_CATCHER_T1_PACKED = 10206
81
81
  export const ITEM_HUB_T1_PACKED = 10207
82
82
  export const ITEM_WORKSHOP_T1_PACKED = 10208
83
83
  export const ITEM_CONSTRUCTION_DOCK_T1_PACKED = 10209
84
- export const ITEM_ROUSTABOUT_T1_PACKED = 10210
85
- export const ITEM_PROSPECTOR_T1_PACKED = 10211
86
- export const ITEM_TENDER_T1_PACKED = 10212
87
- export const ITEM_WRIGHT_T1_PACKED = 10213
88
- export const ITEM_TUG_T1_PACKED = 10214
89
- export const ITEM_PORTER_T1_PACKED = 10215
90
- export const ITEM_WRANGLER_T1_PACKED = 10216
91
- export const ITEM_DREDGER_T1_PACKED = 10217
84
+ export const ITEM_ROUSTABOUT_T1A_PACKED = 10210
85
+ export const ITEM_PROSPECTOR_T1A_PACKED = 10211
86
+ export const ITEM_TENDER_T1A_PACKED = 10212
87
+ export const ITEM_WRIGHT_T1A_PACKED = 10213
88
+ export const ITEM_TUG_T1A_PACKED = 10214
89
+ export const ITEM_PORTER_T1A_PACKED = 10215
90
+ export const ITEM_SMITH_T1A_PACKED = 10218
92
91
  export const ITEM_PLATE_T2 = 20001
93
92
  export const ITEM_FRAME_T2 = 20002
94
93
  export const ITEM_PLASMA_CELL_T2 = 20003
@@ -102,5 +101,6 @@ export const ITEM_RESIN_T2 = 20010
102
101
  export const ITEM_GATHERER_T2 = 20102
103
102
  export const ITEM_HAULER_T2 = 20106
104
103
  export const ITEM_CONTAINER_T2_PACKED = 20200
105
- export const ITEM_PROSPECTOR_T2_PACKED = 20210
106
- export const ITEM_HAULER_SHIP_T2_PACKED = 20211
104
+ export const ITEM_PROSPECTOR_T2A_PACKED = 20212
105
+ export const ITEM_PROSPECTOR_T2B_PACKED = 20213
106
+ export const ITEM_DREDGER_T2A_PACKED = 20214
@@ -583,14 +583,8 @@
583
583
  "tier": 1
584
584
  },
585
585
  {
586
- "id": 10216,
587
- "mass": 3600000,
588
- "type": "entity",
589
- "tier": 1
590
- },
591
- {
592
- "id": 10217,
593
- "mass": 3600000,
586
+ "id": 10218,
587
+ "mass": 2400000,
594
588
  "type": "entity",
595
589
  "tier": 1
596
590
  },
@@ -675,14 +669,20 @@
675
669
  "tier": 2
676
670
  },
677
671
  {
678
- "id": 20210,
679
- "mass": 3840000,
672
+ "id": 20212,
673
+ "mass": 4320000,
674
+ "type": "entity",
675
+ "tier": 2
676
+ },
677
+ {
678
+ "id": 20213,
679
+ "mass": 5760000,
680
680
  "type": "entity",
681
681
  "tier": 2
682
682
  },
683
683
  {
684
- "id": 20211,
685
- "mass": 3840000,
684
+ "id": 20214,
685
+ "mass": 5760000,
686
686
  "type": "entity",
687
687
  "tier": 2
688
688
  }
@@ -122,14 +122,9 @@
122
122
  "displayLabel": "Porter"
123
123
  },
124
124
  {
125
- "itemId": 10216,
125
+ "itemId": 10218,
126
126
  "kind": "ship",
127
- "displayLabel": "Wrangler"
128
- },
129
- {
130
- "itemId": 10217,
131
- "kind": "ship",
132
- "displayLabel": "Dredger"
127
+ "displayLabel": "Smith"
133
128
  },
134
129
  {
135
130
  "itemId": 10202,
@@ -182,14 +177,19 @@
182
177
  "displayLabel": ""
183
178
  },
184
179
  {
185
- "itemId": 20210,
180
+ "itemId": 20212,
186
181
  "kind": "ship",
187
182
  "displayLabel": "Prospector"
188
183
  },
189
184
  {
190
- "itemId": 20211,
185
+ "itemId": 20213,
191
186
  "kind": "ship",
192
- "displayLabel": "Tug"
187
+ "displayLabel": "Prospector"
188
+ },
189
+ {
190
+ "itemId": 20214,
191
+ "kind": "ship",
192
+ "displayLabel": "Dredger"
193
193
  }
194
194
  ]
195
195
  }
@@ -320,15 +320,10 @@ export const itemMetadata: Record<number, ItemMetadata> = {
320
320
  'A cargo ship built around a large storage hold. The extra mass makes it slower than a Roustabout.',
321
321
  color: '#4AE898',
322
322
  },
323
- 10216: {
324
- name: 'Wrangler',
325
- description: 'A heavy gathering ship with two gathering rigs, so it mines faster.',
326
- color: '#4AE898',
327
- },
328
- 10217: {
329
- name: 'Dredger',
323
+ 10218: {
324
+ name: 'Smith',
330
325
  description:
331
- 'A gathering ship with its own storage hold, so it can keep mining before it has to offload.',
326
+ 'A crafting ship. One engine, one power core, and a fabricator for crafting away from home.',
332
327
  color: '#4AE898',
333
328
  },
334
329
 
@@ -405,16 +400,21 @@ export const itemMetadata: Record<number, ItemMetadata> = {
405
400
  description: 'Advanced cargo container with improved capacity formulas.',
406
401
  color: '#9BADB8',
407
402
  },
408
- 20210: {
403
+ 20212: {
404
+ name: 'Prospector',
405
+ description: 'The tier 2 Prospector. The same three systems, ready for tier 2 modules.',
406
+ color: '#4AE898',
407
+ },
408
+ 20213: {
409
409
  name: 'Prospector',
410
410
  description:
411
- 'Advanced exploration vessel with tiered engine, power core, and limpet bay slots.',
411
+ 'A tier 2 Prospector with an auxiliary system for extra power, mobility, or endurance.',
412
412
  color: '#4AE898',
413
413
  },
414
- 20211: {
415
- name: 'Tug',
414
+ 20214: {
415
+ name: 'Dredger',
416
416
  description:
417
- 'Advanced towing vessel with tiered engine, generator, and tractor beam slots.',
417
+ 'A gathering ship that stores what it digs. Its limpet bay works alongside a cargo hold.',
418
418
  color: '#4AE898',
419
419
  },
420
420
  }
@@ -427,8 +427,7 @@ export const entityMetadata: Record<number, EntityMetadata> = {
427
427
  10213: {moduleSlotLabels: ['Power Core', 'Engine', 'Assembly Arm']},
428
428
  10214: {moduleSlotLabels: ['Power Core', 'Engine', 'Tractor Beam']},
429
429
  10215: {moduleSlotLabels: ['Power Core', 'Engine', 'Cargo Hold']},
430
- 10216: {moduleSlotLabels: ['Power Core', 'Engine', 'Limpet Bay', 'Limpet Bay']},
431
- 10217: {moduleSlotLabels: ['Power Core', 'Engine', 'Limpet Bay', 'Cargo Hold']},
430
+ 10218: {moduleSlotLabels: ['Power Core', 'Engine', 'Fabricator']},
432
431
  10202: {
433
432
  moduleSlotLabels: ['Shuttle Bay', 'Cargo Hold', 'Cargo Hold', 'Cargo Hold', 'Cargo Hold'],
434
433
  },
@@ -440,8 +439,9 @@ export const entityMetadata: Record<number, EntityMetadata> = {
440
439
  moduleSlotLabels: ['Fabricator', 'Fabricator', 'Fabricator', 'Fabricator', 'Fabricator'],
441
440
  },
442
441
  10209: {moduleSlotLabels: ['Power Core', 'Assembly Arm']},
443
- 20210: {moduleSlotLabels: ['Power Core', 'Power Core', 'Engine', 'Limpet Bay']},
444
- 20211: {moduleSlotLabels: ['Power Core', 'Engine', 'Tractor Beam', 'Tractor Beam']},
442
+ 20212: {moduleSlotLabels: ['Power Core', 'Engine', 'Limpet Bay']},
443
+ 20213: {moduleSlotLabels: ['Power Core', 'Engine', 'Auxiliary System', 'Limpet Bay']},
444
+ 20214: {moduleSlotLabels: ['Power Core', 'Engine', 'Limpet Bay', 'Cargo Hold']},
445
445
  }
446
446
 
447
447
  for (const item of items as Array<{id: number}>) {
@@ -1595,125 +1595,31 @@
1595
1595
  "sourceSubclass": 10210
1596
1596
  },
1597
1597
  {
1598
- "outputItemId": 10216,
1599
- "outputMass": 3600000,
1600
- "inputs": [
1601
- {
1602
- "itemId": 10005,
1603
- "quantity": 150
1604
- },
1605
- {
1606
- "itemId": 10002,
1607
- "quantity": 150
1608
- },
1609
- {
1610
- "itemId": 10010,
1611
- "quantity": 150
1612
- },
1613
- {
1614
- "itemId": 10009,
1615
- "quantity": 150
1616
- },
1617
- {
1618
- "itemId": 10004,
1619
- "quantity": 150
1620
- },
1621
- {
1622
- "itemId": 10211,
1623
- "quantity": 1
1624
- }
1625
- ],
1626
- "statSlots": [
1627
- {
1628
- "sources": [
1629
- {
1630
- "inputIndex": 0,
1631
- "statIndex": 0
1632
- },
1633
- {
1634
- "inputIndex": 5,
1635
- "statIndex": 0
1636
- }
1637
- ]
1638
- },
1639
- {
1640
- "sources": [
1641
- {
1642
- "inputIndex": 1,
1643
- "statIndex": 0
1644
- },
1645
- {
1646
- "inputIndex": 5,
1647
- "statIndex": 1
1648
- }
1649
- ]
1650
- },
1651
- {
1652
- "sources": [
1653
- {
1654
- "inputIndex": 2,
1655
- "statIndex": 0
1656
- },
1657
- {
1658
- "inputIndex": 5,
1659
- "statIndex": 2
1660
- }
1661
- ]
1662
- },
1663
- {
1664
- "sources": [
1665
- {
1666
- "inputIndex": 3,
1667
- "statIndex": 0
1668
- },
1669
- {
1670
- "inputIndex": 5,
1671
- "statIndex": 3
1672
- }
1673
- ]
1674
- },
1675
- {
1676
- "sources": [
1677
- {
1678
- "inputIndex": 4,
1679
- "statIndex": 0
1680
- },
1681
- {
1682
- "inputIndex": 5,
1683
- "statIndex": 4
1684
- }
1685
- ]
1686
- }
1687
- ],
1688
- "blendWeights": [],
1689
- "sourceSubclass": 10211
1690
- },
1691
- {
1692
- "outputItemId": 10217,
1693
- "outputMass": 3600000,
1598
+ "outputItemId": 10218,
1599
+ "outputMass": 2400000,
1694
1600
  "inputs": [
1695
1601
  {
1696
1602
  "itemId": 10005,
1697
- "quantity": 150
1603
+ "quantity": 100
1698
1604
  },
1699
1605
  {
1700
1606
  "itemId": 10002,
1701
- "quantity": 150
1607
+ "quantity": 100
1702
1608
  },
1703
1609
  {
1704
1610
  "itemId": 10010,
1705
- "quantity": 150
1611
+ "quantity": 100
1706
1612
  },
1707
1613
  {
1708
1614
  "itemId": 10009,
1709
- "quantity": 150
1615
+ "quantity": 100
1710
1616
  },
1711
1617
  {
1712
1618
  "itemId": 10004,
1713
- "quantity": 150
1619
+ "quantity": 100
1714
1620
  },
1715
1621
  {
1716
- "itemId": 10211,
1622
+ "itemId": 10210,
1717
1623
  "quantity": 1
1718
1624
  }
1719
1625
  ],
@@ -1780,7 +1686,7 @@
1780
1686
  }
1781
1687
  ],
1782
1688
  "blendWeights": [],
1783
- "sourceSubclass": 10211
1689
+ "sourceSubclass": 10210
1784
1690
  },
1785
1691
  {
1786
1692
  "outputItemId": 20001,
@@ -2365,8 +2271,102 @@
2365
2271
  "sourceSubclass": 10200
2366
2272
  },
2367
2273
  {
2368
- "outputItemId": 20210,
2369
- "outputMass": 3840000,
2274
+ "outputItemId": 20212,
2275
+ "outputMass": 4320000,
2276
+ "inputs": [
2277
+ {
2278
+ "itemId": 20001,
2279
+ "quantity": 200
2280
+ },
2281
+ {
2282
+ "itemId": 20008,
2283
+ "quantity": 200
2284
+ },
2285
+ {
2286
+ "itemId": 20007,
2287
+ "quantity": 200
2288
+ },
2289
+ {
2290
+ "itemId": 20003,
2291
+ "quantity": 200
2292
+ },
2293
+ {
2294
+ "itemId": 20006,
2295
+ "quantity": 200
2296
+ },
2297
+ {
2298
+ "itemId": 10211,
2299
+ "quantity": 1
2300
+ }
2301
+ ],
2302
+ "statSlots": [
2303
+ {
2304
+ "sources": [
2305
+ {
2306
+ "inputIndex": 0,
2307
+ "statIndex": 0
2308
+ },
2309
+ {
2310
+ "inputIndex": 5,
2311
+ "statIndex": 0
2312
+ }
2313
+ ]
2314
+ },
2315
+ {
2316
+ "sources": [
2317
+ {
2318
+ "inputIndex": 1,
2319
+ "statIndex": 0
2320
+ },
2321
+ {
2322
+ "inputIndex": 5,
2323
+ "statIndex": 1
2324
+ }
2325
+ ]
2326
+ },
2327
+ {
2328
+ "sources": [
2329
+ {
2330
+ "inputIndex": 2,
2331
+ "statIndex": 0
2332
+ },
2333
+ {
2334
+ "inputIndex": 5,
2335
+ "statIndex": 2
2336
+ }
2337
+ ]
2338
+ },
2339
+ {
2340
+ "sources": [
2341
+ {
2342
+ "inputIndex": 3,
2343
+ "statIndex": 0
2344
+ },
2345
+ {
2346
+ "inputIndex": 5,
2347
+ "statIndex": 3
2348
+ }
2349
+ ]
2350
+ },
2351
+ {
2352
+ "sources": [
2353
+ {
2354
+ "inputIndex": 4,
2355
+ "statIndex": 0
2356
+ },
2357
+ {
2358
+ "inputIndex": 5,
2359
+ "statIndex": 4
2360
+ }
2361
+ ]
2362
+ }
2363
+ ],
2364
+ "blendWeights": [],
2365
+ "sourceSubclass": 10211
2366
+ },
2367
+ {
2368
+ "outputItemId": 20213,
2369
+ "outputMass": 5760000,
2370
2370
  "inputs": [
2371
2371
  {
2372
2372
  "itemId": 20005,
@@ -2389,7 +2389,7 @@
2389
2389
  "quantity": 150
2390
2390
  },
2391
2391
  {
2392
- "itemId": 10211,
2392
+ "itemId": 20212,
2393
2393
  "quantity": 1
2394
2394
  }
2395
2395
  ],
@@ -2456,11 +2456,11 @@
2456
2456
  }
2457
2457
  ],
2458
2458
  "blendWeights": [],
2459
- "sourceSubclass": 10211
2459
+ "sourceSubclass": 20212
2460
2460
  },
2461
2461
  {
2462
- "outputItemId": 20211,
2463
- "outputMass": 3840000,
2462
+ "outputItemId": 20214,
2463
+ "outputMass": 5760000,
2464
2464
  "inputs": [
2465
2465
  {
2466
2466
  "itemId": 20005,
@@ -2483,7 +2483,7 @@
2483
2483
  "quantity": 150
2484
2484
  },
2485
2485
  {
2486
- "itemId": 10214,
2486
+ "itemId": 20212,
2487
2487
  "quantity": 1
2488
2488
  }
2489
2489
  ],
@@ -2550,6 +2550,6 @@
2550
2550
  }
2551
2551
  ],
2552
2552
  "blendWeights": [],
2553
- "sourceSubclass": 10214
2553
+ "sourceSubclass": 20212
2554
2554
  }
2555
2555
  ]