@adatechnology/game-interactables-household 0.8.0 → 0.8.1

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.
@@ -19791,6 +19791,7 @@ var GameInteractablesHousehold = (() => {
19791
19791
  var bin = { body: { material: "plastic", joint: "fused" }, parts: [["lid", door("plastic", "hinge", "lid")]] };
19792
19792
  var upholstery = { material: "fabric", joint: "glue" };
19793
19793
  var POLE_CAGE = { material: "steel", spacing: 0.1, diameter: 0.01 };
19794
+ var BRICKWORK = { size: [0.23, 0.075, 0.11], bond: "running", mortar: "mortar" };
19794
19795
  var DESTRUCTION = {
19795
19796
  fridge: fridgeLike,
19796
19797
  fridge_compact: fridgeLike,
@@ -19846,13 +19847,13 @@ var GameInteractablesHousehold = (() => {
19846
19847
  parts: [["flap", door("steel", "hinge", "flap")], ["flag", { material: "steel", joint: "hinge", piece: "flag" }]]
19847
19848
  },
19848
19849
  dog_house: { body: { material: "plywood", joint: "nail" }, parts: [] },
19849
- bbq: { body: { material: "brick", joint: "mortar" }, parts: [["counter_door", door("steel")]] },
19850
+ bbq: { body: { material: "brick", joint: "mortar", units: BRICKWORK }, parts: [["counter_door", door("steel")]] },
19850
19851
  bunk_bed: { body: { material: "wood_soft", joint: "screw" }, parts: [] },
19851
19852
  wood_stove: {
19852
19853
  body: { material: "cast_iron", joint: "bolt" },
19853
19854
  parts: [["firebox_door", { material: "cast_iron", joint: "hinge", piece: "door" }]]
19854
19855
  },
19855
- fireplace: { body: { material: "brick", joint: "mortar" }, parts: [] },
19856
+ fireplace: { body: { material: "brick", joint: "mortar", units: BRICKWORK }, parts: [] },
19856
19857
  outhouse: {
19857
19858
  body: { material: "wood_soft", joint: "nail" },
19858
19859
  parts: [["door", door("wood_soft", "hinge", "door")], ["seat_lid", door("wood_soft", "hinge", "lid")]]
@@ -20210,7 +20211,13 @@ var GameInteractablesHousehold = (() => {
20210
20211
  this.collider("body", -this.hw, this.y0, -this.hd, this.hw, this.y0 + this.h, this.hd);
20211
20212
  }
20212
20213
  const body = DESTRUCTION[this.type]?.body;
20213
- if (body && !this.spec.destruction) this.spec.destruction = body.reinforcement ? { ...body, reinforcement: { ...body.reinforcement } } : { ...body };
20214
+ if (body && !this.spec.destruction) {
20215
+ this.spec.destruction = {
20216
+ ...body,
20217
+ ...body.reinforcement ? { reinforcement: { ...body.reinforcement } } : {},
20218
+ ...body.units ? { units: { ...body.units, size: [...body.units.size] } } : {}
20219
+ };
20220
+ }
20214
20221
  for (const k of Object.keys(s)) if (Array.isArray(s[k]) && s[k].length === 0) delete s[k];
20215
20222
  return this.spec;
20216
20223
  }