@shipload/sdk 1.0.0-next.44 → 1.0.0-next.45

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.m.js CHANGED
@@ -16797,7 +16797,7 @@ function hullCapsForEntity(itemId, decoded) {
16797
16797
  case ITEM_CONTAINER_T2_PACKED:
16798
16798
  return computeContainerT2Capabilities(decoded);
16799
16799
  default:
16800
- throw new Error(`resolveItem: no capacity formula wired for entity item ${itemId}`);
16800
+ return { hullmass: computeBaseHullmass(decoded), capacity: 0 };
16801
16801
  }
16802
16802
  }
16803
16803
  function resolveEntity(id, stats, modules) {
@@ -16810,6 +16810,8 @@ function resolveEntity(id, stats, modules) {
16810
16810
  const decoded = decodeCraftedItemStats(id, bigStats);
16811
16811
  if (decoded.strength === undefined)
16812
16812
  decoded.strength = decodeStat(bigStats, 0);
16813
+ if (decoded.density === undefined)
16814
+ decoded.density = decodeStat(bigStats, 1);
16813
16815
  if (decoded.hardness === undefined)
16814
16816
  decoded.hardness = decodeStat(bigStats, 2);
16815
16817
  const hullCaps = hullCapsForEntity(id, decoded);