@adatechnology/game-items-three 0.10.6 → 0.11.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.
- package/dist/{chunk-S4UUQQOL.js → chunk-64JEKMFT.js} +18 -10
- package/dist/chunk-64JEKMFT.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.global.js +416 -105
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{testing-CBYX7wTL.d.ts → testing-D2tqWTG4.d.ts} +4 -2
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +15 -13
- package/dist/chunk-S4UUQQOL.js.map +0 -1
|
@@ -4969,13 +4969,13 @@ var sheetMetal = ({ mesh, bx, cyl, G, metal }) => {
|
|
|
4969
4969
|
const hole = metal(1842463);
|
|
4970
4970
|
const corners = [[2.5, 1.8], [-2.5, 1.8], [2.5, -1.8], [-2.5, -1.8]];
|
|
4971
4971
|
return G(
|
|
4972
|
-
mesh(bx(
|
|
4973
|
-
mesh(bx(6, 0.
|
|
4974
|
-
mesh(bx(6, 0.
|
|
4975
|
-
mesh(bx(0.16, 0.
|
|
4976
|
-
mesh(bx(0.16, 0.
|
|
4977
|
-
mesh(bx(1.2, 0.
|
|
4978
|
-
...corners.map(([x, z]) => mesh(cyl(0.12, 0.12, 0.
|
|
4972
|
+
mesh(bx(5.68, 6e-3, 4.18), zinc, [0, 0, 0]),
|
|
4973
|
+
mesh(bx(6, 0.03, 0.16), edge, [0, 0, 2.17]),
|
|
4974
|
+
mesh(bx(6, 0.03, 0.16), edge, [0, 0, -2.17]),
|
|
4975
|
+
mesh(bx(0.16, 0.03, 4.18), edge, [2.92, 0, 0]),
|
|
4976
|
+
mesh(bx(0.16, 0.03, 4.18), edge, [-2.92, 0, 0]),
|
|
4977
|
+
mesh(bx(1.2, 0.03, 0.8), metal(8014380), [-0.8, 0, -0.4]),
|
|
4978
|
+
...corners.map(([x, z]) => mesh(cyl(0.12, 0.12, 0.03, 8), hole, [x, 0, z]))
|
|
4979
4979
|
);
|
|
4980
4980
|
};
|
|
4981
4981
|
|
|
@@ -5975,7 +5975,8 @@ var kerosene = ({ mesh, cyl, G, plastic, paper: paper2 }) => {
|
|
|
5975
5975
|
// src/models/laptop.ts
|
|
5976
5976
|
var laptop = ({ mesh, cyl, bx, G, metal, plastic }) => G(
|
|
5977
5977
|
mesh(bx(0.36, 0.012, 0.25), metal(9277588), [0, 6e-3, 0]),
|
|
5978
|
-
mesh(bx(0.
|
|
5978
|
+
mesh(bx(0.356, 0.012, 0.246), metal(2895667), [0, 0.017, 0]),
|
|
5979
|
+
// the lid 2 mm inside the base's sides (CLAUDE.md §13)
|
|
5979
5980
|
mesh(cyl(6e-3, 6e-3, 0.2, 8), plastic(1842204), [0, 0.0125, -0.12], [0, 0, Math.PI / 2]),
|
|
5980
5981
|
mesh(bx(0.05, 42e-4, 0.03), metal(11843514), [0, 0.0231, 0])
|
|
5981
5982
|
);
|
|
@@ -7623,12 +7624,19 @@ function createItemsTestModule(options) {
|
|
|
7623
7624
|
const spec = model === void 0 || !itemMakeup(model) ? void 0 : makeupSpec(model);
|
|
7624
7625
|
return spec ? { spec: () => structuredClone(spec) } : {};
|
|
7625
7626
|
};
|
|
7627
|
+
const usesOf = (def) => {
|
|
7628
|
+
const use = options.itemUse?.(def);
|
|
7629
|
+
const liquid = sealOf(def, fluidOf({ ...def.model === void 0 ? {} : { model: def.model }, size: def.size, weight: def.weight }));
|
|
7630
|
+
if (!use) return liquid;
|
|
7631
|
+
const edible = def.category === "food" || def.category === "drink";
|
|
7632
|
+
return { ...liquid, ...liquid.fluid && !edible ? { fluid: { ...liquid.fluid, uses: ["pour", "pour_out"] } } : {}, use };
|
|
7633
|
+
};
|
|
7626
7634
|
const itemOf = (def) => ({
|
|
7627
7635
|
id: `${ITEM_PREFIX}${def.id}`,
|
|
7628
7636
|
name: nameOf(def),
|
|
7629
7637
|
movable: true,
|
|
7630
7638
|
thumbnail: itemThumbnailSvg(drawable(def)),
|
|
7631
|
-
...
|
|
7639
|
+
...usesOf(def),
|
|
7632
7640
|
// an item with a make-up (a shovel: ash handle riveted to a steel blade) is that spec, not the parts guessed from its meshes
|
|
7633
7641
|
...makeupSpecOf(def.model),
|
|
7634
7642
|
// an item that is also a tool of the arsenal (a shovel) is picked up as that tool
|
|
@@ -8184,4 +8192,4 @@ export {
|
|
|
8184
8192
|
HUMAN_HEIGHT,
|
|
8185
8193
|
createItemsTestModule
|
|
8186
8194
|
};
|
|
8187
|
-
//# sourceMappingURL=chunk-
|
|
8195
|
+
//# sourceMappingURL=chunk-64JEKMFT.js.map
|