@adatechnology/game-interactables-household 0.7.0 → 0.7.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.
package/dist/index.d.ts CHANGED
@@ -58,6 +58,8 @@ interface HouseholdTypeDef {
58
58
  solid: boolean;
59
59
  /** A big piece standing free on the floor: a person leans on it and pushes it instead of picking it up. Absent for what is carried by hand or fixed to the house. */
60
60
  pushable?: boolean;
61
+ /** Fixed where it is laid, to the house or the ground (a service mast clamped to the wall and set in the sidewalk): a host never makes it a loose body. */
62
+ fixed?: boolean;
61
63
  /**
62
64
  * Real mass of the whole object, empty, in kg (a fridge 70, a camping table 4.5). The drawing is solid blocks, so a mass from its volume would be far off (a fridge of
63
65
  * two tonnes): a host that builds a physical body splits this mass over the pieces. Absent for what is built into the ground (a fireplace, a well).
@@ -20855,7 +20855,8 @@ var GameInteractablesHousehold = (() => {
20855
20855
  h: 4.4,
20856
20856
  y: 0,
20857
20857
  solid: true,
20858
- massKg: 14
20858
+ massKg: 14,
20859
+ fixed: true
20859
20860
  },
20860
20861
  {
20861
20862
  id: "electrical_panel",
@@ -21212,8 +21213,8 @@ var GameInteractablesHousehold = (() => {
21212
21213
  const oy = vertical ? s * (len / 2 - 0.025) : 0;
21213
21214
  c.b("metal", x + ox - 6e-3, y + oy - 6e-3, zf, x + ox + 6e-3, y + oy + 6e-3, zf + 0.02, dark);
21214
21215
  }
21215
- c.b("metal", x - gx / 2, y - gy / 2, zf + 0.018, x + gx / 2, y + gy / 2, zf + HANDLE, color);
21216
- c.b("metal", x - gx / 2 + (vertical ? 3e-3 : 0), y - gy / 2 + (vertical ? 0 : 3e-3), zf + HANDLE, x + gx / 2 - (vertical ? 3e-3 : 0), y + gy / 2 - (vertical ? 0 : 3e-3), zf + HANDLE + 5e-4, shade(color, 1.2));
21216
+ c.b("metal", x - gx / 2, y - gy / 2, zf + 0.018, x + gx / 2, y + gy / 2, zf + HANDLE - 2e-3, color);
21217
+ c.b("metal", x - gx / 2 + (vertical ? 3e-3 : 0), y - gy / 2 + (vertical ? 0 : 3e-3), zf + HANDLE - 2e-3, x + gx / 2 - (vertical ? 3e-3 : 0), y + gy / 2 - (vertical ? 0 : 3e-3), zf + HANDLE, shade(color, 1.2));
21217
21218
  }
21218
21219
  function hingedDoor(c, o) {
21219
21220
  const t = o.t ?? 0.02;
@@ -21244,11 +21245,11 @@ var GameInteractablesHousehold = (() => {
21244
21245
  c.b(mat, o.x0, o.y0 + r, o.zf - 3e-3, o.x0 + r, o.y1 - r, o.zf, shade(o.color, 1.06));
21245
21246
  c.b(mat, o.x1 - r, o.y0 + r, o.zf - 3e-3, o.x1, o.y1 - r, o.zf, shade(o.color, 1.06));
21246
21247
  } else {
21247
- c.b(mat, o.x0, o.y0, zIn, o.x1, o.y1, o.zf, o.color);
21248
- c.b(mat, o.x0 + 6e-3, o.y0 + 6e-3, o.zf - 2e-3, o.x1 - 6e-3, o.y1 - 6e-3, o.zf, shade(o.color, 1.04));
21248
+ c.b(mat, o.x0, o.y0, zIn, o.x1, o.y1, o.zf - 2e-3, o.color);
21249
+ c.b(mat, o.x0 + 6e-3, o.y0 + 6e-3, o.zf - 4e-3, o.x1 - 6e-3, o.y1 - 6e-3, o.zf, shade(o.color, 1.04));
21249
21250
  }
21250
21251
  const inner = o.inner ?? mix(o.color, 16777215, 0.55);
21251
- c.b("plain", o.x0 + 0.014, o.y0 + 0.014, zIn - 4e-3, o.x1 - 0.014, o.y1 - 0.014, zIn, inner);
21252
+ c.b("plain", o.x0 + 0.014, o.y0 + 0.014, zIn - 3e-3, o.x1 - 0.014, o.y1 - 0.014, zIn, inner);
21252
21253
  c.b("plain", o.x0 + 6e-3, o.y0 + 6e-3, zIn - 2e-3, o.x1 - 6e-3, o.y0 + 0.014, zIn, 3815996);
21253
21254
  c.b("plain", o.x0 + 6e-3, o.y1 - 0.014, zIn - 2e-3, o.x1 - 6e-3, o.y1 - 6e-3, zIn, 3815996);
21254
21255
  c.b("plain", o.x0 + 6e-3, o.y0 + 0.014, zIn - 2e-3, o.x0 + 0.014, o.y1 - 0.014, zIn, 3815996);
@@ -21286,7 +21287,7 @@ var GameInteractablesHousehold = (() => {
21286
21287
  const m = Math.min(0.04, (o.y1 - o.y0) / 4);
21287
21288
  c.b("wood", o.x0 + m, o.y0 + m, o.zf - 5e-3, o.x1 - m, o.y1 - m, o.zf - 1e-3, shade(o.color, 0.94));
21288
21289
  c.b("wood", o.x0 + m + 0.01, o.y0 + m + 0.01, o.zf - 1e-3, o.x1 - m - 0.01, o.y1 - m - 0.01, o.zf, mix(o.color, 16777215, 0.08));
21289
- c.b("wood", bx0, yb, zBack, bx1, yb + 8e-3, zFront, shade(o.color, 0.85));
21290
+ c.b("wood", bx0 + th, yb, zBack + th, bx1 - th, yb + 8e-3, zFront, shade(o.color, 0.85));
21290
21291
  c.b("wood", bx0, yb, zBack, bx0 + th, yt, zFront, shade(o.color, 0.88));
21291
21292
  c.b("wood", bx1 - th, yb, zBack, bx1, yt, zFront, shade(o.color, 0.88));
21292
21293
  c.b("wood", bx0 + th, yb, zBack, bx1 - th, yt, zBack + th, shade(o.color, 0.82));
@@ -21327,10 +21328,10 @@ var GameInteractablesHousehold = (() => {
21327
21328
  }
21328
21329
  function shelf(c, x0, x1, y, z0, z1, color, t = 0.016, glass = false) {
21329
21330
  if (glass) {
21330
- c.b("glass", x0, y - 6e-3, z0, x1, y, z1, 13625066);
21331
+ c.b("glass", x0, y - 6e-3, z0, x1, y, z1 - 0.012, 13625066);
21331
21332
  c.b("plain", x0, y - 8e-3, z1 - 0.012, x1, y + 0.012, z1, 15003376);
21332
21333
  } else {
21333
- c.b("wood", x0, y - t, z0, x1, y, z1, color);
21334
+ c.b("wood", x0, y - t, z0, x1, y, z1 - 3e-3, color);
21334
21335
  c.b("wood", x0, y - t, z1 - 3e-3, x1, y, z1, shade(color, 1.12));
21335
21336
  }
21336
21337
  }
@@ -21364,7 +21365,8 @@ var GameInteractablesHousehold = (() => {
21364
21365
  id: `${id}_cord`,
21365
21366
  kind: "cord",
21366
21367
  radius: 4e-3,
21367
- points: [plug, [plug[0], Math.max(floor, plug[1] - 0.08), plug[2] - 0.04], [plug[0] + 0.05, floor, plug[2] - 0.2]]
21368
+ // (down the back from the plug, never behind it: behind the back is the wall the device stands against)
21369
+ points: [plug, [plug[0], Math.max(floor, plug[1] - 0.08), plug[2]], [plug[0] + 0.05, floor, plug[2]]]
21368
21370
  });
21369
21371
  }
21370
21372
 
@@ -21749,8 +21751,8 @@ var GameInteractablesHousehold = (() => {
21749
21751
  var STEEL = 11843772;
21750
21752
  var CHROME = 13817562;
21751
21753
  function tap2(c, x, y, z, id, partId) {
21752
- c.cyl("metal", x, y, z, 0.03, 0.02, STEEL, "cyl");
21753
- c.cyl("metal", x, y + 0.02, z, 0.017, 0.2, CHROME, "cyl");
21754
+ c.cyl("metal", x, y - 2e-3, z, 0.03, 0.022, STEEL, "cyl");
21755
+ c.cyl("metal", x, y + 0.02, z, 0.017, 0.19, CHROME, "cyl");
21754
21756
  c.cyl("metal", x, y + 0.2, z, 0.021, 0.02, STEEL, "cyl");
21755
21757
  c.b("metal", x - 0.015, y + 0.205, z, x + 0.015, y + 0.235, z + 0.015, CHROME);
21756
21758
  c.b("metal", x - 0.014, y + 0.205, z + 0.015, x + 0.014, y + 0.235, z + 0.19, CHROME);
@@ -21908,10 +21910,11 @@ var GameInteractablesHousehold = (() => {
21908
21910
  const y0 = o.top - 0.04;
21909
21911
  const zf = hd - HANDLE + 0.02;
21910
21912
  const col = o.counter;
21911
- c.b("wood", -hw, y0, -hd, o.bx0, o.top, zf, col);
21912
- c.b("wood", o.bx1, y0, -hd, hw, o.top, zf, col);
21913
- c.b("wood", o.bx0, y0, -hd, o.bx1, o.top, o.bz0, col);
21914
- c.b("wood", o.bx0, y0, o.bz1, o.bx1, o.top, zf, col);
21913
+ const g = 0.01;
21914
+ c.b("wood", -hw, y0, -hd, o.bx0 - g, o.top, zf, col);
21915
+ c.b("wood", o.bx1 + g, y0, -hd, hw, o.top, zf, col);
21916
+ c.b("wood", o.bx0 - g, y0, -hd, o.bx1 + g, o.top, o.bz0 - g, col);
21917
+ c.b("wood", o.bx0 - g, y0, o.bz1 + g, o.bx1 + g, o.top, zf, col);
21915
21918
  const wall = o.steel ? 12896460 : 16054006;
21916
21919
  const floor = o.steel ? 11449014 : 15133162;
21917
21920
  const mat = o.steel ? "metal" : "plain";
@@ -21928,10 +21931,10 @@ var GameInteractablesHousehold = (() => {
21928
21931
  c.b(mat, o.bx1, o.top, o.bz0, o.bx1 + 0.02, o.top + 4e-3, o.bz1, wall);
21929
21932
  }
21930
21933
  function pipes(c, x, top, z) {
21931
- const wall = -c.hd + 0.03;
21934
+ const wall = -c.hd + 2e-3;
21932
21935
  c.cyl("metal", x, 0.2, z, 0.02, top - 0.2 - 0.12, 13159632, "cyl6");
21933
21936
  c.rod("plain", "x", x + 0.06, 0.2, z, 0.02, 0.14, 15263976, "cyl6");
21934
- c.cyl("plain", x + 0.13, 0.08, z, 0.02, 0.14, 15263976, "cyl6");
21937
+ c.cyl("plain", x + 0.13, 0.07, z, 0.022, 0.15, 15263976, "cyl6");
21935
21938
  c.rod("plain", "z", x + 0.13, 0.09, (z + wall) / 2, 0.02, z - wall, 15263976, "cyl6");
21936
21939
  }
21937
21940
  function sinkKitchen(c) {
@@ -21996,7 +21999,7 @@ var GameInteractablesHousehold = (() => {
21996
21999
  const tubTop = 0.88;
21997
22000
  const wall = 13619664;
21998
22001
  const bw = c.w - 0.04;
21999
- for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("metal", sx * (hw - 0.04) - 0.02, 0, sz * (hd - 0.04) - 0.02, sx * (hw - 0.04) + 0.02, tubTop - 0.3, sz * (hd - 0.04) + 0.02, 6975090);
22002
+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("metal", sx * (hw - 0.04) - 0.02, 0, sz * (hd - 0.04) - 0.02, sx * (hw - 0.04) + 0.02, tubTop - 0.32, sz * (hd - 0.04) + 0.02, 6975090);
22000
22003
  c.b("metal", -hw, tubTop - 0.34, -hd, hw, tubTop - 0.3, hd, 6975090);
22001
22004
  const x0 = -bw / 2;
22002
22005
  const x1 = bw / 2;
@@ -22131,16 +22134,16 @@ var GameInteractablesHousehold = (() => {
22131
22134
  const baseTop = 0.28;
22132
22135
  for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx * (hw - 0.07) - 0.025, 0, sz * (hd - 0.07) - 0.025, sx * (hw - 0.07) + 0.025, legH, sz * (hd - 0.07) + 0.025, 3811870);
22133
22136
  c.b("fabric", -hw, legH, -hd, hw, baseTop, hd, dark);
22134
- c.b("fabric", -hw + armW, baseTop - 0.01, hd - 0.02, hw - armW, baseTop + 0.02, hd, shade(fab, 0.7));
22137
+ c.b("fabric", -hw + armW, baseTop - 0.01, hd - 0.02, hw - armW, baseTop + 0.02, hd + 4e-3, shade(fab, 0.7));
22135
22138
  const bt = 0.2;
22136
22139
  c.b("fabric", -hw, baseTop, -hd, hw, h - 0.07 - bt / 2, -hd + bt, fab);
22137
- c.rod("fabric", "x", 0, h - 0.07 - bt / 2, -hd + bt / 2, bt / 2, c.w, fab);
22140
+ c.rod("fabric", "x", 0, h - 0.07 - bt / 2, -hd + bt / 2, bt / 2, c.w - 4e-3, fab);
22138
22141
  const armTop = 0.62;
22139
22142
  for (const s of [-1, 1]) {
22140
22143
  const x0 = s < 0 ? -hw : hw - armW;
22141
- c.b("fabric", x0, baseTop, -hd + bt, x0 + armW, armTop - armW / 2, hd, fab);
22142
- c.rod("fabric", "z", x0 + armW / 2, armTop - armW / 2, (-hd + bt + hd) / 2, armW / 2, hd - (-hd + bt), fab);
22143
- c.b("fabric", s < 0 ? x0 + armW - 0.012 : x0, baseTop + 0.02, -hd + bt, s < 0 ? x0 + armW : x0 + 0.012, armTop - armW / 2, hd - 0.02, light);
22144
+ c.b("fabric", s < 0 ? x0 : x0 + 6e-3, baseTop, -hd + bt, s < 0 ? x0 + armW - 6e-3 : x0 + armW, armTop - armW / 2, hd, fab);
22145
+ c.rod("fabric", "z", x0 + armW / 2, armTop - armW / 2, (-hd + bt + hd) / 2, armW / 2, hd - (-hd + bt) - 4e-3, fab);
22146
+ c.b("fabric", s < 0 ? x0 + armW - 0.012 : x0, baseTop + 0.02, -hd + bt + 3e-3, s < 0 ? x0 + armW : x0 + 0.012, armTop - armW / 2 + 3e-3, hd - 0.02, light);
22144
22147
  }
22145
22148
  const ix0 = -hw + armW;
22146
22149
  const ix1 = hw - armW;
@@ -22154,7 +22157,7 @@ var GameInteractablesHousehold = (() => {
22154
22157
  const col = i % 2 === 0 ? light : fab;
22155
22158
  c.b("fabric", x0, baseTop + 0.02, sz0 + 0.02, x1, seatY, sz1, col);
22156
22159
  c.b("fabric", x0 + 0.01, seatY, sz0 + 0.03, x1 - 0.01, seatY + 0.025, sz1 - 0.01, mix(col, 16777215, 0.06));
22157
- c.b("fabric", x0, baseTop + 0.02, sz1 - 6e-3, x1, seatY + 0.02, sz1, shade(col, 0.75));
22160
+ c.b("fabric", x0 + 3e-3, baseTop + 0.025, sz1 - 6e-3, x1 - 3e-3, seatY + 0.02, sz1 + 3e-3, shade(col, 0.75));
22158
22161
  c.b("fabric", x0 + 5e-3, seatY + 0.02, sz0 + 0.02, x1 - 5e-3, h - 0.12, sz0 + 0.19, col, 0, -0.18);
22159
22162
  const cx = (x0 + x1) / 2;
22160
22163
  seats.push({ id: `seat_${i + 1}`, pose: "sit", pos: [round3(cx), round3(seatY + 0.03), round3(sz0 + (sz1 - sz0) * 0.55)], ry: FACE, exit: [round3(cx), 0, round3(hd + 0.55)] });
@@ -22178,14 +22181,14 @@ var GameInteractablesHousehold = (() => {
22178
22181
  const seatY = 0.45;
22179
22182
  const lt = 0.035;
22180
22183
  for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx * (hw - lt / 2 - 0.01) - lt / 2, 0, sz * (hd - lt / 2 - 0.01) - lt / 2, sx * (hw - lt / 2 - 0.01) + lt / 2, sz < 0 ? h : seatY - 0.03, sz * (hd - lt / 2 - 0.01) + lt / 2, shade(wood, sz < 0 ? 0.9 : 1));
22181
- c.b("wood", -hw + 0.01, seatY - 0.09, -hd + 0.01, hw - 0.01, seatY - 0.04, -hd + 0.04, shade(wood, 0.85));
22182
- c.b("wood", -hw + 0.01, seatY - 0.09, hd - 0.04, hw - 0.01, seatY - 0.04, hd - 0.01, shade(wood, 0.85));
22183
- c.b("wood", -hw + 0.01, seatY - 0.09, -hd + 0.04, -hw + 0.04, seatY - 0.04, hd - 0.04, shade(wood, 0.85));
22184
- c.b("wood", hw - 0.04, seatY - 0.09, -hd + 0.04, hw - 0.01, seatY - 0.04, hd - 0.04, shade(wood, 0.85));
22184
+ c.b("wood", -hw + 0.014, seatY - 0.09, -hd + 0.014, hw - 0.014, seatY - 0.04, -hd + 0.04, shade(wood, 0.85));
22185
+ c.b("wood", -hw + 0.014, seatY - 0.09, hd - 0.04, hw - 0.014, seatY - 0.04, hd - 0.014, shade(wood, 0.85));
22186
+ c.b("wood", -hw + 0.014, seatY - 0.09, -hd + 0.04, -hw + 0.04, seatY - 0.04, hd - 0.04, shade(wood, 0.85));
22187
+ c.b("wood", hw - 0.04, seatY - 0.09, -hd + 0.04, hw - 0.014, seatY - 0.04, hd - 0.04, shade(wood, 0.85));
22185
22188
  c.b("wood", -hw, seatY - 0.03, -hd, hw, seatY, hd, wood);
22186
22189
  c.b("fabric", -hw + 0.02, seatY, -hd + 0.05, hw - 0.02, seatY + 0.04, hd - 0.02, cush);
22187
22190
  c.b("fabric", -hw + 0.03, seatY + 0.04, -hd + 0.06, hw - 0.03, seatY + 0.045, hd - 0.03, mix(cush, 16777215, 0.1));
22188
- c.b("wood", -hw + 0.01, h - 0.1, -hd + 0.01, hw - 0.01, h - 0.03, -hd + 0.04, wood);
22191
+ c.b("wood", -hw + 0.014, h - 0.1, -hd + 0.014, hw - 0.014, h - 0.03, -hd + 0.04, wood);
22189
22192
  for (let i = 0; i < 3; i++) c.b("wood", -hw + 0.07 + i * ((c.w - 0.14) / 3), seatY + 0.06, -hd + 0.015, -hw + 0.07 + i * ((c.w - 0.14) / 3) + 0.04, h - 0.1, -hd + 0.035, shade(wood, 1.05));
22190
22193
  c.add("seats", { id: "seat", pose: "sit", pos: [0, round3(seatY + 0.05), 0.02], ry: FACE, exit: [0, 0, round3(hd + 0.45)] });
22191
22194
  c.interact("sit", [0, seatY + 0.3, 0.1], { do: "sit", seat: "seat" }, "prompt.sit", 1.5);
@@ -22197,8 +22200,8 @@ var GameInteractablesHousehold = (() => {
22197
22200
  const frameTop = 0.3;
22198
22201
  const matTop = 0.54;
22199
22202
  for (const sx of [-1, 1]) for (const sz of [-1, 1]) c.b("wood", sx * (hw - 0.04) - 0.035, 0, sz * (hd - 0.04) - 0.035, sx * (hw - 0.04) + 0.035, 0.16, sz * (hd - 0.04) + 0.035, shade(wood, 0.8));
22200
- c.b("wood", -hw, 0.14, -hd, -hw + 0.05, frameTop, hd, wood);
22201
- c.b("wood", hw - 0.05, 0.14, -hd, hw, frameTop, hd, wood);
22203
+ c.b("wood", -hw, 0.14, -hd + 0.06, -hw + 0.05, frameTop, hd - 0.05, wood);
22204
+ c.b("wood", hw - 0.05, 0.14, -hd + 0.06, hw, frameTop, hd - 0.05, wood);
22202
22205
  c.b("wood", -hw, 0.14, hd - 0.05, hw, 0.44, hd, shade(wood, 1.05));
22203
22206
  c.b("wood", -hw, 0.14, -hd, hw, h, -hd + 0.06, shade(wood, 0.92));
22204
22207
  c.b("wood", -hw + 0.06, h - 0.08, -hd + 0.06, hw - 0.06, h - 0.02, -hd + 0.07, shade(wood, 1.12));
@@ -22240,10 +22243,10 @@ var GameInteractablesHousehold = (() => {
22240
22243
  const x = sx * (hw - 0.06);
22241
22244
  c.b("metal", x - 0.025, 0, -hd + 0.05, x + 0.025, seatY - 0.03, -hd + 0.09, iron);
22242
22245
  c.b("metal", x - 0.025, 0, hd - 0.09, x + 0.025, seatY - 0.03, hd - 0.05, iron);
22243
- c.b("metal", x - 0.025, seatY - 0.05, -hd + 0.04, x + 0.025, seatY - 0.02, hd - 0.04, iron);
22246
+ c.b("metal", x - 0.02, seatY - 0.05, -hd + 0.04, x + 0.02, seatY - 0.02, hd - 0.04, iron);
22244
22247
  c.b("metal", x - 0.025, seatY - 0.02, -hd + 0.04, x + 0.025, h, -hd + 0.08, iron);
22245
- c.b("metal", x - 0.03, 0.62, -hd + 0.04, x + 0.03, 0.655, hd - 0.12, iron);
22246
- c.b("metal", x - 0.025, seatY - 0.02, hd - 0.12, x + 0.025, 0.62, hd - 0.09, iron);
22248
+ c.b("metal", x - 0.03, 0.62, -hd + 0.045, x + 0.03, 0.655, hd - 0.12, iron);
22249
+ c.b("metal", x - 0.025, seatY - 0.04, hd - 0.12, x + 0.025, 0.62, hd - 0.09, iron);
22247
22250
  }
22248
22251
  for (let i = 0; i < 5; i++) c.b("wood", -hw + 0.03, seatY - 0.02, -hd + 0.09 + i * ((c.d - 0.18) / 5), hw - 0.03, seatY + 0.015, -hd + 0.09 + i * ((c.d - 0.18) / 5) + (c.d - 0.18) / 5 - 0.012, i % 2 ? wood : shade(wood, 1.06));
22249
22252
  for (let i = 0; i < 3; i++) c.b("wood", -hw + 0.03, 0.55 + i * 0.1, -hd + 0.025, hw - 0.03, 0.55 + i * 0.1 + 0.075, -hd + 0.05, i % 2 ? wood : shade(wood, 1.06));
@@ -22283,7 +22286,7 @@ var GameInteractablesHousehold = (() => {
22283
22286
  c.b("wood", -hw + post, highTop + 0.04, zEnd - post - 0.45, -hw + post + 0.03, highTop + 0.07, zEnd - post, wood);
22284
22287
  c.b("wood", hw - post - 0.03, highTop + 0.04, zEnd - post - 0.45, hw - post, highTop + 0.07, zEnd - post, wood);
22285
22288
  for (const x of [-0.2, 0.2]) c.b("wood", x - 0.02, 0.06, zEnd, x + 0.02, highTop + 0.3, hd, shade(wood, 1.1));
22286
- for (let i = 0; i < 5; i++) c.b("wood", -0.2, 0.3 + i * 0.22, zEnd, 0.2, 0.34 + i * 0.22, hd - 0.01, wood);
22289
+ for (let i = 0; i < 5; i++) c.b("wood", -0.2, 0.3 + i * 0.22, zEnd + 5e-3, 0.2, 0.34 + i * 0.22, hd - 0.01, wood);
22287
22290
  for (const [id, top, ex] of [["lie_lower", lowTop, 1], ["lie_upper", highTop, -1]]) {
22288
22291
  c.add("seats", { id, pose: "lie", pos: [0, round3(top + 0.06), round3(-hd + 0.95)], ry: FACE, eye: 0.2, exit: [round3(ex * (hw + 0.5)), 0, round3(-hd + 1.1)] });
22289
22292
  c.interact(`lie_${id}`, [0, round3(top + 0.3), round3(-hd + 0.95)], { do: "sit", seat: id }, "prompt.lie", 1.8);
@@ -22457,10 +22460,12 @@ var GameInteractablesHousehold = (() => {
22457
22460
  // src/builders/storage.ts
22458
22461
  var sideOf = (c, fallback) => c.M.hinge ?? fallback;
22459
22462
  function doorLedge(c, x0, x1, y, zIn, depth, color) {
22460
- c.b("plain", x0, y, zIn - depth, x1, y + 8e-3, zIn, color);
22461
- c.b("plain", x0, y, zIn - depth, x1, y + 0.05, zIn - depth + 8e-3, mix(color, 16777215, 0.3));
22462
- c.b("plain", x0, y, zIn - depth, x0 + 8e-3, y + 0.05, zIn, mix(color, 16777215, 0.3));
22463
- c.b("plain", x1 - 8e-3, y, zIn - depth, x1, y + 0.05, zIn, mix(color, 16777215, 0.3));
22463
+ const zLip = zIn - depth + 8e-3;
22464
+ const zEnd = zIn - 2e-3;
22465
+ c.b("plain", x0 + 8e-3, y, zLip, x1 - 8e-3, y + 8e-3, zEnd, color);
22466
+ c.b("plain", x0, y, zIn - depth, x1, y + 0.05, zLip, mix(color, 16777215, 0.3));
22467
+ c.b("plain", x0, y, zLip, x0 + 8e-3, y + 0.05, zEnd, mix(color, 16777215, 0.3));
22468
+ c.b("plain", x1 - 8e-3, y, zLip, x1, y + 0.05, zEnd, mix(color, 16777215, 0.3));
22464
22469
  }
22465
22470
  function fridge(c) {
22466
22471
  const { hw, hd, h } = c;
@@ -22474,7 +22479,7 @@ var GameInteractablesHousehold = (() => {
22474
22479
  const sh = shell(c, { x0: -hw, x1: hw, y0: 0.05, y1: h, z0: -hd, z1: zb, color: body, inner: lining, t: 0.04, tTop: 0.03, tBottom: 0.05, tBack: 0.03, material: "plain" });
22475
22480
  c.b("plain", -hw + 0.03, 0, -hd + 0.03, hw - 0.03, 0.05, zb - 0.04, 2895408);
22476
22481
  const yd = h - fh - 0.04;
22477
- c.b("plain", sh.ix0, yd, sh.iz0, sh.ix1, yd + 0.04, zb, shade(body, 0.92));
22482
+ c.b("plain", sh.ix0 + 3e-3, yd, sh.iz0, sh.ix1 - 3e-3, yd + 0.04, zb, shade(body, 0.92));
22478
22483
  c.b("plain", sh.ix0 + 3e-3, yd - 3e-3, sh.iz0 + 3e-3, sh.ix1 - 3e-3, yd, zb, lining);
22479
22484
  c.b("plain", sh.ix0 + 3e-3, yd + 0.04, sh.iz0 + 3e-3, sh.ix1 - 3e-3, yd + 0.043, zb, lining);
22480
22485
  const fy0 = sh.iy0;
@@ -22482,7 +22487,7 @@ var GameInteractablesHousehold = (() => {
22482
22487
  const levels = [fy0, fy0 + 0.28, fy0 + 0.56, fy0 + 0.84];
22483
22488
  for (const y of levels.slice(1)) {
22484
22489
  shelf(c, sh.ix0 + 4e-3, sh.ix1 - 4e-3, y, sh.iz0 + 0.01, sz1, 13625066, 0.016, true);
22485
- for (const s of [-1, 1]) c.b("plain", s < 0 ? sh.ix0 : sh.ix1 - 0.012, y - 0.03, sh.iz0 + 0.01, s < 0 ? sh.ix0 + 0.012 : sh.ix1, y - 6e-3, sz1 - 0.02, 15003376);
22490
+ for (const s of [-1, 1]) c.b("plain", s < 0 ? sh.ix0 + 3e-3 : sh.ix1 - 0.012, y - 0.03, sh.iz0 + 0.01, s < 0 ? sh.ix0 + 0.012 : sh.ix1 - 3e-3, y - 6e-3, sz1 - 0.02, 15003376);
22486
22491
  }
22487
22492
  const slotsF = levels.flatMap((y) => c.row(sh.ix0 + 0.02, sh.ix1 - 0.02, y + (y === fy0 ? 3e-3 : 0), (sh.iz0 + 0.03 + sz1) / 2, 2, [0.3, 0.26, 0.3]));
22488
22493
  const zy = yd + 0.043;
@@ -22551,7 +22556,7 @@ var GameInteractablesHousehold = (() => {
22551
22556
  c.b("plain", -hw + 0.03, 0, -hd + 0.03, hw - 0.03, 0.04, zb - 0.04, 2895408);
22552
22557
  const fz = 0.2;
22553
22558
  const yd = h - fz - 0.03;
22554
- c.b("plain", sh.ix0, yd, sh.iz0, sh.ix1, yd + 0.03, zb, shade(body, 0.92));
22559
+ c.b("plain", sh.ix0 + 3e-3, yd, sh.iz0, sh.ix1 - 3e-3, yd + 0.03, zb, shade(body, 0.92));
22555
22560
  c.b("plain", sh.ix0 + 3e-3, yd - 3e-3, sh.iz0 + 3e-3, sh.ix1 - 3e-3, yd, zb, lining);
22556
22561
  const fy0 = sh.iy0;
22557
22562
  const sz1 = zdi - 0.1;
@@ -22623,7 +22628,7 @@ var GameInteractablesHousehold = (() => {
22623
22628
  const info = drawer2(c, { id: "drawer", x0: -hw + 3e-3, x1: hw - 3e-3, y0: yDr, y1: top - 3e-3, zf, zb: sh.iz0, color: front, handle: "bar_h", handleLen: 0.18 });
22624
22629
  const midY = (0.1 + yDr) / 2;
22625
22630
  const shelfY = midY;
22626
- shelf(c, sh.ix0, sh.ix1, shelfY, sh.iz0, sh.iz1 - 0.02, body);
22631
+ shelf(c, sh.ix0 + 3e-3, sh.ix1 - 3e-3, shelfY, sh.iz0, sh.iz1 - 0.02, body);
22627
22632
  const zc = (sh.iz0 + sh.iz1 - 0.02) / 2;
22628
22633
  const n = c.w >= 0.6 ? 2 : 1;
22629
22634
  const ids = doorsAcross(c, { x0: -hw + 3e-3, x1: hw - 3e-3, y0: 0.103, y1: yDr - 3e-3, zf, t, color: front, inner: lining, handle: "bar_v", side: sideOf(c, "left") });
@@ -22652,7 +22657,7 @@ var GameInteractablesHousehold = (() => {
22652
22657
  const y1 = y0 + h;
22653
22658
  const sh = shell(c, { x0: -hw, x1: hw, y0, y1, z0: -hd, z1: zr, color: body, inner: lining, t: 0.018 });
22654
22659
  const shelfY = y0 + h / 2;
22655
- shelf(c, sh.ix0, sh.ix1, shelfY, sh.iz0, sh.iz1 - 0.02, body);
22660
+ shelf(c, sh.ix0 + 3e-3, sh.ix1 - 3e-3, shelfY, sh.iz0, sh.iz1 - 0.02, body);
22656
22661
  const n = c.w >= 0.6 ? 2 : 1;
22657
22662
  const ids = doorsAcross(c, { x0: -hw + 3e-3, x1: hw - 3e-3, y0: y0 + 3e-3, y1: y1 - 3e-3, zf, t, color: front, inner: lining, handle: "knob", side: sideOf(c, "left") });
22658
22663
  const zc = (sh.iz0 + sh.iz1 - 0.02) / 2;
@@ -22675,7 +22680,7 @@ var GameInteractablesHousehold = (() => {
22675
22680
  const sh = shell(c, { x0: -hw, x1: hw, y0: 0.08, y1: h, z0: -hd, z1: zr, color: body, inner: lining, t: 0.018, material: garage ? "metal" : "wood" });
22676
22681
  c.b("wood", -hw + 0.01, 0, -hd + 0.03, hw - 0.01, 0.08, zr - 0.04, 3815478);
22677
22682
  const ys = [0.45, 0.8, 1.15, 1.5, 1.85].filter((y) => y < h - 0.2);
22678
- for (const y of ys) shelf(c, sh.ix0, sh.ix1, y, sh.iz0, sh.iz1 - (garage ? 0.02 : 0.025), body);
22683
+ for (const y of ys) shelf(c, sh.ix0 + 3e-3, sh.ix1 - 3e-3, y, sh.iz0, sh.iz1 - (garage ? 0.02 : 0.025), body);
22679
22684
  const dmax = sh.iz1 - 0.03 - sh.iz0 - 0.05;
22680
22685
  const zc = (sh.iz0 + sh.iz1 - 0.03) / 2;
22681
22686
  const levels = [sh.iy0, ...ys];
@@ -22699,17 +22704,17 @@ var GameInteractablesHousehold = (() => {
22699
22704
  const sh = shell(c, { x0: -hw, x1: hw, y0: 0.1, y1: h, z0: -hd, z1: zr, color: body, inner: lining, t: 0.02, tBack: 0.012 });
22700
22705
  c.b("wood", -hw + 0.01, 0, -hd + 0.03, hw - 0.01, 0.1, zr - 0.04, 3815478);
22701
22706
  const yBoard = 0.372;
22702
- c.b("wood", sh.ix0, yBoard, sh.iz0, sh.ix1, yBoard + 0.018, sh.iz1, shade(body, 0.95));
22703
- c.b("plain", sh.ix0, yBoard + 0.018, sh.iz0, sh.ix1, yBoard + 0.021, sh.iz1, lining);
22707
+ c.b("wood", sh.ix0 + 3e-3, yBoard, sh.iz0, sh.ix1 - 3e-3, yBoard + 0.018, sh.iz1, shade(body, 0.95));
22708
+ c.b("plain", sh.ix0 + 3e-3, yBoard + 0.018, sh.iz0, sh.ix1 - 3e-3, yBoard + 0.021, sh.iz1, lining);
22704
22709
  const gap = 3e-3;
22705
22710
  const dw = (c.w - 6e-3 - gap * (n - 1)) / n;
22706
22711
  const dx = (i) => -hw + 3e-3 + i * (dw + gap);
22707
22712
  const xs = dx(n - 1) - gap / 2;
22708
- c.b("wood", xs - 9e-3, yBoard + 0.018, sh.iz0, xs + 9e-3, sh.iy1, sh.iz1 - 0.02, shade(body, 0.95));
22713
+ c.b("wood", xs - 9e-3, yBoard + 0.021, sh.iz0, xs + 9e-3, sh.iy1, sh.iz1 - 0.02, shade(body, 0.95));
22709
22714
  const rodY = Math.min(1.82, h - 0.28);
22710
22715
  const zc = (sh.iz0 + sh.iz1) / 2 - 0.02;
22711
- c.rod("metal", "x", (sh.ix0 + xs - 9e-3) / 2, rodY, zc, 0.0125, xs - 9e-3 - sh.ix0, 11843772);
22712
- for (const x of [sh.ix0 + 0.01, xs - 0.02]) c.b("metal", x - 0.01, rodY - 0.03, zc - 0.03, x + 0.01, rodY + 0.03, zc + 0.03, 9212054);
22716
+ c.rod("metal", "x", (sh.ix0 + 3e-3 + xs - 9e-3) / 2, rodY, zc, 0.0125, xs - 9e-3 - sh.ix0 - 3e-3, 11843772);
22717
+ for (const x of [sh.ix0 + 0.013, xs - 0.02]) c.b("metal", x - 0.01, rodY - 0.03, zc - 0.03, x + 0.01, rodY + 0.03, zc + 0.03, 9212054);
22713
22718
  const span2 = xs - 9e-3 - sh.ix0 - 0.1;
22714
22719
  const count = Math.max(4, Math.floor(span2 / 0.07));
22715
22720
  const palette = [3824266, 11029050, 4880970, 14209216, 2763312, 9071258, 13148224];
@@ -22725,7 +22730,7 @@ var GameInteractablesHousehold = (() => {
22725
22730
  drawPieces(c, g.pieces, { x, y: rodY - 0.09 * scale, z: zc, yaw, scale });
22726
22731
  }
22727
22732
  const sy = [0.7, 1.05, 1.4, 1.75].filter((y) => y < h - 0.2);
22728
- for (const y of sy) shelf(c, xs + 9e-3, sh.ix1, y, sh.iz0, sh.iz1 - 0.02, body);
22733
+ for (const y of sy) shelf(c, xs + 9e-3, sh.ix1 - 3e-3, y, sh.iz0, sh.iz1 - 0.02, body);
22729
22734
  const levels = [yBoard + 0.021, ...sy];
22730
22735
  const cols = sh.ix1 - (xs + 0.02) >= 0.3 ? 2 : 1;
22731
22736
  const shelfSlots = levels.flatMap((y, i) => {
@@ -22855,7 +22860,7 @@ var GameInteractablesHousehold = (() => {
22855
22860
  const y1 = y0 + h;
22856
22861
  const sh = shell(c, { x0: -hw, x1: hw, y0, y1, z0: -hd, z1: zf - t - 3e-3, color: body, inner: lining, t: 0.015, tBack: 0.01, material: "plain" });
22857
22862
  const shelfYs = [y0 + h / 3, y0 + 2 * h / 3];
22858
- for (const y of shelfYs) shelf(c, sh.ix0, sh.ix1, y, sh.iz0, sh.iz1 - 0.01, 13625066, 0.016, true);
22863
+ for (const y of shelfYs) shelf(c, sh.ix0 + 3e-3, sh.ix1 - 3e-3, y, sh.iz0, sh.iz1 - 0.01, 13625066, 0.016, true);
22859
22864
  const levels = [sh.iy0, ...shelfYs];
22860
22865
  const zc = (sh.iz0 + sh.iz1) / 2;
22861
22866
  const slots = levels.flatMap((y, i) => c.row(sh.ix0 + 0.01, sh.ix1 - 0.01, y, zc, 4, [0.12, (i < levels.length - 1 ? levels[i + 1] - y : sh.iy1 - y) - 0.025, sh.iz1 - sh.iz0 - 0.03]));
@@ -23570,7 +23575,7 @@ var GameInteractablesHousehold = (() => {
23570
23575
  c.b("plain", -ow, hearthY, zw + 0.1, -ow + 0.04, openTop, zs, lin);
23571
23576
  c.b("plain", ow - 0.04, hearthY, zw + 0.1, ow, openTop, zs, lin);
23572
23577
  c.b("plain", -ow + 0.04, hearthY, zw + 0.1, ow - 0.04, hearthY + 0.03, zs, shade(lin, 0.75));
23573
- c.b("plain", -ow, openTop - 0.02, zw + 0.1, ow, openTop, zs, shade(lin, 0.8));
23578
+ c.b("plain", -ow + 0.04, openTop - 0.02, zw + 0.1, ow - 0.04, openTop, zs, shade(lin, 0.8));
23574
23579
  c.b("metal", -ow - 0.02, openTop, zs - 0.03, ow + 0.02, openTop + 0.04, zs + 5e-3, 3816512);
23575
23580
  masonry(-ow, openTop, zw, ow, mantelY, zs - 0.03);
23576
23581
  c.b("wood", -hw, mantelY, zw, hw, mantelY + 0.07, zs + 0.07, c.wood(6965808));
@@ -23581,16 +23586,16 @@ var GameInteractablesHousehold = (() => {
23581
23586
  masonry(-bw, mantelY + 0.07, zw, bw, breastTop, zw + 0.45);
23582
23587
  masonry(-stackHalf, breastTop, zw, stackHalf, chimneyTop - 0.08, zw + 0.4);
23583
23588
  c.b("plain", -stackHalf - 0.04, chimneyTop - 0.08, zw, stackHalf + 0.04, chimneyTop - 0.04, zw + 0.44, 13617596);
23584
- c.b("plain", -0.13, chimneyTop - 0.04, zw + 0.07, 0.13, chimneyTop, zw + 0.33, 10130570);
23585
- c.b("plain", -0.1, chimneyTop - 2e-3, zw + 0.1, 0.1, chimneyTop, zw + 0.3, 4866106);
23589
+ c.b("plain", -0.13, chimneyTop - 0.04, zw + 0.07, 0.13, chimneyTop - 2e-3, zw + 0.33, 10130570);
23590
+ c.b("plain", -0.1, chimneyTop - 4e-3, zw + 0.1, 0.1, chimneyTop, zw + 0.3, 4866106);
23586
23591
  const fz = zw + 0.1 + (sd - 0.1) * 0.5;
23587
23592
  const gy = hearthY + 0.03;
23588
23593
  for (const s of [-1, 1]) {
23589
23594
  c.b("metal", s * 0.27 - 0.02, gy, fz - 0.17, s * 0.27 + 0.02, gy + 0.2, fz - 0.15, IRON);
23590
23595
  c.b("metal", s * 0.27 - 0.02, gy, fz + 0.15, s * 0.27 + 0.02, gy + 0.2, fz + 0.17, IRON);
23591
- c.b("metal", s * 0.27 - 0.02, gy + 0.08, fz - 0.17, s * 0.27 + 0.02, gy + 0.1, fz + 0.17, IRON);
23596
+ c.b("metal", s * 0.27 - 0.015, gy + 0.08, fz - 0.15, s * 0.27 + 0.015, gy + 0.1, fz + 0.15, IRON);
23592
23597
  }
23593
- for (let i = 0; i < 5; i++) c.b("metal", -0.28, gy + 0.08, fz - 0.14 + i * 0.07, 0.28, gy + 0.095, fz - 0.128 + i * 0.07, shade(IRON, 1.3));
23598
+ for (let i = 0; i < 5; i++) c.b("metal", -0.28, gy + 0.083, fz - 0.14 + i * 0.07, 0.28, gy + 0.097, fz - 0.128 + i * 0.07, shade(IRON, 1.3));
23594
23599
  const log = 5914154;
23595
23600
  c.rod("wood", "x", 0, gy + 0.17, fz - 0.09, 0.06, 0.56, log);
23596
23601
  c.rod("wood", "x", 0.02, gy + 0.17, fz + 0.09, 0.055, 0.5, shade(log, 1.1));