@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.js CHANGED
@@ -16805,7 +16805,7 @@ function hullCapsForEntity(itemId, decoded) {
16805
16805
  case ITEM_CONTAINER_T2_PACKED:
16806
16806
  return computeContainerT2Capabilities(decoded);
16807
16807
  default:
16808
- throw new Error(`resolveItem: no capacity formula wired for entity item ${itemId}`);
16808
+ return { hullmass: computeBaseHullmass(decoded), capacity: 0 };
16809
16809
  }
16810
16810
  }
16811
16811
  function resolveEntity(id, stats, modules) {
@@ -16818,6 +16818,8 @@ function resolveEntity(id, stats, modules) {
16818
16818
  const decoded = decodeCraftedItemStats(id, bigStats);
16819
16819
  if (decoded.strength === undefined)
16820
16820
  decoded.strength = decodeStat(bigStats, 0);
16821
+ if (decoded.density === undefined)
16822
+ decoded.density = decodeStat(bigStats, 1);
16821
16823
  if (decoded.hardness === undefined)
16822
16824
  decoded.hardness = decodeStat(bigStats, 2);
16823
16825
  const hullCaps = hullCapsForEntity(id, decoded);