@adatechnology/game-interactables-household 0.8.0 → 0.8.2
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.global.js +13 -3
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.global.js
CHANGED
|
@@ -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)
|
|
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
|
}
|
|
@@ -23062,6 +23069,9 @@ var GameInteractablesHousehold = (() => {
|
|
|
23062
23069
|
c.spec.colliders = [];
|
|
23063
23070
|
c.collider("wall_back", -hw, 0, -hd, hw, h, -hd + 0.03);
|
|
23064
23071
|
c.collider("wall_left", -hw, 0, -hd + 0.03, -hw + 0.03, h, hd - 0.05);
|
|
23072
|
+
c.collider("glass_side", hw - 0.032, 0, -hd + 0.03, hw, h, hd);
|
|
23073
|
+
if (hingeX - (-hw + 0.03) > 0.02) c.collider("glass_fixed", -hw + 0.03, 0, zFront - 4e-3, hingeX - 4e-3, h, zFront + 4e-3);
|
|
23074
|
+
c.add("colliders", { id: "glass_door", center: [round3((hingeX + dx1) / 2), round3(h / 2), round3(zFront)], half: [round3(dw / 2), round3(h / 2), 4e-3], part: "glass_door", offWhenOpen: true });
|
|
23065
23075
|
}
|
|
23066
23076
|
var FLUSH_TRAVEL = 8e-3;
|
|
23067
23077
|
var BOWL_Z = 0.12;
|