@adatechnology/game-interactables-household 0.8.6 → 0.8.7

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.
@@ -12040,7 +12040,14 @@ var GameInteractablesHousehold = (() => {
12040
12040
  stack: 6,
12041
12041
  shape: "cup",
12042
12042
  color: 14215408,
12043
- rarity: "common"
12043
+ rarity: "common",
12044
+ parts: [
12045
+ {
12046
+ id: "body",
12047
+ material: "glass",
12048
+ thickness: 3e-3
12049
+ }
12050
+ ]
12044
12051
  },
12045
12052
  {
12046
12053
  id: "cutlery",
@@ -18739,14 +18746,18 @@ var GameInteractablesHousehold = (() => {
18739
18746
  var ITEM_CONTRACTS = createItemContracts();
18740
18747
  var createGoodsKinds = (options = {}) => defineCategories(GOODS_KINDS, options);
18741
18748
  var KINDS = createGoodsKinds();
18742
- var withSeal = (item) => {
18749
+ var withKind = (item) => {
18743
18750
  const kind = item.kind;
18744
- const seal = kind && KINDS.has(kind) ? KINDS.defaults(kind).seal : void 0;
18745
- return seal ? { ...item, seal: { ...seal, ...item.seal } } : item;
18751
+ if (!kind || !KINDS.has(kind)) return item;
18752
+ const defaults = KINDS.defaults(kind);
18753
+ const seal = defaults.seal;
18754
+ const parts2 = defaults.parts;
18755
+ const own = item.parts;
18756
+ return { ...item, ...seal ? { seal: { ...seal, ...item.seal } } : {}, ...!own && parts2 ? { parts: parts2 } : {} };
18746
18757
  };
18747
18758
  var goodsPack = {
18748
18759
  id: "goods",
18749
- items: GOODS_ITEMS.map(withSeal),
18760
+ items: GOODS_ITEMS.map(withKind),
18750
18761
  categories: GOODS_CATEGORIES,
18751
18762
  places: GOODS_PLACES,
18752
18763
  containers: GOODS_CONTAINERS,