@shipload/sdk 1.0.0-next.32 → 1.0.0-next.33
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 +12 -2
- package/lib/shipload.js +86 -63
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +86 -64
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.js +19 -19
- package/lib/testing.m.js +19 -19
- package/package.json +1 -1
- package/src/capabilities/gathering.ts +20 -10
- package/src/data/items.json +19 -19
- package/src/data/recipes.json +29 -29
- package/src/derivation/capabilities.ts +1 -1
- package/src/index-module.ts +2 -0
- package/src/managers/nft.test.ts +14 -0
- package/src/managers/nft.ts +43 -1
- package/src/managers/plot.ts +0 -3
- package/src/nft/description.ts +1 -1
- package/src/types.ts +1 -1
package/lib/shipload.d.ts
CHANGED
|
@@ -1860,7 +1860,7 @@ declare const MIN_ORBITAL_ALTITUDE = 800;
|
|
|
1860
1860
|
declare const MAX_ORBITAL_ALTITUDE = 3000;
|
|
1861
1861
|
declare const BASE_ORBITAL_MASS = 100000;
|
|
1862
1862
|
declare const MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE = 100;
|
|
1863
|
-
declare const MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL =
|
|
1863
|
+
declare const MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL = 200;
|
|
1864
1864
|
interface ShipLike {
|
|
1865
1865
|
coordinates: Types.coordinates;
|
|
1866
1866
|
hullmass?: UInt32;
|
|
@@ -2782,9 +2782,19 @@ interface NftConfigForItem {
|
|
|
2782
2782
|
templateId: number;
|
|
2783
2783
|
schemaName: string;
|
|
2784
2784
|
}
|
|
2785
|
+
interface WrapDeposit {
|
|
2786
|
+
cost: bigint;
|
|
2787
|
+
refund: bigint;
|
|
2788
|
+
feePct: number;
|
|
2789
|
+
symbol: string;
|
|
2790
|
+
precision: number;
|
|
2791
|
+
tokenContract: string;
|
|
2792
|
+
}
|
|
2793
|
+
declare function resolveLockedAmount(cost: bigint, feePctBasisPoints: number): bigint;
|
|
2785
2794
|
declare class NftManager extends BaseManager {
|
|
2786
2795
|
private cache;
|
|
2787
2796
|
getNftConfigForItem(itemId: UInt64Type): Promise<NftConfigForItem | undefined>;
|
|
2797
|
+
getWrapDeposit(itemType: number, tier: number): Promise<WrapDeposit | null>;
|
|
2788
2798
|
}
|
|
2789
2799
|
|
|
2790
2800
|
type EntityInfo$1 = Types.entity_info;
|
|
@@ -4097,4 +4107,4 @@ type gatherer_stats = Types.gatherer_stats;
|
|
|
4097
4107
|
type location_static = Types.location_static;
|
|
4098
4108
|
type location_derived = Types.location_derived;
|
|
4099
4109
|
|
|
4100
|
-
export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, AckMessage, ActionsManager, AnyEntity, AtomicAssetRow, AtomicAttributeType, AtomicSchemaRow, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, BuildMethod, BuildState, BuildableTarget, CANCEL_CONTAINS_GROUPED_TASK, 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, CapabilityAttribute, CapabilityInput, CargoData, CargoMassInfo, CargoStack, CategoryInfo, CategoryStacks, ClientMessage, ComputedCapabilities, ConnectionState, ConstructionManager, Container, ContainerEntity, Coordinates, CoordinatesType, CounterpartLookup, CraftedItemCategory, CrafterCapability, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DecodedAtomicAsset, DerivedStratum, DescribeOptions, DisplayNameResult, Distance, 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, EffectiveReserveInput, EnergyCapability, EntitiesManager, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityInfo$1 as EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionHandle, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, Extractor, Factory, FetchAssetsOptions, FinalizerCapability, FinalizerEntityRef, FloatPosition, 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, GathererCapability, GathererDepthParams, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, HoldKind, 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, IdleResolveTarget, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, InstalledModule, InventoryAccessor, Item, ItemType, KindMeta, LANE_BARRIER, LANE_MOBILITY, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LaneView, LoadTimeBreakdown, LoaderCapability, Location, LocationStratum, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL, MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE, 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, MassCapability, MintAssetParams, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, Nexus, NftConfigForItem, NftManager, OrderedTask, OwnerSubscriptionHandle, 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, PackedModule, PackedModuleInput, PingMessage, PlanetSubtypeInfo, platform as PlatformContract, Types$1 as PlatformTypes, Player, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectedEntity, ProjectionOptions, 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, RawData, Recipe, RecipeInput, RecipeSlotInput, RenderDescriptionOptions, Reservation, ReserveTier, ResolvedAttributeGroup, ResolvedEvent, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedModuleSlot, ResourceCategory, ResourceStats, 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, ScheduleCapability, ScheduleData, ScheduledBuild, SchemaField, server as ServerContract, ServerMessage, Types as ServerTypes, Ship, ShipEntity, ShipLike, Shipload, SlotConsumer, SlotConsumerKind, SnapshotMessage, SourceCargoStack, SourceEntityRef, StackInput, StatDefinition, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskCargoChange, TaskCargoDirection, TaskType, TemplateMeta, TextSpan, TierRange, TransferEntity, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UpdateBoundsMessage, UpdateMessage, ValidateDisplayNameOptions, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, Warehouse, WarehouseEntity, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, allBuildableItems, allPlotBuildableItems, availableBuildMethods, availableCapacity$1 as 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, cargo_item, categoryColors, categoryFromIndex, categoryLabel, categoryLabelFromIndex, componentIcon, composeIdleResolve, 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, energy_stats, entityDisplayName, entity_row, estimateDealTravelTime, estimateTravelTime, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findNearbyPlanets, flightSpeedFactor, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatTier, gathererDepthForTier, gatherer_stats, 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$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, interpolateFlightPosition, isBuildable, isContainer, isCraftedItem, isExtractor, isFactory, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isShip, isSubscriptionsDebugEnabled, isWarehouse, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, kindCan, lane, laneKeyForModule, lerp, loader_stats, location_derived, location_static, makeEntity, mapEntity, maxCraftable, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, needsRecharge, normalizeDisplayName, parseWireEntity, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, rawScheduleEnd, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, subtractFromStacks, task, taskCargoChanges, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, validateDisplayName, validateSchedule, workerLaneKey, yieldThresholdAt };
|
|
4110
|
+
export { ALL_ENTITY_TYPES, ATOMICASSETS_ACCOUNT, AckMessage, ActionsManager, AnyEntity, AtomicAssetRow, AtomicAttributeType, AtomicSchemaRow, BASE_ORBITAL_MASS, BLEND_INPUTS_MUST_MATCH, BLEND_REQUIRES_MULTIPLE, BLEND_STAT_LESS_NOT_SUPPORTED, BoundingBox, BoundsDeltaMessage, BoundsSubscriptionHandle, BuildMethod, BuildState, BuildableTarget, CANCEL_CONTAINS_GROUPED_TASK, 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, CapabilityAttribute, CapabilityInput, CargoData, CargoMassInfo, CargoStack, CategoryInfo, CategoryStacks, ClientMessage, ComputedCapabilities, ConnectionState, ConstructionManager, Container, ContainerEntity, Coordinates, CoordinatesType, CounterpartLookup, CraftedItemCategory, CrafterCapability, DEPLOY_ENTITY_HAS_SCHEDULE, DEPTH_THRESHOLD_T1, DEPTH_THRESHOLD_T2, DEPTH_THRESHOLD_T3, DEPTH_THRESHOLD_T4, DEPTH_THRESHOLD_T5, DESTINATION_CAPACITY_EXCEEDED, DecodedAtomicAsset, DerivedStratum, DescribeOptions, DisplayNameResult, Distance, 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, EffectiveReserveInput, EnergyCapability, EntitiesManager, Entity$1 as Entity, EntityCapabilities, EntityClass, EntityInfo$1 as EntityInfo, EntityInstance, EntityInventory, EntityLayout, EntityRefInput, EntitySlot, EntityState, EntityStateInput, EntitySubscriptionHandle, EntityTypeName, EpochInfo, EpochsManager, ErrorMessage, EstimateTravelTimeOptions, EstimatedTravelTime, EventCatchupCompleteMessage, EventMessage, Extractor, Factory, FetchAssetsOptions, FinalizerCapability, FinalizerEntityRef, FloatPosition, 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, GathererCapability, GathererDepthParams, HasCapacity, HasCargo, HasCargomass, HasScheduleAndLocation, HoldKind, 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, IdleResolveTarget, ImmutableEntry, ImmutableModuleSlot, InboundTransfer, InstalledModule, InventoryAccessor, Item, ItemType, KindMeta, LANE_BARRIER, LANE_MOBILITY, LOCATION_MAX_DEPTH, LOCATION_MIN_DEPTH, LaneView, LoadTimeBreakdown, LoaderCapability, Location, LocationStratum, LocationType, LocationsManager, MAX_ORBITAL_ALTITUDE, MAX_STARS_PER_STAT, MAX_STAR_RATING, MIN_ORBITAL_ALTITUDE, MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL, MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE, 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, MassCapability, MintAssetParams, ModuleDescription, ModuleEntry, ModuleType, MovementCapability, index as NFT, NFTCargoItem, NFTCommonBase, NFTInstalledModule, NFTModuleSlot, NO_SCHEDULE, NamedStats, Nexus, NftConfigForItem, NftManager, OrderedTask, OwnerSubscriptionHandle, 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, PackedModule, PackedModuleInput, PingMessage, PlanetSubtypeInfo, platform as PlatformContract, Types$1 as PlatformTypes, Player, PlayerStateInput, PlayersManager, PongMessage, Projectable, ProjectedEntity, ProjectionOptions, 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, RawData, Recipe, RecipeInput, RecipeSlotInput, RenderDescriptionOptions, Reservation, ReserveTier, ResolvedAttributeGroup, ResolvedEvent, ResolvedItem, ResolvedItemStat, ResolvedItemType, ResolvedModuleSlot, ResourceCategory, ResourceStats, 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, ScheduleCapability, ScheduleData, ScheduledBuild, SchemaField, server as ServerContract, ServerMessage, Types as ServerTypes, Ship, ShipEntity, ShipLike, Shipload, SlotConsumer, SlotConsumerKind, SnapshotMessage, SourceCargoStack, SourceEntityRef, StackInput, StatDefinition, StatMapping, StatSlot, StorageCapability, StratumInfo, SubscribeEntityMessage, SubscribeEventsMessage, SubscribeMessage, SubscriptionEntityType, SubscriptionsManager, SubscriptionsOptions, TIER_ROLL_MAX, TRAVEL_MAX_DURATION, TaskCancelable, TaskCargoChange, TaskCargoDirection, TaskType, TemplateMeta, TextSpan, TierRange, TransferEntity, UnsubscribeEntityMessage, UnsubscribeEventsMessage, UnsubscribeMessage, UpdateBoundsMessage, UpdateMessage, ValidateDisplayNameOptions, WAREHOUSE_ALREADY_AT_LOCATION, WAREHOUSE_NOT_FOUND, WARP_HAS_CARGO, WARP_HAS_SCHEDULE, WARP_NOT_FULL_ENERGY, WARP_NO_CAPABILITY, WARP_OUT_OF_RANGE, Warehouse, WarehouseEntity, WebSocketConnection, WebSocketConnectionOptions, WireCoordinates, WireEntity, WrapDeposit, YIELD_FRACTION_DEEP, YIELD_FRACTION_SHALLOW, allBuildableItems, allPlotBuildableItems, availableBuildMethods, availableCapacity$1 as 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, cargo_item, categoryColors, categoryFromIndex, categoryLabel, categoryLabelFromIndex, componentIcon, composeIdleResolve, 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, energy_stats, entityDisplayName, entity_row, estimateDealTravelTime, estimateTravelTime, fetchAtomicAssetsForOwner, fetchAtomicSchemas, filterByBuildMethod, findNearbyPlanets, flightSpeedFactor, formatLocation, formatMass, formatMassDelta, formatMassScaled, formatModuleLine, formatTier, gathererDepthForTier, gatherer_stats, 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$1 as hasSpace, hasSpaceForMass, hasStorage, hasSystem, hash, hash512, interpolateFlightPosition, isBuildable, isContainer, isCraftedItem, isExtractor, isFactory, isFull$1 as isFull, isFullFromMass, isGatherableLocation, isInvertedAttribute, isLocationBuildable, isModuleItem, isNexus, isPlot, isPlotBuildable, isRelatedItem, isShip, isSubscriptionsDebugEnabled, isWarehouse, itemAbbreviations, itemCategory, itemIds, itemOffset, itemTier, itemTypeCode, kindCan, lane, laneKeyForModule, lerp, loader_stats, location_derived, location_static, makeEntity, mapEntity, maxCraftable, maxTravelDistance, mergeStacks, moduleAccepts, moduleDisplayName, moduleIcon, moduleSlotTypeToCode, movement_stats, needsRecharge, normalizeDisplayName, parseWireEntity, projectEntity, projectEntityAt, projectRemainingAt, projectedCargoAvailableAt, rawScheduleEnd, readCommonBase, removeFromStacks, renderDescription, resolveItem, resolveItemCategory, resolveLockedAmount, resolveStats, rollTier, rollWithinTier, rotation, schedule, setSubscriptionsDebug, stackKey, stackToCargoItem, stacksEqual, starRating, starsForStat, statMagnitude, subtractFromStacks, task, taskCargoChanges, taskCargoEffect, tierAdjective, tierColors, tierOfReserve, toLocation, typeLabel, validateDisplayName, validateSchedule, workerLaneKey, yieldThresholdAt };
|
package/lib/shipload.js
CHANGED
|
@@ -2946,7 +2946,7 @@ const MIN_ORBITAL_ALTITUDE = 800;
|
|
|
2946
2946
|
const MAX_ORBITAL_ALTITUDE = 3000;
|
|
2947
2947
|
const BASE_ORBITAL_MASS = 100000;
|
|
2948
2948
|
const MIN_TRANSFER_DISTANCE_PLANETARY_STRUCTURE = 100;
|
|
2949
|
-
const MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL =
|
|
2949
|
+
const MIN_TRANSFER_DISTANCE_ORBITAL_VESSEL = 200;
|
|
2950
2950
|
exports.TaskType = void 0;
|
|
2951
2951
|
(function (TaskType) {
|
|
2952
2952
|
TaskType[TaskType["IDLE"] = 0] = "IDLE";
|
|
@@ -3144,15 +3144,15 @@ var recipes = [
|
|
|
3144
3144
|
},
|
|
3145
3145
|
{
|
|
3146
3146
|
outputItemId: 10002,
|
|
3147
|
-
outputMass:
|
|
3147
|
+
outputMass: 4000,
|
|
3148
3148
|
inputs: [
|
|
3149
3149
|
{
|
|
3150
3150
|
itemId: 401,
|
|
3151
|
-
quantity:
|
|
3151
|
+
quantity: 5
|
|
3152
3152
|
},
|
|
3153
3153
|
{
|
|
3154
3154
|
itemId: 501,
|
|
3155
|
-
quantity:
|
|
3155
|
+
quantity: 5
|
|
3156
3156
|
}
|
|
3157
3157
|
],
|
|
3158
3158
|
statSlots: [
|
|
@@ -3208,15 +3208,15 @@ var recipes = [
|
|
|
3208
3208
|
},
|
|
3209
3209
|
{
|
|
3210
3210
|
outputItemId: 10004,
|
|
3211
|
-
outputMass:
|
|
3211
|
+
outputMass: 4000,
|
|
3212
3212
|
inputs: [
|
|
3213
3213
|
{
|
|
3214
3214
|
itemId: 201,
|
|
3215
|
-
quantity:
|
|
3215
|
+
quantity: 5
|
|
3216
3216
|
},
|
|
3217
3217
|
{
|
|
3218
3218
|
itemId: 101,
|
|
3219
|
-
quantity:
|
|
3219
|
+
quantity: 5
|
|
3220
3220
|
}
|
|
3221
3221
|
],
|
|
3222
3222
|
statSlots: [
|
|
@@ -3242,15 +3242,15 @@ var recipes = [
|
|
|
3242
3242
|
},
|
|
3243
3243
|
{
|
|
3244
3244
|
outputItemId: 10005,
|
|
3245
|
-
outputMass:
|
|
3245
|
+
outputMass: 4000,
|
|
3246
3246
|
inputs: [
|
|
3247
3247
|
{
|
|
3248
3248
|
itemId: 101,
|
|
3249
|
-
quantity:
|
|
3249
|
+
quantity: 5
|
|
3250
3250
|
},
|
|
3251
3251
|
{
|
|
3252
3252
|
itemId: 301,
|
|
3253
|
-
quantity:
|
|
3253
|
+
quantity: 5
|
|
3254
3254
|
}
|
|
3255
3255
|
],
|
|
3256
3256
|
statSlots: [
|
|
@@ -3366,15 +3366,15 @@ var recipes = [
|
|
|
3366
3366
|
},
|
|
3367
3367
|
{
|
|
3368
3368
|
outputItemId: 10009,
|
|
3369
|
-
outputMass:
|
|
3369
|
+
outputMass: 4000,
|
|
3370
3370
|
inputs: [
|
|
3371
3371
|
{
|
|
3372
3372
|
itemId: 301,
|
|
3373
|
-
quantity:
|
|
3373
|
+
quantity: 5
|
|
3374
3374
|
},
|
|
3375
3375
|
{
|
|
3376
3376
|
itemId: 401,
|
|
3377
|
-
quantity:
|
|
3377
|
+
quantity: 5
|
|
3378
3378
|
}
|
|
3379
3379
|
],
|
|
3380
3380
|
statSlots: [
|
|
@@ -3400,15 +3400,15 @@ var recipes = [
|
|
|
3400
3400
|
},
|
|
3401
3401
|
{
|
|
3402
3402
|
outputItemId: 10010,
|
|
3403
|
-
outputMass:
|
|
3403
|
+
outputMass: 4000,
|
|
3404
3404
|
inputs: [
|
|
3405
3405
|
{
|
|
3406
3406
|
itemId: 501,
|
|
3407
|
-
quantity:
|
|
3407
|
+
quantity: 5
|
|
3408
3408
|
},
|
|
3409
3409
|
{
|
|
3410
3410
|
itemId: 201,
|
|
3411
|
-
quantity:
|
|
3411
|
+
quantity: 5
|
|
3412
3412
|
}
|
|
3413
3413
|
],
|
|
3414
3414
|
statSlots: [
|
|
@@ -3434,7 +3434,7 @@ var recipes = [
|
|
|
3434
3434
|
},
|
|
3435
3435
|
{
|
|
3436
3436
|
outputItemId: 10100,
|
|
3437
|
-
outputMass:
|
|
3437
|
+
outputMass: 960000,
|
|
3438
3438
|
inputs: [
|
|
3439
3439
|
{
|
|
3440
3440
|
itemId: 10003,
|
|
@@ -3464,7 +3464,7 @@ var recipes = [
|
|
|
3464
3464
|
},
|
|
3465
3465
|
{
|
|
3466
3466
|
outputItemId: 10101,
|
|
3467
|
-
outputMass:
|
|
3467
|
+
outputMass: 960000,
|
|
3468
3468
|
inputs: [
|
|
3469
3469
|
{
|
|
3470
3470
|
itemId: 10004,
|
|
@@ -3494,7 +3494,7 @@ var recipes = [
|
|
|
3494
3494
|
},
|
|
3495
3495
|
{
|
|
3496
3496
|
outputItemId: 10102,
|
|
3497
|
-
outputMass:
|
|
3497
|
+
outputMass: 960000,
|
|
3498
3498
|
inputs: [
|
|
3499
3499
|
{
|
|
3500
3500
|
itemId: 10005,
|
|
@@ -3544,7 +3544,7 @@ var recipes = [
|
|
|
3544
3544
|
},
|
|
3545
3545
|
{
|
|
3546
3546
|
outputItemId: 10103,
|
|
3547
|
-
outputMass:
|
|
3547
|
+
outputMass: 960000,
|
|
3548
3548
|
inputs: [
|
|
3549
3549
|
{
|
|
3550
3550
|
itemId: 10007,
|
|
@@ -3574,7 +3574,7 @@ var recipes = [
|
|
|
3574
3574
|
},
|
|
3575
3575
|
{
|
|
3576
3576
|
outputItemId: 10104,
|
|
3577
|
-
outputMass:
|
|
3577
|
+
outputMass: 960000,
|
|
3578
3578
|
inputs: [
|
|
3579
3579
|
{
|
|
3580
3580
|
itemId: 10008,
|
|
@@ -3608,7 +3608,7 @@ var recipes = [
|
|
|
3608
3608
|
},
|
|
3609
3609
|
{
|
|
3610
3610
|
outputItemId: 10105,
|
|
3611
|
-
outputMass:
|
|
3611
|
+
outputMass: 960000,
|
|
3612
3612
|
inputs: [
|
|
3613
3613
|
{
|
|
3614
3614
|
itemId: 10001,
|
|
@@ -3658,7 +3658,7 @@ var recipes = [
|
|
|
3658
3658
|
},
|
|
3659
3659
|
{
|
|
3660
3660
|
outputItemId: 10106,
|
|
3661
|
-
outputMass:
|
|
3661
|
+
outputMass: 960000,
|
|
3662
3662
|
inputs: [
|
|
3663
3663
|
{
|
|
3664
3664
|
itemId: 10004,
|
|
@@ -3700,7 +3700,7 @@ var recipes = [
|
|
|
3700
3700
|
},
|
|
3701
3701
|
{
|
|
3702
3702
|
outputItemId: 10107,
|
|
3703
|
-
outputMass:
|
|
3703
|
+
outputMass: 960000,
|
|
3704
3704
|
inputs: [
|
|
3705
3705
|
{
|
|
3706
3706
|
itemId: 10004,
|
|
@@ -3732,7 +3732,7 @@ var recipes = [
|
|
|
3732
3732
|
},
|
|
3733
3733
|
{
|
|
3734
3734
|
outputItemId: 10108,
|
|
3735
|
-
outputMass:
|
|
3735
|
+
outputMass: 960000,
|
|
3736
3736
|
inputs: [
|
|
3737
3737
|
{
|
|
3738
3738
|
itemId: 10003,
|
|
@@ -3782,7 +3782,7 @@ var recipes = [
|
|
|
3782
3782
|
},
|
|
3783
3783
|
{
|
|
3784
3784
|
outputItemId: 10200,
|
|
3785
|
-
outputMass:
|
|
3785
|
+
outputMass: 1300000,
|
|
3786
3786
|
inputs: [
|
|
3787
3787
|
{
|
|
3788
3788
|
itemId: 10001,
|
|
@@ -3832,7 +3832,7 @@ var recipes = [
|
|
|
3832
3832
|
},
|
|
3833
3833
|
{
|
|
3834
3834
|
outputItemId: 10201,
|
|
3835
|
-
outputMass:
|
|
3835
|
+
outputMass: 1900000,
|
|
3836
3836
|
inputs: [
|
|
3837
3837
|
{
|
|
3838
3838
|
itemId: 10001,
|
|
@@ -3882,7 +3882,7 @@ var recipes = [
|
|
|
3882
3882
|
},
|
|
3883
3883
|
{
|
|
3884
3884
|
outputItemId: 10202,
|
|
3885
|
-
outputMass:
|
|
3885
|
+
outputMass: 4800000,
|
|
3886
3886
|
inputs: [
|
|
3887
3887
|
{
|
|
3888
3888
|
itemId: 10001,
|
|
@@ -3932,7 +3932,7 @@ var recipes = [
|
|
|
3932
3932
|
},
|
|
3933
3933
|
{
|
|
3934
3934
|
outputItemId: 10203,
|
|
3935
|
-
outputMass:
|
|
3935
|
+
outputMass: 3700000,
|
|
3936
3936
|
inputs: [
|
|
3937
3937
|
{
|
|
3938
3938
|
itemId: 10001,
|
|
@@ -3982,7 +3982,7 @@ var recipes = [
|
|
|
3982
3982
|
},
|
|
3983
3983
|
{
|
|
3984
3984
|
outputItemId: 10204,
|
|
3985
|
-
outputMass:
|
|
3985
|
+
outputMass: 4600000,
|
|
3986
3986
|
inputs: [
|
|
3987
3987
|
{
|
|
3988
3988
|
itemId: 10001,
|
|
@@ -4671,7 +4671,7 @@ var items = [
|
|
|
4671
4671
|
},
|
|
4672
4672
|
{
|
|
4673
4673
|
id: 10002,
|
|
4674
|
-
mass:
|
|
4674
|
+
mass: 4000,
|
|
4675
4675
|
type: "component",
|
|
4676
4676
|
tier: 1
|
|
4677
4677
|
},
|
|
@@ -4683,13 +4683,13 @@ var items = [
|
|
|
4683
4683
|
},
|
|
4684
4684
|
{
|
|
4685
4685
|
id: 10004,
|
|
4686
|
-
mass:
|
|
4686
|
+
mass: 4000,
|
|
4687
4687
|
type: "component",
|
|
4688
4688
|
tier: 1
|
|
4689
4689
|
},
|
|
4690
4690
|
{
|
|
4691
4691
|
id: 10005,
|
|
4692
|
-
mass:
|
|
4692
|
+
mass: 4000,
|
|
4693
4693
|
type: "component",
|
|
4694
4694
|
tier: 1
|
|
4695
4695
|
},
|
|
@@ -4713,106 +4713,106 @@ var items = [
|
|
|
4713
4713
|
},
|
|
4714
4714
|
{
|
|
4715
4715
|
id: 10009,
|
|
4716
|
-
mass:
|
|
4716
|
+
mass: 4000,
|
|
4717
4717
|
type: "component",
|
|
4718
4718
|
tier: 1
|
|
4719
4719
|
},
|
|
4720
4720
|
{
|
|
4721
4721
|
id: 10010,
|
|
4722
|
-
mass:
|
|
4722
|
+
mass: 4000,
|
|
4723
4723
|
type: "component",
|
|
4724
4724
|
tier: 1
|
|
4725
4725
|
},
|
|
4726
4726
|
{
|
|
4727
4727
|
id: 10100,
|
|
4728
|
-
mass:
|
|
4728
|
+
mass: 960000,
|
|
4729
4729
|
type: "module",
|
|
4730
4730
|
tier: 1,
|
|
4731
4731
|
subtype: "engine"
|
|
4732
4732
|
},
|
|
4733
4733
|
{
|
|
4734
4734
|
id: 10101,
|
|
4735
|
-
mass:
|
|
4735
|
+
mass: 960000,
|
|
4736
4736
|
type: "module",
|
|
4737
4737
|
tier: 1,
|
|
4738
4738
|
subtype: "generator"
|
|
4739
4739
|
},
|
|
4740
4740
|
{
|
|
4741
4741
|
id: 10102,
|
|
4742
|
-
mass:
|
|
4742
|
+
mass: 960000,
|
|
4743
4743
|
type: "module",
|
|
4744
4744
|
tier: 1,
|
|
4745
4745
|
subtype: "gatherer"
|
|
4746
4746
|
},
|
|
4747
4747
|
{
|
|
4748
4748
|
id: 10103,
|
|
4749
|
-
mass:
|
|
4749
|
+
mass: 960000,
|
|
4750
4750
|
type: "module",
|
|
4751
4751
|
tier: 1,
|
|
4752
4752
|
subtype: "loader"
|
|
4753
4753
|
},
|
|
4754
4754
|
{
|
|
4755
4755
|
id: 10104,
|
|
4756
|
-
mass:
|
|
4756
|
+
mass: 960000,
|
|
4757
4757
|
type: "module",
|
|
4758
4758
|
tier: 1,
|
|
4759
4759
|
subtype: "crafter"
|
|
4760
4760
|
},
|
|
4761
4761
|
{
|
|
4762
4762
|
id: 10105,
|
|
4763
|
-
mass:
|
|
4763
|
+
mass: 960000,
|
|
4764
4764
|
type: "module",
|
|
4765
4765
|
tier: 1,
|
|
4766
4766
|
subtype: "storage"
|
|
4767
4767
|
},
|
|
4768
4768
|
{
|
|
4769
4769
|
id: 10106,
|
|
4770
|
-
mass:
|
|
4770
|
+
mass: 960000,
|
|
4771
4771
|
type: "module",
|
|
4772
4772
|
tier: 1,
|
|
4773
4773
|
subtype: "hauler"
|
|
4774
4774
|
},
|
|
4775
4775
|
{
|
|
4776
4776
|
id: 10107,
|
|
4777
|
-
mass:
|
|
4777
|
+
mass: 960000,
|
|
4778
4778
|
type: "module",
|
|
4779
4779
|
tier: 1,
|
|
4780
4780
|
subtype: "warp"
|
|
4781
4781
|
},
|
|
4782
4782
|
{
|
|
4783
4783
|
id: 10108,
|
|
4784
|
-
mass:
|
|
4784
|
+
mass: 960000,
|
|
4785
4785
|
type: "module",
|
|
4786
4786
|
tier: 1,
|
|
4787
4787
|
subtype: "battery"
|
|
4788
4788
|
},
|
|
4789
4789
|
{
|
|
4790
4790
|
id: 10200,
|
|
4791
|
-
mass:
|
|
4791
|
+
mass: 1300000,
|
|
4792
4792
|
type: "entity",
|
|
4793
4793
|
tier: 1
|
|
4794
4794
|
},
|
|
4795
4795
|
{
|
|
4796
4796
|
id: 10201,
|
|
4797
|
-
mass:
|
|
4797
|
+
mass: 1900000,
|
|
4798
4798
|
type: "entity",
|
|
4799
4799
|
tier: 1
|
|
4800
4800
|
},
|
|
4801
4801
|
{
|
|
4802
4802
|
id: 10202,
|
|
4803
|
-
mass:
|
|
4803
|
+
mass: 4800000,
|
|
4804
4804
|
type: "entity",
|
|
4805
4805
|
tier: 1
|
|
4806
4806
|
},
|
|
4807
4807
|
{
|
|
4808
4808
|
id: 10203,
|
|
4809
|
-
mass:
|
|
4809
|
+
mass: 3700000,
|
|
4810
4810
|
type: "entity",
|
|
4811
4811
|
tier: 1
|
|
4812
4812
|
},
|
|
4813
4813
|
{
|
|
4814
4814
|
id: 10204,
|
|
4815
|
-
mass:
|
|
4815
|
+
mass: 4600000,
|
|
4816
4816
|
type: "entity",
|
|
4817
4817
|
tier: 1
|
|
4818
4818
|
},
|
|
@@ -11772,6 +11772,10 @@ class ActionsManager extends BaseManager {
|
|
|
11772
11772
|
}
|
|
11773
11773
|
}
|
|
11774
11774
|
|
|
11775
|
+
function resolveLockedAmount(cost, feePctBasisPoints) {
|
|
11776
|
+
const fee = (cost * BigInt(feePctBasisPoints)) / 10000n;
|
|
11777
|
+
return cost - fee;
|
|
11778
|
+
}
|
|
11775
11779
|
class NftManager extends BaseManager {
|
|
11776
11780
|
constructor() {
|
|
11777
11781
|
super(...arguments);
|
|
@@ -11790,6 +11794,26 @@ class NftManager extends BaseManager {
|
|
|
11790
11794
|
this.cache.set(key, result);
|
|
11791
11795
|
return result ?? undefined;
|
|
11792
11796
|
}
|
|
11797
|
+
async getWrapDeposit(itemType, tier) {
|
|
11798
|
+
const key = antelope.UInt64.from((BigInt(itemType) << 8n) | BigInt(tier));
|
|
11799
|
+
const costRow = (await this.server.table('wrapcost').get(key));
|
|
11800
|
+
const cost = costRow ? BigInt(costRow.amount.toString()) : 0n;
|
|
11801
|
+
if (cost === 0n)
|
|
11802
|
+
return null;
|
|
11803
|
+
const cfg = (await this.server.table('wrapconfig').get());
|
|
11804
|
+
const feePctBasisPoints = cfg ? Number(cfg.fee_pct) : 0;
|
|
11805
|
+
const depositCfg = (await this.platform.table('depositcfg').get());
|
|
11806
|
+
if (!depositCfg)
|
|
11807
|
+
return null;
|
|
11808
|
+
return {
|
|
11809
|
+
cost,
|
|
11810
|
+
refund: resolveLockedAmount(cost, feePctBasisPoints),
|
|
11811
|
+
feePct: feePctBasisPoints / 100,
|
|
11812
|
+
symbol: depositCfg.token_symbol.code.toString(),
|
|
11813
|
+
precision: depositCfg.token_symbol.precision,
|
|
11814
|
+
tokenContract: depositCfg.token_contract.toString(),
|
|
11815
|
+
};
|
|
11816
|
+
}
|
|
11793
11817
|
}
|
|
11794
11818
|
|
|
11795
11819
|
let enabled = false;
|
|
@@ -12452,7 +12476,7 @@ function computeLoaderCapabilities(stats) {
|
|
|
12452
12476
|
const plasticity = stats.plasticity;
|
|
12453
12477
|
return {
|
|
12454
12478
|
mass: Math.max(200, 2000 - Math.floor(insulation * 2)),
|
|
12455
|
-
thrust: 1 + Math.floor(plasticity /
|
|
12479
|
+
thrust: 1 + Math.floor((plasticity * plasticity) / 10000),
|
|
12456
12480
|
quantity: 1,
|
|
12457
12481
|
};
|
|
12458
12482
|
}
|
|
@@ -12830,16 +12854,12 @@ class PlotManager extends BaseManager {
|
|
|
12830
12854
|
throw new Error(`Plot target item ${targetItemId} has no recipe`);
|
|
12831
12855
|
}
|
|
12832
12856
|
let state;
|
|
12833
|
-
const taskType = activeTask?.type.toNumber();
|
|
12834
12857
|
if (scheduledBuild?.hasStarted) {
|
|
12835
12858
|
state = 'finalizing';
|
|
12836
12859
|
}
|
|
12837
12860
|
else if (scheduledBuild) {
|
|
12838
12861
|
state = 'scheduled';
|
|
12839
12862
|
}
|
|
12840
|
-
else if (taskType === exports.TaskType.CLAIMPLOT) {
|
|
12841
|
-
state = 'initializing';
|
|
12842
|
-
}
|
|
12843
12863
|
else if (progress.isComplete) {
|
|
12844
12864
|
state = 'ready';
|
|
12845
12865
|
}
|
|
@@ -14075,22 +14095,24 @@ function needsRecharge(entity) {
|
|
|
14075
14095
|
const GATHER_TIME_SCALE = 100;
|
|
14076
14096
|
const GATHER_MASS_DIVISOR = 228;
|
|
14077
14097
|
const DEPTH_PENALTY_DIVISOR = 5000;
|
|
14078
|
-
function
|
|
14098
|
+
function gather_duration_raw(gatherer, itemMass, quantity, stratum, richness) {
|
|
14079
14099
|
const yieldValue = gatherer.yield.toNumber();
|
|
14080
14100
|
if (yieldValue === 0 || richness === 0)
|
|
14081
|
-
return
|
|
14101
|
+
return 0;
|
|
14082
14102
|
const massFactor = itemMass / GATHER_MASS_DIVISOR;
|
|
14083
14103
|
const depthPenalty = 1 + stratum / DEPTH_PENALTY_DIVISOR;
|
|
14084
14104
|
const richnessMul = richness / 1000;
|
|
14085
|
-
|
|
14086
|
-
|
|
14105
|
+
return (quantity * massFactor * GATHER_TIME_SCALE * depthPenalty) / (yieldValue * richnessMul);
|
|
14106
|
+
}
|
|
14107
|
+
function calc_gather_duration(gatherer, itemMass, quantity, stratum, richness) {
|
|
14108
|
+
return antelope.UInt32.from(Math.floor(gather_duration_raw(gatherer, itemMass, quantity, stratum, richness)));
|
|
14087
14109
|
}
|
|
14088
14110
|
function calc_gather_rate(gatherer, itemMass, stratum, richness) {
|
|
14089
|
-
const
|
|
14090
|
-
if (
|
|
14111
|
+
const secPerUnit = gather_duration_raw(gatherer, itemMass, 1, stratum, richness);
|
|
14112
|
+
if (secPerUnit <= 0)
|
|
14091
14113
|
return { unitsPerSec: 0, unitsPerMin: 0, secPerUnit: 0 };
|
|
14092
|
-
const unitsPerSec = 1 /
|
|
14093
|
-
return { unitsPerSec, unitsPerMin: unitsPerSec * 60, secPerUnit
|
|
14114
|
+
const unitsPerSec = 1 / secPerUnit;
|
|
14115
|
+
return { unitsPerSec, unitsPerMin: unitsPerSec * 60, secPerUnit };
|
|
14094
14116
|
}
|
|
14095
14117
|
function calc_gather_energy(gatherer, duration) {
|
|
14096
14118
|
const energy = Math.floor((duration * gatherer.drain.toNumber()) / PRECISION$1);
|
|
@@ -14907,7 +14929,7 @@ const computeGathererYield = (str) => 200 + str;
|
|
|
14907
14929
|
const computeGathererDrain = (con) => 2 * Math.max(250, 1250 - idiv(con * 25, 20));
|
|
14908
14930
|
const computeGathererDepth = (tol, tier) => gathererDepthForTier(tol, tier);
|
|
14909
14931
|
const computeLoaderMass = (ins) => Math.max(200, 2000 - ins * 2);
|
|
14910
|
-
const computeLoaderThrust = (pla) => 1 + idiv(pla,
|
|
14932
|
+
const computeLoaderThrust = (pla) => 1 + idiv(pla * pla, 10000);
|
|
14911
14933
|
const computeCrafterSpeed = (rea) => 100 + idiv(rea * 4, 5);
|
|
14912
14934
|
const computeCrafterDrain = (fin) => Math.max(5, 30 - idiv(fin, 33));
|
|
14913
14935
|
const computeHaulerCapacity = (fin) => Math.max(1, 1 + idiv(fin, 400));
|
|
@@ -15865,6 +15887,7 @@ exports.removeFromStacks = removeFromStacks;
|
|
|
15865
15887
|
exports.renderDescription = renderDescription;
|
|
15866
15888
|
exports.resolveItem = resolveItem;
|
|
15867
15889
|
exports.resolveItemCategory = resolveItemCategory;
|
|
15890
|
+
exports.resolveLockedAmount = resolveLockedAmount;
|
|
15868
15891
|
exports.resolveStats = resolveStats;
|
|
15869
15892
|
exports.rollTier = rollTier;
|
|
15870
15893
|
exports.rollWithinTier = rollWithinTier;
|