@shipload/sdk 1.0.0-next.27 → 1.0.0-next.29
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/lib/shipload.d.ts +10 -2
- package/lib/shipload.js +83 -48
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +76 -48
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.js +3 -3
- package/lib/testing.js.map +1 -1
- package/lib/testing.m.js +3 -3
- package/lib/testing.m.js.map +1 -1
- package/package.json +1 -1
- package/src/capabilities/storage.ts +15 -0
- package/src/data/colors.ts +1 -1
- package/src/data/item-ids.ts +1 -1
- package/src/data/metadata.ts +3 -3
- package/src/data/recipes.json +10 -10
- package/src/derivation/capabilities.ts +11 -11
- package/src/derivation/index.ts +9 -0
- package/src/derivation/stars.test.ts +51 -0
- package/src/derivation/stars.ts +15 -0
- package/src/derivation/stats.ts +5 -4
- package/src/entities/makers.ts +1 -1
- package/src/index-module.ts +9 -0
- package/src/nft/buildImmutableData.ts +13 -11
- package/src/nft/description.ts +2 -2
- package/src/resolution/resolve-item.ts +2 -2
- package/src/scheduling/projection.ts +2 -2
package/lib/shipload.m.js
CHANGED
|
@@ -3033,7 +3033,7 @@ const ITEM_SENSOR = 10006;
|
|
|
3033
3033
|
const ITEM_POLYMER = 10007;
|
|
3034
3034
|
const ITEM_CERAMIC = 10008;
|
|
3035
3035
|
const ITEM_REACTOR = 10009;
|
|
3036
|
-
const
|
|
3036
|
+
const ITEM_RESIN = 10010;
|
|
3037
3037
|
const ITEM_ENGINE_T1 = 10100;
|
|
3038
3038
|
const ITEM_GENERATOR_T1 = 10101;
|
|
3039
3039
|
const ITEM_GATHERER_T1 = 10102;
|
|
@@ -3108,8 +3108,8 @@ var recipes = [
|
|
|
3108
3108
|
{
|
|
3109
3109
|
sources: [
|
|
3110
3110
|
{
|
|
3111
|
-
inputIndex:
|
|
3112
|
-
statIndex:
|
|
3111
|
+
inputIndex: 0,
|
|
3112
|
+
statIndex: 0
|
|
3113
3113
|
}
|
|
3114
3114
|
]
|
|
3115
3115
|
}
|
|
@@ -3156,7 +3156,7 @@ var recipes = [
|
|
|
3156
3156
|
quantity: 6
|
|
3157
3157
|
},
|
|
3158
3158
|
{
|
|
3159
|
-
itemId:
|
|
3159
|
+
itemId: 101,
|
|
3160
3160
|
quantity: 9
|
|
3161
3161
|
}
|
|
3162
3162
|
],
|
|
@@ -3344,11 +3344,11 @@ var recipes = [
|
|
|
3344
3344
|
outputMass: 6000,
|
|
3345
3345
|
inputs: [
|
|
3346
3346
|
{
|
|
3347
|
-
itemId:
|
|
3347
|
+
itemId: 501,
|
|
3348
3348
|
quantity: 6
|
|
3349
3349
|
},
|
|
3350
3350
|
{
|
|
3351
|
-
itemId:
|
|
3351
|
+
itemId: 201,
|
|
3352
3352
|
quantity: 9
|
|
3353
3353
|
}
|
|
3354
3354
|
],
|
|
@@ -3357,7 +3357,7 @@ var recipes = [
|
|
|
3357
3357
|
sources: [
|
|
3358
3358
|
{
|
|
3359
3359
|
inputIndex: 0,
|
|
3360
|
-
statIndex:
|
|
3360
|
+
statIndex: 2
|
|
3361
3361
|
}
|
|
3362
3362
|
]
|
|
3363
3363
|
},
|
|
@@ -3365,7 +3365,7 @@ var recipes = [
|
|
|
3365
3365
|
sources: [
|
|
3366
3366
|
{
|
|
3367
3367
|
inputIndex: 0,
|
|
3368
|
-
statIndex:
|
|
3368
|
+
statIndex: 0
|
|
3369
3369
|
}
|
|
3370
3370
|
]
|
|
3371
3371
|
}
|
|
@@ -3623,7 +3623,7 @@ var recipes = [
|
|
|
3623
3623
|
sources: [
|
|
3624
3624
|
{
|
|
3625
3625
|
inputIndex: 1,
|
|
3626
|
-
statIndex:
|
|
3626
|
+
statIndex: 1
|
|
3627
3627
|
}
|
|
3628
3628
|
]
|
|
3629
3629
|
},
|
|
@@ -3644,7 +3644,7 @@ var recipes = [
|
|
|
3644
3644
|
outputMass: 1400000,
|
|
3645
3645
|
inputs: [
|
|
3646
3646
|
{
|
|
3647
|
-
itemId:
|
|
3647
|
+
itemId: 10004,
|
|
3648
3648
|
quantity: 300
|
|
3649
3649
|
},
|
|
3650
3650
|
{
|
|
@@ -3657,7 +3657,7 @@ var recipes = [
|
|
|
3657
3657
|
sources: [
|
|
3658
3658
|
{
|
|
3659
3659
|
inputIndex: 0,
|
|
3660
|
-
statIndex:
|
|
3660
|
+
statIndex: 0
|
|
3661
3661
|
},
|
|
3662
3662
|
{
|
|
3663
3663
|
inputIndex: 1,
|
|
@@ -4910,9 +4910,9 @@ const itemMetadata = {
|
|
|
4910
4910
|
color: '#B877FF',
|
|
4911
4911
|
},
|
|
4912
4912
|
10010: {
|
|
4913
|
-
name: '
|
|
4914
|
-
description: '
|
|
4915
|
-
color: '#
|
|
4913
|
+
name: 'Resin',
|
|
4914
|
+
description: 'Saturated organic binder cured from biomass. A pliable matrix for haulage and field components.',
|
|
4915
|
+
color: '#5A8B3E',
|
|
4916
4916
|
},
|
|
4917
4917
|
10100: {
|
|
4918
4918
|
name: 'Engine',
|
|
@@ -9157,10 +9157,10 @@ const GAS_STATS = [
|
|
|
9157
9157
|
];
|
|
9158
9158
|
const REGOLITH_STATS = [
|
|
9159
9159
|
{
|
|
9160
|
-
key: '
|
|
9161
|
-
label: '
|
|
9162
|
-
abbreviation: '
|
|
9163
|
-
purpose: '
|
|
9160
|
+
key: 'cohesion',
|
|
9161
|
+
label: 'Cohesion',
|
|
9162
|
+
abbreviation: 'COH',
|
|
9163
|
+
purpose: 'Binding strength of the loose aggregate; higher cohesion yields more rigid frames and hulls',
|
|
9164
9164
|
},
|
|
9165
9165
|
{
|
|
9166
9166
|
key: 'hardness',
|
|
@@ -9492,6 +9492,19 @@ function encodeGatheredCargoStats(depositSeed) {
|
|
|
9492
9492
|
return UInt64.from(encodeStats([raw.stat1, raw.stat2, raw.stat3]));
|
|
9493
9493
|
}
|
|
9494
9494
|
|
|
9495
|
+
const STAR_STEP = 250;
|
|
9496
|
+
const MAX_STARS_PER_STAT = 3;
|
|
9497
|
+
const MAX_STAR_RATING = MAX_STARS_PER_STAT * 3;
|
|
9498
|
+
function starsForStat(value) {
|
|
9499
|
+
return Math.max(0, Math.min(MAX_STARS_PER_STAT, Math.floor(value / STAR_STEP)));
|
|
9500
|
+
}
|
|
9501
|
+
function starRating(stat1, stat2, stat3) {
|
|
9502
|
+
return starsForStat(stat1) + starsForStat(stat2) + starsForStat(stat3);
|
|
9503
|
+
}
|
|
9504
|
+
function statMagnitude(stat1, stat2, stat3) {
|
|
9505
|
+
return stat1 + stat2 + stat3;
|
|
9506
|
+
}
|
|
9507
|
+
|
|
9495
9508
|
class LocationsManager extends BaseManager {
|
|
9496
9509
|
async hasSystem(location) {
|
|
9497
9510
|
const game = await this.getGame();
|
|
@@ -12309,7 +12322,7 @@ function computeBaseHullmass$1(stats) {
|
|
|
12309
12322
|
return 100000 - 75 * stats.density;
|
|
12310
12323
|
}
|
|
12311
12324
|
function computeShipHullCapabilities(stats) {
|
|
12312
|
-
const statSum = stats.strength + stats.hardness + stats.
|
|
12325
|
+
const statSum = stats.strength + stats.hardness + stats.cohesion;
|
|
12313
12326
|
const exponent = statSum / 2997.0;
|
|
12314
12327
|
return {
|
|
12315
12328
|
hullmass: computeBaseHullmass$1(stats),
|
|
@@ -12381,11 +12394,11 @@ function computeCrafterCapabilities(stats) {
|
|
|
12381
12394
|
}
|
|
12382
12395
|
function computeHaulerCapabilities(stats) {
|
|
12383
12396
|
const resonance = stats.resonance;
|
|
12384
|
-
const
|
|
12397
|
+
const plasticity = stats.plasticity;
|
|
12385
12398
|
const reflectivity = stats.reflectivity;
|
|
12386
12399
|
return {
|
|
12387
12400
|
capacity: Math.max(1, 1 + Math.floor(resonance / 400)),
|
|
12388
|
-
efficiency: 2000 +
|
|
12401
|
+
efficiency: 2000 + plasticity * 6,
|
|
12389
12402
|
drain: Math.max(3, 15 - Math.floor(reflectivity / 80)),
|
|
12390
12403
|
};
|
|
12391
12404
|
}
|
|
@@ -12393,8 +12406,8 @@ function computeStorageCapabilities(stats, baseCapacity) {
|
|
|
12393
12406
|
const strength = stats.strength;
|
|
12394
12407
|
const density = stats.density;
|
|
12395
12408
|
const hardness = stats.hardness;
|
|
12396
|
-
const
|
|
12397
|
-
const statSum = strength + density + hardness +
|
|
12409
|
+
const cohesion = stats.cohesion;
|
|
12410
|
+
const statSum = strength + density + hardness + cohesion;
|
|
12398
12411
|
const capacityBonus = Math.floor((baseCapacity * (10 + Math.floor((statSum * 10) / 2997))) / 100);
|
|
12399
12412
|
return { capacityBonus };
|
|
12400
12413
|
}
|
|
@@ -12415,11 +12428,11 @@ function computeBaseCapacity(itemId, stats) {
|
|
|
12415
12428
|
}
|
|
12416
12429
|
}
|
|
12417
12430
|
function computeWarpCapabilities(stats) {
|
|
12418
|
-
const
|
|
12419
|
-
return { range: 100 +
|
|
12431
|
+
const resonance = stats.resonance;
|
|
12432
|
+
return { range: 100 + resonance * 3 };
|
|
12420
12433
|
}
|
|
12421
12434
|
function computeWarehouseHullCapabilities(stats) {
|
|
12422
|
-
const statSum = stats.strength + stats.hardness + stats.
|
|
12435
|
+
const statSum = stats.strength + stats.hardness + stats.cohesion;
|
|
12423
12436
|
const exponent = statSum / 2997.0;
|
|
12424
12437
|
return {
|
|
12425
12438
|
hullmass: computeBaseHullmass$1(stats),
|
|
@@ -12570,7 +12583,7 @@ function computeEntityCapabilities(stats, itemId, modules, layout) {
|
|
|
12570
12583
|
return result;
|
|
12571
12584
|
}
|
|
12572
12585
|
function computeContainerCapabilities(stats) {
|
|
12573
|
-
const statSum = stats.strength + stats.hardness + stats.
|
|
12586
|
+
const statSum = stats.strength + stats.hardness + stats.cohesion;
|
|
12574
12587
|
const exponent = statSum / 2997.0;
|
|
12575
12588
|
return {
|
|
12576
12589
|
hullmass: computeBaseHullmass$1(stats),
|
|
@@ -12581,9 +12594,9 @@ function computeContainerT2Capabilities(stats) {
|
|
|
12581
12594
|
const strength = stats.strength;
|
|
12582
12595
|
const density = stats.density;
|
|
12583
12596
|
const hardness = stats.hardness;
|
|
12584
|
-
const
|
|
12597
|
+
const cohesion = stats.cohesion;
|
|
12585
12598
|
const hullmass = 70000 - 50 * density;
|
|
12586
|
-
const statSum = strength + hardness +
|
|
12599
|
+
const statSum = strength + hardness + cohesion;
|
|
12587
12600
|
const exponent = statSum / 2947;
|
|
12588
12601
|
const capacity = Math.floor(24000000 * 6 ** exponent);
|
|
12589
12602
|
return { hullmass, capacity };
|
|
@@ -12618,7 +12631,7 @@ const ZERO_HULL_STATS = {
|
|
|
12618
12631
|
density: 0,
|
|
12619
12632
|
strength: 0,
|
|
12620
12633
|
hardness: 0,
|
|
12621
|
-
|
|
12634
|
+
cohesion: 0,
|
|
12622
12635
|
};
|
|
12623
12636
|
function makeEntity(packedItemId, state) {
|
|
12624
12637
|
const template = getTemplateMeta(packedItemId);
|
|
@@ -13335,6 +13348,19 @@ function removeFromStacks(stacks, remove) {
|
|
|
13335
13348
|
result[idx] = { ...target, quantity: remaining };
|
|
13336
13349
|
return result;
|
|
13337
13350
|
}
|
|
13351
|
+
function subtractFromStacks(stacks, remove) {
|
|
13352
|
+
const idx = stacks.findIndex((s) => stackIdentityEqual(s, remove));
|
|
13353
|
+
if (idx === -1) {
|
|
13354
|
+
return stacks;
|
|
13355
|
+
}
|
|
13356
|
+
const target = stacks[idx];
|
|
13357
|
+
if (target.quantity.lte(remove.quantity)) {
|
|
13358
|
+
return [...stacks.slice(0, idx), ...stacks.slice(idx + 1)];
|
|
13359
|
+
}
|
|
13360
|
+
const result = stacks.slice();
|
|
13361
|
+
result[idx] = { ...target, quantity: UInt32.from(target.quantity.subtracting(remove.quantity)) };
|
|
13362
|
+
return result;
|
|
13363
|
+
}
|
|
13338
13364
|
|
|
13339
13365
|
function toInstalledModules(modules) {
|
|
13340
13366
|
if (modules.length > 0 && 'itemId' in modules[0]) {
|
|
@@ -13466,7 +13492,7 @@ function addCargoItem(projected, item) {
|
|
|
13466
13492
|
projected.cargo = mergeStacks(projected.cargo, cargoItemToStack(item));
|
|
13467
13493
|
}
|
|
13468
13494
|
function removeCargoItem(projected, item) {
|
|
13469
|
-
projected.cargo =
|
|
13495
|
+
projected.cargo = subtractFromStacks(projected.cargo, cargoItemToStack(item));
|
|
13470
13496
|
}
|
|
13471
13497
|
function applyAddCargoTask(projected, task) {
|
|
13472
13498
|
for (const item of task.cargo) {
|
|
@@ -13963,7 +13989,7 @@ const itemAbbreviations = {
|
|
|
13963
13989
|
10007: 'PM',
|
|
13964
13990
|
10008: 'CR',
|
|
13965
13991
|
10009: 'RX',
|
|
13966
|
-
10010: '
|
|
13992
|
+
10010: 'RE',
|
|
13967
13993
|
10100: 'EN',
|
|
13968
13994
|
10101: 'GN',
|
|
13969
13995
|
10102: 'EX',
|
|
@@ -14455,8 +14481,8 @@ function computeCapabilityGroup(moduleType, stats, tier) {
|
|
|
14455
14481
|
const str = stats.strength;
|
|
14456
14482
|
const den = stats.density;
|
|
14457
14483
|
const hrd = stats.hardness;
|
|
14458
|
-
const
|
|
14459
|
-
const statSum = str + den + hrd +
|
|
14484
|
+
const com = stats.cohesion;
|
|
14485
|
+
const statSum = str + den + hrd + com;
|
|
14460
14486
|
const pct = 10 + Math.floor((statSum * 10) / 2997);
|
|
14461
14487
|
return { capability: 'Storage', attributes: [{ label: 'Capacity Bonus', value: pct }] };
|
|
14462
14488
|
}
|
|
@@ -14824,9 +14850,9 @@ function formatModuleLine(slot, itemId, stats) {
|
|
|
14824
14850
|
}
|
|
14825
14851
|
case MODULE_HAULER: {
|
|
14826
14852
|
const res = decodeStat(stats, 0);
|
|
14827
|
-
const
|
|
14853
|
+
const pla = decodeStat(stats, 1);
|
|
14828
14854
|
const ref = decodeStat(stats, 2);
|
|
14829
|
-
out += ` Capacity ${computeHaulerCapacity(res)} Efficiency ${computeHaulerEfficiency(
|
|
14855
|
+
out += ` Capacity ${computeHaulerCapacity(res)} Efficiency ${computeHaulerEfficiency(pla)} Drain ${computeHaulerDrain(ref)}`;
|
|
14830
14856
|
break;
|
|
14831
14857
|
}
|
|
14832
14858
|
case MODULE_WARP: {
|
|
@@ -14983,21 +15009,23 @@ function buildModuleImmutable(itemId, quantity, stats, originX, originY) {
|
|
|
14983
15009
|
}
|
|
14984
15010
|
case MODULE_CRAFTER: {
|
|
14985
15011
|
const rea = decodeStat(stats, 0);
|
|
14986
|
-
const
|
|
15012
|
+
const fin = decodeStat(stats, 1);
|
|
14987
15013
|
base.push({ first: 'reactivity', second: ['uint16', rea] });
|
|
14988
|
-
base.push({ first: '
|
|
15014
|
+
base.push({ first: 'fineness', second: ['uint16', fin] });
|
|
14989
15015
|
base.push({ first: 'speed', second: ['uint16', computeCrafterSpeed(rea)] });
|
|
14990
|
-
base.push({ first: 'drain', second: ['uint16', computeCrafterDrain(
|
|
15016
|
+
base.push({ first: 'drain', second: ['uint16', computeCrafterDrain(fin)] });
|
|
14991
15017
|
break;
|
|
14992
15018
|
}
|
|
14993
15019
|
case MODULE_STORAGE: {
|
|
14994
15020
|
const str = decodeStat(stats, 0);
|
|
14995
|
-
const
|
|
14996
|
-
const
|
|
14997
|
-
const
|
|
15021
|
+
const den = decodeStat(stats, 1);
|
|
15022
|
+
const hrd = decodeStat(stats, 2);
|
|
15023
|
+
const com = decodeStat(stats, 3);
|
|
15024
|
+
const sum = str + den + hrd + com;
|
|
14998
15025
|
base.push({ first: 'strength', second: ['uint16', str] });
|
|
14999
|
-
base.push({ first: '
|
|
15000
|
-
base.push({ first: '
|
|
15026
|
+
base.push({ first: 'density', second: ['uint16', den] });
|
|
15027
|
+
base.push({ first: 'hardness', second: ['uint16', hrd] });
|
|
15028
|
+
base.push({ first: 'cohesion', second: ['uint16', com] });
|
|
15001
15029
|
base.push({
|
|
15002
15030
|
first: 'capacity_bonus_pct',
|
|
15003
15031
|
second: ['uint16', 10 + Math.floor((sum * 10) / 2997)],
|
|
@@ -15006,13 +15034,13 @@ function buildModuleImmutable(itemId, quantity, stats, originX, originY) {
|
|
|
15006
15034
|
}
|
|
15007
15035
|
case MODULE_HAULER: {
|
|
15008
15036
|
const res = decodeStat(stats, 0);
|
|
15009
|
-
const
|
|
15037
|
+
const pla = decodeStat(stats, 1);
|
|
15010
15038
|
const ref = decodeStat(stats, 2);
|
|
15011
15039
|
base.push({ first: 'resonance', second: ['uint16', res] });
|
|
15012
|
-
base.push({ first: '
|
|
15040
|
+
base.push({ first: 'plasticity', second: ['uint16', pla] });
|
|
15013
15041
|
base.push({ first: 'reflectivity', second: ['uint16', ref] });
|
|
15014
15042
|
base.push({ first: 'capacity', second: ['uint8', computeHaulerCapacity(res)] });
|
|
15015
|
-
base.push({ first: 'efficiency', second: ['uint16', computeHaulerEfficiency(
|
|
15043
|
+
base.push({ first: 'efficiency', second: ['uint16', computeHaulerEfficiency(pla)] });
|
|
15016
15044
|
base.push({ first: 'drain', second: ['uint16', computeHaulerDrain(ref)] });
|
|
15017
15045
|
break;
|
|
15018
15046
|
}
|
|
@@ -15182,5 +15210,5 @@ function describeItem(resolved, opts) {
|
|
|
15182
15210
|
return `${tier} ${resolved.name} · ${mass}`;
|
|
15183
15211
|
}
|
|
15184
15212
|
|
|
15185
|
-
export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, ActionsManager, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, CANCEL_CONTAINS_GROUPED_TASK, CANCEL_PAIRED_HAS_PENDING, CAP_DEMOLISH, CAP_MODULES, CAP_UNDEPLOY, CAP_WRAP, CATEGORY_LABELS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, COMPONENT_TIER_PREFIXES, CONTAINER_NOT_FOUND, CONTAINER_Z, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, ConstructionManager, Coordinates, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, ENTITY_ALREADY_THERE, ENTITY_CAPACITY_EXCEEDED, ENTITY_CARGO_NOT_LOADED, ENTITY_CARGO_NOT_OWNED, ENTITY_CONTAINER, ENTITY_EXTRACTOR, ENTITY_FACTORY, ENTITY_INVALID_CARGO, ENTITY_INVALID_DESTINATION, ENTITY_INVALID_TRAVEL_DURATION, ENTITY_NEXUS, ENTITY_NOT_ENOUGH_ENERGY, ENTITY_NOT_ENOUGH_ENERGY_CAPACITY, ENTITY_NO_CRAFTER, ENTITY_SHIP, ENTITY_WAREHOUSE, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EntitiesManager, Entity, EntityClass, EntityInventory, EpochsManager, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHERER_DEPTH_MAX_TIER, GATHERER_DEPTH_TABLE, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_NOT_ENOUGH_ENERGY, GROUP_DUPLICATE_ENTITY, GROUP_EMPTY, GROUP_ENTITY_NOT_MOVABLE, GROUP_HAUL_CAPACITY_EXCEEDED, GROUP_NOT_FOUND, GROUP_NOT_SAME_LOCATION, GROUP_NOT_SAME_OWNER, GROUP_NO_THRUST, GameState, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_BATTERY_T1, ITEM_BEAM, ITEM_BIOMASS_T1, ITEM_BIOMASS_T10, ITEM_BIOMASS_T2, ITEM_BIOMASS_T3, ITEM_BIOMASS_T4, ITEM_BIOMASS_T5, ITEM_BIOMASS_T6, ITEM_BIOMASS_T7, ITEM_BIOMASS_T8, ITEM_BIOMASS_T9, ITEM_CERAMIC, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRYSTAL_T1, ITEM_CRYSTAL_T10, ITEM_CRYSTAL_T2, ITEM_CRYSTAL_T3, ITEM_CRYSTAL_T4, ITEM_CRYSTAL_T5, ITEM_CRYSTAL_T6, ITEM_CRYSTAL_T7, ITEM_CRYSTAL_T8, ITEM_CRYSTAL_T9, ITEM_DOES_NOT_EXIST,
|
|
15213
|
+
export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, ActionsManager, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, CANCEL_CONTAINS_GROUPED_TASK, CANCEL_PAIRED_HAS_PENDING, CAP_DEMOLISH, CAP_MODULES, CAP_UNDEPLOY, CAP_WRAP, CATEGORY_LABELS, COMMIT_ALREADY_SET, COMMIT_CANNOT_MATCH, COMMIT_NOT_SET, COMPANY_NOT_FOUND, COMPONENT_TIER_PREFIXES, CONTAINER_NOT_FOUND, CONTAINER_Z, CRAFT_ENERGY_DIVISOR, CRAFT_EXCEEDS_ENERGY_CAPACITY, CRAFT_NOT_ENOUGH_ENERGY, ConstructionManager, Coordinates, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, ENTITY_ALREADY_THERE, ENTITY_CAPACITY_EXCEEDED, ENTITY_CARGO_NOT_LOADED, ENTITY_CARGO_NOT_OWNED, ENTITY_CONTAINER, ENTITY_EXTRACTOR, ENTITY_FACTORY, ENTITY_INVALID_CARGO, ENTITY_INVALID_DESTINATION, ENTITY_INVALID_TRAVEL_DURATION, ENTITY_NEXUS, ENTITY_NOT_ENOUGH_ENERGY, ENTITY_NOT_ENOUGH_ENERGY_CAPACITY, ENTITY_NO_CRAFTER, ENTITY_SHIP, ENTITY_WAREHOUSE, EPOCH_NON_ZERO, EPOCH_NOT_READY, ERROR_SYSTEM_ALREADY_INITIALIZED, ERROR_SYSTEM_DISABLED, ERROR_SYSTEM_NOT_INITIALIZED, EntitiesManager, Entity, EntityClass, EntityInventory, EpochsManager, GAME_NOT_FOUND, GAME_SEED_NOT_SET, GATHERER_DEPTH_MAX_TIER, GATHERER_DEPTH_TABLE, GATHER_EXCEEDS_ENERGY_CAPACITY, GATHER_NOT_ENOUGH_ENERGY, GROUP_DUPLICATE_ENTITY, GROUP_EMPTY, GROUP_ENTITY_NOT_MOVABLE, GROUP_HAUL_CAPACITY_EXCEEDED, GROUP_NOT_FOUND, GROUP_NOT_SAME_LOCATION, GROUP_NOT_SAME_OWNER, GROUP_NO_THRUST, GameState, INSUFFICIENT_BALANCE, INSUFFICIENT_ITEM_QUANTITY, INSUFFICIENT_ITEM_SUPPLY, INVALID_AMOUNT, ITEM_BATTERY_T1, ITEM_BEAM, ITEM_BIOMASS_T1, ITEM_BIOMASS_T10, ITEM_BIOMASS_T2, ITEM_BIOMASS_T3, ITEM_BIOMASS_T4, ITEM_BIOMASS_T5, ITEM_BIOMASS_T6, ITEM_BIOMASS_T7, ITEM_BIOMASS_T8, ITEM_BIOMASS_T9, ITEM_CERAMIC, ITEM_CONTAINER_T1_PACKED, ITEM_CONTAINER_T2_PACKED, ITEM_CRAFTER_T1, ITEM_CRYSTAL_T1, ITEM_CRYSTAL_T10, ITEM_CRYSTAL_T2, ITEM_CRYSTAL_T3, ITEM_CRYSTAL_T4, ITEM_CRYSTAL_T5, ITEM_CRYSTAL_T6, ITEM_CRYSTAL_T7, ITEM_CRYSTAL_T8, ITEM_CRYSTAL_T9, ITEM_DOES_NOT_EXIST, ITEM_ENGINE_T1, ITEM_EXTRACTOR_T1_PACKED, ITEM_FACTORY_T1_PACKED, ITEM_FRAME, ITEM_FRAME_T2, ITEM_GAS_T1, ITEM_GAS_T10, ITEM_GAS_T2, ITEM_GAS_T3, ITEM_GAS_T4, ITEM_GAS_T5, ITEM_GAS_T6, ITEM_GAS_T7, ITEM_GAS_T8, ITEM_GAS_T9, ITEM_GATHERER_T1, ITEM_GENERATOR_T1, ITEM_HAULER_T1, ITEM_LOADER_T1, ITEM_NOT_AVAILABLE_AT_LOCATION, ITEM_NOT_DEPLOYABLE, ITEM_NOT_PACKED_ENTITY, ITEM_ORE_T1, ITEM_ORE_T10, ITEM_ORE_T2, ITEM_ORE_T3, ITEM_ORE_T4, ITEM_ORE_T5, ITEM_ORE_T6, ITEM_ORE_T7, ITEM_ORE_T8, ITEM_ORE_T9, ITEM_PLASMA_CELL, ITEM_PLATE, ITEM_PLATE_T2, ITEM_POLYMER, ITEM_REACTOR, ITEM_REGOLITH_T1, ITEM_REGOLITH_T10, ITEM_REGOLITH_T2, ITEM_REGOLITH_T3, ITEM_REGOLITH_T4, ITEM_REGOLITH_T5, ITEM_REGOLITH_T6, ITEM_REGOLITH_T7, ITEM_REGOLITH_T8, ITEM_REGOLITH_T9, ITEM_RESIN, ITEM_RESONATOR, ITEM_SENSOR, ITEM_SHIP_T1_PACKED, ITEM_STORAGE_T1, ITEM_TYPE_COMPONENT, ITEM_TYPE_ENTITY, ITEM_TYPE_MODULE, ITEM_TYPE_RESOURCE, ITEM_WAREHOUSE_T1_PACKED, ITEM_WARP_T1, InventoryAccessor, LANE_BARRIER, LANE_MOBILITY, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, Location, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE, MODULE_ANY, MODULE_BATTERY, MODULE_CARGO_NOT_FOUND, MODULE_CRAFTER, MODULE_ENGINE, MODULE_ENTITY_BUSY, MODULE_GATHERER, MODULE_GENERATOR, MODULE_HAULER, MODULE_LAUNCHER, MODULE_LOADER, MODULE_NOT_MODULE, MODULE_SLOT_EMPTY, MODULE_SLOT_INVALID, MODULE_SLOT_OCCUPIED, MODULE_STORAGE, MODULE_TIER_PREFIXES, MODULE_TYPE_MISMATCH, MODULE_WARP, index as NFT, NO_SCHEDULE, NftManager, PLANETARY_STRUCTURE_Z, PLANET_SUBTYPE_GAS_GIANT, PLANET_SUBTYPE_ICY, PLANET_SUBTYPE_INDUSTRIAL, PLANET_SUBTYPE_OCEAN, PLANET_SUBTYPE_ROCKY, PLANET_SUBTYPE_TERRESTRIAL, PLAYER_ALREADY_JOINED, PLAYER_NOT_FOUND, PLAYER_NOT_JOINED, PRECISION$1 as PRECISION, platform as PlatformContract, Types$1 as PlatformTypes, Player, PlayersManager, RECIPE_INPUTS_EXCESS, RECIPE_INPUTS_INSUFFICIENT, RECIPE_INPUTS_INVALID, RECIPE_INPUTS_MIXED, RECIPE_NOT_FOUND, REQUIRES_MORE_THAN_ONE, REQUIRES_POSITIVE_VALUE, RESERVE_TIERS, RESOLVE_COUNT_EXCEEDS_COMPLETED, RESOURCE_TIER_ADJECTIVES, SHIPLOAD_COLLECTION, SHIP_ALREADY_TRAVELING, SHIP_CANNOT_BUY_TRAVELING, SHIP_CANNOT_CANCEL_TASK, SHIP_CANNOT_UPDATE_TRAVELING, SHIP_NOT_ARRIVED, SHIP_NOT_FOUND, SHIP_NOT_IDLE, SHIP_NOT_OWNED, SHIP_NO_COMPLETED_TASKS, SHIP_NO_TASKS_TO_CANCEL, SLOT_FORMULAS, STAR_STEP, ScheduleAccessor, server as ServerContract, Types as ServerTypes, Shipload, SubscriptionsManager, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskType, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, WebSocketConnection, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, allBuildableItems, allPlotBuildableItems, availableBuildMethods, availableCapacity, availableCapacityFromMass, availableForItem, baseName, blendCargoStacks, blendComponentStacks, blendCrossGroup, blendStacks, buildComponentImmutable, buildEntityDescription, buildEntityImmutable, buildImmutableData, buildMintAssetAction, buildModuleImmutable, buildResourceImmutable, calcCargoItemMass, calcCargoMass, calcEnergyUsage, calcStacksMass, calc_acceleration, calc_craft_duration, calc_craft_energy, calc_energyusage, calc_flighttime, calc_gather_duration, calc_gather_energy, calc_gather_rate, calc_loader_acceleration, calc_loader_flighttime, calc_orbital_altitude, calc_rechargetime, calc_ship_acceleration, calc_ship_flighttime, calc_ship_mass, calc_ship_rechargetime, calc_transfer_duration, calculateFlightTime, calculateLoadTimeBreakdown, calculateRefuelingTime, calculateTransferTime, canMove, candidateLaneCompletesAt, capabilityAttributes, capabilityNames, capsHasCrafter, capsHasGatherer, capsHasHauler, capsHasLoaders, capsHasMass, capsHasMovement, capsHasStorage, cargoItem, cargoItemToStack, cargoReadyAt, cargoRef, cargoUtils, categoryColors, categoryFromIndex, categoryLabel, categoryLabelFromIndex, componentIcon, computeBaseCapacity, computeBaseCapacityShip, computeBaseCapacityWarehouse, computeBaseHullmass, computeComponentStats, computeContainerCapabilities, computeContainerT2Capabilities, computeCraftedOutputStats, computeCrafterCapabilities, computeCrafterDrain, computeCrafterSpeed, computeEngineCapabilities, computeEngineDrain, computeEngineThrust, computeEntityCapabilities, computeEntityStats, computeGathererCapabilities, computeGathererDepth, computeGathererDrain, computeGathererYield, computeGeneratorCap, computeGeneratorCapabilities, computeGeneratorRech, computeHaulPenalty, computeHaulerCapabilities, computeHaulerCapacity, computeHaulerDrain$1 as computeHaulerDrain, computeHaulerEfficiency, computeInputMass, computeLoaderCapabilities, computeLoaderMass, computeLoaderThrust, computeNftImageUrl, computeShipHullCapabilities, computeStorageCapabilities, computeWarehouseHullCapabilities, computeWarpCapabilities, computeWarpRange, coordsToLocationId, createInventoryAccessor, createProjectedEntity, createScheduleAccessor, decodeAtomicAsset, decodeCraftedItemStats, decodeStat, decodeStats, Shipload as default, deriveLocation, deriveLocationSize, deriveLocationStatic, deriveResourceStats, deriveStatMappings, deriveStrata, deriveStratum, describeItem, describeModule, describeModuleForItem, describeModuleForSlot, deserializeAsset, deserializeAtomicData, deserializeComponent, deserializeEntity, deserializeModule, deserializeResource, displayName, distanceBetweenCoordinates, distanceBetweenPoints, easeFlightProgress, encodeGatheredCargoStats, encodeStats, energyAtTime, energyPercent, entityDisplayName, estimateDealTravelTime, estimateTravelTime, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findNearbyPlanets, flightSpeedFactor, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatTier, gathererDepthForTier, getCapabilityAttributes, getCategoryInfo, getComponents, getCurrentEpoch, getDepthThreshold, getDestinationLocation, getEffectiveReserve, getEligibleResources, getEntityClass, getEntityItems, getEntityLayout, getEpochInfo, getFlightOrigin, getInterpolatedPosition, getItem, getItems, getKindMeta, getLocationCandidates, getLocationProfile, getLocationType, getLocationTypeName, getModuleCapabilityType, getModules, getPackedEntityType, getPlanetSubtype, getPlanetSubtypes, getPositionAt, getRecipe, getResourceTier, getResourceWeight, getResources, getStatDefinitions, getStatMappings, getStatMappingsForCapability, getStatMappingsForStat, getStatName, getSystemName, getTemplateMeta, hasEnergy, hasEnergyForDistance, hasGatherer, hasLoaders, hasMass, hasSchedule, hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, interpolateFlightPosition, isBuildable, isContainer, isCraftedItem, isExtractor, isFactory, isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isShip, isSubscriptionsDebugEnabled, isWarehouse, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, kindCan, laneKeyForModule, lerp$1 as lerp, makeEntity, mapEntity, maxCraftable, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, needsRecharge, parseWireEntity, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, rawScheduleEnd, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, subtractFromStacks, taskCargoChanges, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, validateSchedule, workerLaneKey, yieldThresholdAt };
|
|
15186
15214
|
//# sourceMappingURL=shipload.m.js.map
|