@adatechnology/game-interactables-household 0.7.5 → 0.8.0

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.
@@ -21104,6 +21104,11 @@ var GameInteractablesHousehold = (() => {
21104
21104
  "prompt.glass_door.open": "Close the glass door",
21105
21105
  "prompt.glass_door.closed": "Open the glass door",
21106
21106
  "prompt.flush": "Flush",
21107
+ "prompt.flush.off": "Flush",
21108
+ "prompt.flush.on": "Flushing",
21109
+ "program.wash": "Wash",
21110
+ "program.dry": "Spin-dry",
21111
+ "use.grill": "Put {item} on the grill",
21107
21112
  "prompt.toilet_lid": "Toilet lid",
21108
21113
  "prompt.toilet_lid.open": "Close the lid",
21109
21114
  "prompt.toilet_lid.closed": "Lift the lid",
@@ -21349,6 +21354,11 @@ var GameInteractablesHousehold = (() => {
21349
21354
  "prompt.glass_door.open": "Fechar a porta de vidro",
21350
21355
  "prompt.glass_door.closed": "Abrir a porta de vidro",
21351
21356
  "prompt.flush": "Descarga",
21357
+ "prompt.flush.off": "Dar a descarga",
21358
+ "prompt.flush.on": "Descarga correndo",
21359
+ "program.wash": "Lavar",
21360
+ "program.dry": "Secar",
21361
+ "use.grill": "P\xF4r {item} na grelha",
21352
21362
  "prompt.toilet_lid": "Tampa do vaso",
21353
21363
  "prompt.toilet_lid.open": "Fechar a tampa",
21354
21364
  "prompt.toilet_lid.closed": "Levantar a tampa",
@@ -21849,7 +21859,7 @@ var GameInteractablesHousehold = (() => {
21849
21859
  d: 0.38,
21850
21860
  h: 0.3,
21851
21861
  y: 0.9,
21852
- solid: false,
21862
+ solid: true,
21853
21863
  massKg: 14,
21854
21864
  sounds: {
21855
21865
  leaves: {
@@ -21982,7 +21992,8 @@ var GameInteractablesHousehold = (() => {
21982
21992
  h: 1.3,
21983
21993
  y: 0,
21984
21994
  solid: true,
21985
- massKg: 6
21995
+ massKg: 6,
21996
+ fixed: true
21986
21997
  },
21987
21998
  {
21988
21999
  id: "dog_house",
@@ -22303,6 +22314,7 @@ var GameInteractablesHousehold = (() => {
22303
22314
  if (o.part) dev.part = o.part;
22304
22315
  if (o.channels) dev.channels = o.channels;
22305
22316
  if (o.fixture) dev.fixture = o.fixture;
22317
+ if (o.display) dev.display = o.display;
22306
22318
  c.add("devices", dev);
22307
22319
  const floor = c.y0 + 0.01;
22308
22320
  c.add("wires", {
@@ -22499,7 +22511,7 @@ var GameInteractablesHousehold = (() => {
22499
22511
  c.part("power", [bx, py + 5e-3, -0.02 + bz], { kind: "rocker", axis: [1, 0, 0], angle: 0.2 }, () => {
22500
22512
  c.b("plain", bx - 0.01, py - 8e-3, -0.02 + bz - 4e-3, bx + 0.01, py + 2e-3, -0.02 + bz + 6e-3, 3816512);
22501
22513
  }, { label: "prompt.tv_power", at: false, noSweep: true, radius: 1.2 });
22502
- plugged(c, "tv", "screen", 90, [hw * 0.5, py + 0.1, -0.02 - 0.03], { part: "power", channels: 6, on: c.M.on });
22514
+ plugged(c, "tv", "screen", 90, [hw * 0.5, py + 0.1, -0.02 - 0.03], { part: "power", channels: 6, on: c.M.on, display: { center: [0, round3(py + ph / 2), round3(-0.02 + bz + 5e-3)], w: round3(w - 0.05), h: round3(ph - 0.05) } });
22503
22515
  c.interact("use_tv", [0, py + ph / 2, hd], { do: "toggle_device", device: "tv" }, "prompt.tv", 2.5);
22504
22516
  c.interact("channel_tv", [hw * 0.5, py + ph * 0.5, hd], { do: "cycle_device", device: "tv" }, "prompt.tv_channel", 2.5);
22505
22517
  }
@@ -22545,6 +22557,8 @@ var GameInteractablesHousehold = (() => {
22545
22557
  plugged(c, "microwave", "appliance", 1200, [hw * 0.5, y0 + 0.08, -hd], { part: "dial", on: c.M.on });
22546
22558
  c.interact("use_microwave", [hw - 0.07, y0 + 0.07, zf + 0.03], { do: "toggle_device", device: "microwave" }, "prompt.microwave", 1.2);
22547
22559
  }
22560
+ var WASH_SECONDS = 90;
22561
+ var DRY_SECONDS = 60;
22548
22562
  function washingMachine(c) {
22549
22563
  const { hw, hd, h } = c;
22550
22564
  const body = c.main(15790835);
@@ -22586,7 +22600,14 @@ var GameInteractablesHousehold = (() => {
22586
22600
  );
22587
22601
  c.add("fixtures", { id: "inlet", kind: "hose", outlet: [round3(-hw * 0.6), 0.2, -hd], dir: [0, 0, -1], flow: 12 });
22588
22602
  plugged(c, "washer", "appliance", 500, [hw * 0.5, 0.15, -hd], { part: "dial", on: c.M.on, fixture: "inlet" });
22603
+ c.add("devices", { id: "dryer", kind: "heater", watts: 2e3, socket: "auto", plug: [hw * 0.5, 0.15, -hd] });
22589
22604
  c.interact("use_washer", [0.04, h - 0.07, zf + 0.03], { do: "toggle_device", device: "washer" }, "prompt.washing_machine", 1.2);
22605
+ const drumZ = zf - 0.26;
22606
+ const inner = R - 0.02;
22607
+ c.container({ id: "drum", access: "door", from: [-inner, cy - inner, drumZ - 0.22], to: [inner, cy + inner, drumZ + 0.22], slots: [{ pos: [0, round3(cy - inner), round3(drumZ)], max: [round3(inner * 1.4), round3(inner * 1.4), 0.4] }] });
22608
+ c.add("uses", { id: "wash", do: "program", device: "washer", seconds: WASH_SECONDS, label: "program.wash", access: "door" });
22609
+ c.add("uses", { id: "dry", do: "program", device: "dryer", seconds: DRY_SECONDS, label: "program.dry", access: "door" });
22610
+ c.add("uses", { id: "load", do: "put_in", container: "drum", label: "use.put_in" });
22590
22611
  }
22591
22612
  function electricalPanel(c) {
22592
22613
  const { hw, hd, h, y0 } = c;
@@ -22979,6 +23000,7 @@ var GameInteractablesHousehold = (() => {
22979
23000
  tap2(c, 0, tubTop + 0.08, -hd + 0.08, "tap", "tap_handle", tub);
22980
23001
  c.add("fixtures", { id: "basin", kind: "utility_sink", outlet: [0, round3(tubTop - 0.1), 0], dir: [0, -1, 0], flow: 12, tank: "auto" });
22981
23002
  }
23003
+ var SHOWER_DOOR = 0.72;
22982
23004
  function shower(c) {
22983
23005
  const { hw, hd, h } = c;
22984
23006
  const tile = c.main(15133162);
@@ -23012,28 +23034,30 @@ var GameInteractablesHousehold = (() => {
23012
23034
  c.add("emitters", { id: "shower_steam", kind: "steam", pos: [0, 1.4, 0], dir: [0, 1, 0], source: "shower", size: 0.8 });
23013
23035
  c.interact("use_shower", [0.25, 1.1, -hd + 0.08], { do: "toggle_fixture", fixture: "shower" }, "prompt.shower", 1.3);
23014
23036
  const gl = 12573670;
23015
- const zFixed = hd - 0.015;
23016
- const zSlide = hd - 0.04;
23037
+ const zFront = hd - 0.015;
23017
23038
  const gh = h - 0.1;
23018
23039
  const gy = 0.075;
23019
- c.b("glass", -hw + 0.03, gy, zFixed - 4e-3, 0.02, gy + gh, zFixed + 4e-3, gl);
23040
+ const dx1 = hw - 0.034;
23041
+ const hingeX = round3(Math.max(-hw + 0.05, dx1 - SHOWER_DOOR));
23042
+ const dw = dx1 - hingeX;
23043
+ if (hingeX - (-hw + 0.03) > 0.02) {
23044
+ c.b("glass", -hw + 0.03, gy, zFront - 4e-3, hingeX - 4e-3, gy + gh, zFront + 4e-3, gl);
23045
+ c.add("soft", { id: "glass_fixed", kind: "panel", anchor: [round3((-hw + 0.03 + hingeX) / 2), round3(gy + gh), zFront], size: [round3(hingeX + hw - 0.03), round3(gh), 0.01], stiffness: 18, damping: 6, maxAngle: 0.2, wind: 0 });
23046
+ }
23020
23047
  c.b("glass", hw - 0.032, gy, -hd + 0.03, hw - 0.024, gy + gh, hd - 0.05, gl);
23021
- const dw = (hw - 0.03) * 0.55 + 0.02;
23022
- const dx1 = hw - 0.03;
23023
23048
  c.part(
23024
23049
  "glass_door",
23025
- [dx1 - dw / 2, gy, zSlide],
23026
- { kind: "slide", axis: [-1, 0, 0], distance: round3(dw - 0.06) },
23050
+ [hingeX, gy, zFront],
23051
+ { kind: "hinge", axis: [0, 1, 0], angle: -1.6 },
23027
23052
  () => {
23028
- c.b("glass", dx1 - dw + 2e-3, gy + 2e-3, zSlide - 4e-3, dx1 - 2e-3, gy + gh - 2e-3, zSlide + 4e-3, gl);
23029
- c.b("metal", dx1 - dw, gy, zSlide - 8e-3, dx1, gy + 0.015, zSlide + 8e-3, 12896460);
23030
- c.b("metal", dx1 - dw, gy + gh - 0.015, zSlide - 8e-3, dx1, gy + gh, zSlide + 8e-3, 12896460);
23031
- c.b("metal", dx1 - dw, gy + gh * 0.45, zSlide + 4e-3, dx1 - dw + 0.02, gy + gh * 0.45 + 0.3, zSlide + 0.024, 12896460);
23053
+ c.b("glass", hingeX + 2e-3, gy + 2e-3, zFront - 4e-3, dx1 - 2e-3, gy + gh - 2e-3, zFront + 4e-3, gl);
23054
+ c.b("metal", hingeX, gy, zFront - 8e-3, dx1, gy + 0.015, zFront + 8e-3, 12896460);
23055
+ c.b("metal", hingeX, gy + gh - 0.015, zFront - 8e-3, dx1, gy + gh, zFront + 8e-3, 12896460);
23056
+ c.b("metal", dx1 - 0.04, gy + gh * 0.45, zFront + 8e-3, dx1 - 0.02, gy + gh * 0.45 + 0.3, zFront + 0.028, 12896460);
23032
23057
  },
23033
- { label: "prompt.glass_door", at: [dx1 - dw / 2, 1, zSlide + 0.03] }
23058
+ { label: "prompt.glass_door", at: [round3(dx1 - 0.03), 1, round3(zFront + 0.03)] }
23034
23059
  );
23035
- c.add("soft", { id: "glass_door", kind: "panel", anchor: [round3(dx1 - dw / 2), round3(gy + gh), zSlide], size: [round3(dw), round3(gh), 0.01], stiffness: 18, damping: 6, maxAngle: 0.35, wind: 0, part: "glass_door" });
23036
- c.add("soft", { id: "glass_fixed", kind: "panel", anchor: [round3((-hw + 0.03 + 0.02) / 2), round3(gy + gh), zFixed], size: [round3(hw + 0.02 - 0.03), round3(gh), 0.01], stiffness: 18, damping: 6, maxAngle: 0.2, wind: 0 });
23060
+ c.add("soft", { id: "glass_door", kind: "panel", anchor: [round3((hingeX + dx1) / 2), round3(gy + gh), zFront], size: [round3(dw), round3(gh), 0.01], stiffness: 18, damping: 6, maxAngle: 0.35, wind: 0, part: "glass_door" });
23037
23061
  c.add("damage", { target: "glass_door", kind: "glass", hp: 25 });
23038
23062
  c.spec.colliders = [];
23039
23063
  c.collider("wall_back", -hw, 0, -hd, hw, h, -hd + 0.03);
@@ -23092,9 +23116,11 @@ var GameInteractablesHousehold = (() => {
23092
23116
  },
23093
23117
  { label: "prompt.flush", at: false, noSweep: true }
23094
23118
  );
23095
- c.add("fixtures", { id: "flush", kind: "flush", outlet: [0, 0.36, BOWL_Z], dir: [0, -1, 0], volume: 6, part: "flush_button", tank: "auto" });
23096
- const bowl = { id: "bowl", from: [-0.12, 0.26, BOWL_Z - 0.12], to: [0.12, 0.36, BOWL_Z + 0.12], shape: "round" };
23119
+ c.add("fixtures", { id: "flush", kind: "flush", outlet: [0, 0.36, BOWL_Z], dir: [0, -1, 0], volume: 6, part: "flush_button", tank: "auto", cleans: "bowl" });
23120
+ const bowl = { id: "bowl", from: [-0.12, 0.26, BOWL_Z - 0.12], to: [0.12, 0.36, BOWL_Z + 0.12], shape: "round", soils: true };
23097
23121
  c.add("basins", bowl);
23122
+ c.add("uses", { id: "pee", do: "relieve", basin: "bowl", kind: "urine", label: "use.relieve.urine" });
23123
+ c.add("uses", { id: "poo", do: "relieve", basin: "bowl", kind: "feces", label: "use.relieve.feces" });
23098
23124
  const rim = [0, 0.385, BOWL_Z];
23099
23125
  c.add("emitters", { id: "flush_water", kind: "water", pos: rim, dir: [0, -1, 0], source: "flush", size: 0.08, ...streamInto(bowl, rim) });
23100
23126
  c.interact("use_flush", [0, ty + th + 0.05, -hd + 0.1], { do: "toggle_fixture", fixture: "flush" }, "prompt.flush");
@@ -23144,7 +23170,7 @@ var GameInteractablesHousehold = (() => {
23144
23170
  }
23145
23171
  for (const s of seats) c.add("seats", { ...s, eye: 0.62 });
23146
23172
  if (lie) {
23147
- c.add("seats", { id: "lie", pose: "lie", pos: [0, round3(seatY + 0.06), round3(sz0 + (sz1 - sz0) * 0.5)], ry: Math.PI / 2, exit: [0, 0, round3(hd + 0.55)] });
23173
+ c.add("seats", { id: "lie", pose: "lie", pos: [0, round3(seatY + 0.03), round3(sz0 + (sz1 - sz0) * 0.5)], ry: Math.PI / 2, eye: 0.21, exit: [0, 0, round3(hd + 0.55)] });
23148
23174
  }
23149
23175
  for (const s of c.spec.seats ?? []) c.interact(`sit_${s.id}`, [s.pos[0], round3(s.pos[1] + 0.25), round3(s.pos[2] + 0.3)], { do: "sit", seat: s.id }, s.pose === "lie" ? "prompt.lie" : "prompt.sit", 1.6);
23150
23176
  }
@@ -23201,7 +23227,7 @@ var GameInteractablesHousehold = (() => {
23201
23227
  const id = double ? `lie_${i + 1}` : "lie";
23202
23228
  seats.push(id);
23203
23229
  const sx = double ? i === 0 ? -1 : 1 : 0;
23204
- c.add("seats", { id, pose: "lie", pos: [round3(cx), round3(matTop + 0.06), round3(-hd + 0.95)], ry: FACE, eye: 0.2, exit: [round3(sx * (hw + 0.5) || hw + 0.5), 0, round3(-hd + 1.1)] });
23230
+ c.add("seats", { id, pose: "lie", pos: [round3(cx), round3(matTop), round3(-hd + 0.95)], ry: FACE, eye: 0.26, exit: [round3(sx * (hw + 0.5) || hw + 0.5), 0, round3(-hd + 1.1)] });
23205
23231
  }
23206
23232
  for (const id of seats) {
23207
23233
  const s = c.spec.seats.find((x) => x.id === id);
@@ -23268,7 +23294,7 @@ var GameInteractablesHousehold = (() => {
23268
23294
  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));
23269
23295
  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);
23270
23296
  for (const [id, top, ex] of [["lie_lower", lowTop, 1], ["lie_upper", highTop, -1]]) {
23271
- 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)] });
23297
+ c.add("seats", { id, pose: "lie", pos: [0, round3(top), round3(-hd + 0.95)], ry: FACE, eye: 0.26, exit: [round3(ex * (hw + 0.5)), 0, round3(-hd + 1.1)] });
23272
23298
  c.interact(`lie_${id}`, [0, round3(top + 0.3), round3(-hd + 0.95)], { do: "sit", seat: id }, "prompt.lie", 1.8);
23273
23299
  }
23274
23300
  }
@@ -24065,6 +24091,9 @@ var GameInteractablesHousehold = (() => {
24065
24091
  ...c.row(lx0 + 0.01, lx1 - 0.01, 0.416, zc, 2, [0.17, topC - 0.12 - 0.416 - 0.02, 0.4])
24066
24092
  ];
24067
24093
  c.container({ id: "counter", access: "counter_door", from: [lx0, 0.05, lz0], to: [lx1, topC - 0.12, lz1], slots, loot: "bbq_counter" });
24094
+ const grateZ = (iz0 + iz1) / 2;
24095
+ c.container({ id: "grate", from: [ix0 + 0.02, gy + 8e-3, iz0 + 0.02], to: [ix1 - 0.02, gy + 0.2, iz1 - 0.02], slots: c.row(ix0 + 0.06, ix1 - 0.06, gy + 8e-3, grateZ, 3, [0.18, 0.15, round3(iz1 - iz0 - 0.06)]) });
24096
+ c.add("uses", { id: "grill", do: "put_in", container: "grate", label: "use.grill" });
24068
24097
  c.add("fuels", { id: "charcoal", kind: "charcoal", capacity: 4, level: 4 });
24069
24098
  const bed = [round3((ix0 + ix1) / 2), round3(bedY + 0.05), round3((iz0 + iz1) / 2)];
24070
24099
  c.add("burners", { id: "coal", pos: bed, fuel: "charcoal", rate: 4e-4, needsIgnition: true });
@@ -24889,6 +24918,8 @@ var GameInteractablesHousehold = (() => {
24889
24918
  c.b("plain", -0.05, hy - 0.01, -hd - 4e-3, 0.05, hy + 0.03, -hd + 0.03, 1974306);
24890
24919
  const slots = [...trashSlots(c, b, 2, 2, 0.28), ...trashSlots(c, { ...b, iy0: b.iy0 + 0.22 }, 2, 1, 0.2)];
24891
24920
  c.container({ id: "bin", access: "lid", from: [b.ix0, b.iy0, b.iz0], to: [b.ix1, rim, b.iz1], slots, loot: "trash" });
24921
+ c.add("uses", { id: "throw", do: "put_in", container: "bin", label: "use.put_in" });
24922
+ c.add("uses", { id: "empty", do: "empty", container: "bin", label: "use.empty" });
24892
24923
  c.add("damage", { target: "self", kind: "plastic", hp: 40 });
24893
24924
  }
24894
24925
  function wheelieBin(c) {
@@ -24928,6 +24959,8 @@ var GameInteractablesHousehold = (() => {
24928
24959
  );
24929
24960
  const slots = [...trashSlots(c, b, 2, 3, 0.4), ...trashSlots(c, { ...b, iy0: b.iy0 + 0.3 }, 2, 2, 0.3)];
24930
24961
  c.container({ id: "bin", access: "lid", from: [b.ix0, b.iy0, b.iz0], to: [b.ix1, rim, b.iz1], slots, loot: "trash" });
24962
+ c.add("uses", { id: "throw", do: "put_in", container: "bin", label: "use.put_in" });
24963
+ c.add("uses", { id: "empty", do: "empty", container: "bin", label: "use.empty" });
24931
24964
  c.add("damage", { target: "self", kind: "plastic", hp: 60 });
24932
24965
  }
24933
24966
  function mailbox(c) {
@@ -25076,11 +25109,18 @@ var GameInteractablesHousehold = (() => {
25076
25109
  c.b("wood", -0.03, top - 5e-3, rz0 - 0.01, 0.03, top + roofT / 2 / cos + 0.012, rz1 + 0.01, shade(roofCol, 0.7));
25077
25110
  c.b("fabric", x0 + t + 0.03, y0 + 0.014, z0 + t + 0.03, x1 - t - 0.03, y0 + 0.07, z1 - t - 0.2, c.accent(4876954));
25078
25111
  c.b("fabric", x0 + t + 0.05, y0 + 0.07, z0 + t + 0.05, x1 - t - 0.05, y0 + 0.075, z1 - t - 0.22, mix(c.accent(4876954), 16777215, 0.15));
25079
- if (c.M.variant !== "no_bowl") {
25080
- const bx = x1 - 0.1;
25081
- const bz = z1 + 0.11;
25082
- c.cyl("metal", bx, 0, bz, 0.085, 0.045, 11843772, "cyl");
25083
- c.cyl("plain", bx, 0.045, bz, 0.07, 4e-3, 8018480, "cyl");
25112
+ if (c.M.variant !== "no_bowl") dogBowls(c, x0, x1, z1 + 0.11);
25113
+ }
25114
+ var DOG_BOWL = { radius: 0.085, height: 0.045, inner: 0.07, food: 0.3, water: 0.8 };
25115
+ function dogBowls(c, x0, x1, bz) {
25116
+ const bowls = [
25117
+ { id: "food", holds: "food", x: x1 - 0.1, accepts: ["dog_food"], capacity: DOG_BOWL.food },
25118
+ { id: "water", holds: "water", x: x0 + 0.1, capacity: DOG_BOWL.water }
25119
+ ];
25120
+ for (const b of bowls) {
25121
+ c.cyl("metal", b.x, 0, bz, DOG_BOWL.radius, DOG_BOWL.height, 11843772, "cyl");
25122
+ c.add("bowls", { id: b.id, holds: b.holds, capacity: b.capacity, center: [round3(b.x), DOG_BOWL.height, round3(bz)], radius: DOG_BOWL.inner, depth: 0.012, ...b.accepts ? { accepts: b.accepts } : {} });
25123
+ c.add("uses", { id: `fill_${b.id}`, do: "fill", bowl: b.id, label: "use.fill" });
25084
25124
  }
25085
25125
  }
25086
25126