@adatechnology/game-items-goods 0.7.2 → 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.
- package/dist/index.global.js +69 -3
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +67 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.global.js
CHANGED
|
@@ -202,6 +202,7 @@ var GameItemsGoods = (() => {
|
|
|
202
202
|
[DEFERRED_QUEUE_ID.DESTRUCTION_PREFIT]: { priority: 40, phase: "idle", minEveryFrames: 30 }
|
|
203
203
|
};
|
|
204
204
|
var MUST_DRAIN_QUEUE_IDS = /* @__PURE__ */ new Set([DEFERRED_QUEUE_ID.DESTRUCTION_EVENTS, DEFERRED_QUEUE_ID.BREACH_CUT]);
|
|
205
|
+
var ITEM_TOOLS = ["plunger"];
|
|
205
206
|
var WARNED_KEY = /* @__PURE__ */ Symbol.for("@adatechnology/game-contracts.warned");
|
|
206
207
|
var warnedKeys = () => {
|
|
207
208
|
const holder = globalThis;
|
|
@@ -570,6 +571,7 @@ var GameItemsGoods = (() => {
|
|
|
570
571
|
if (item.shelfLife !== void 0 && !isPositive(item.shelfLife)) issue(`has a shelf life of ${item.shelfLife} days`);
|
|
571
572
|
if (item.portions !== void 0 && !(Number.isInteger(item.portions) && item.portions > 0)) issue(`has ${item.portions} portions`);
|
|
572
573
|
if (item.durability && !DURABILITY_KINDS.includes(item.durability.kind)) issue(`has unknown durability kind "${item.durability.kind}"`);
|
|
574
|
+
for (const tool of item.tools ?? []) if (!ITEM_TOOLS.includes(tool)) issue(`works as unknown tool "${tool}"`);
|
|
573
575
|
if (item.consumable) for (const problem of consumableProblems(item.consumable)) issue(problem);
|
|
574
576
|
const { protection } = item;
|
|
575
577
|
if (protection) {
|
|
@@ -11881,6 +11883,12 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
11881
11883
|
material: "glass",
|
|
11882
11884
|
thickness: 3e-3
|
|
11883
11885
|
}
|
|
11886
|
+
],
|
|
11887
|
+
container: {
|
|
11888
|
+
capacityLiters: 0.3
|
|
11889
|
+
},
|
|
11890
|
+
estimated: [
|
|
11891
|
+
"container"
|
|
11884
11892
|
]
|
|
11885
11893
|
},
|
|
11886
11894
|
{
|
|
@@ -12132,8 +12140,17 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
12132
12140
|
}
|
|
12133
12141
|
],
|
|
12134
12142
|
estimated: [
|
|
12135
|
-
"parts"
|
|
12136
|
-
|
|
12143
|
+
"parts",
|
|
12144
|
+
"consumable"
|
|
12145
|
+
],
|
|
12146
|
+
consumable: {
|
|
12147
|
+
form: "liquid",
|
|
12148
|
+
unit: "ml",
|
|
12149
|
+
amount: 450,
|
|
12150
|
+
dose: 5,
|
|
12151
|
+
emptyKg: 0.03,
|
|
12152
|
+
density: 1.03
|
|
12153
|
+
}
|
|
12137
12154
|
},
|
|
12138
12155
|
{
|
|
12139
12156
|
id: "bleach",
|
|
@@ -13623,8 +13640,12 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
13623
13640
|
thickness: 2e-3
|
|
13624
13641
|
}
|
|
13625
13642
|
],
|
|
13643
|
+
container: {
|
|
13644
|
+
capacityLiters: 0.35
|
|
13645
|
+
},
|
|
13626
13646
|
estimated: [
|
|
13627
|
-
"parts"
|
|
13647
|
+
"parts",
|
|
13648
|
+
"container"
|
|
13628
13649
|
]
|
|
13629
13650
|
},
|
|
13630
13651
|
{
|
|
@@ -13771,6 +13792,41 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
13771
13792
|
},
|
|
13772
13793
|
weapon: "brass_knuckles",
|
|
13773
13794
|
model: "brass_knuckles"
|
|
13795
|
+
},
|
|
13796
|
+
{
|
|
13797
|
+
id: "plunger",
|
|
13798
|
+
category: "tools",
|
|
13799
|
+
kind: "tool",
|
|
13800
|
+
tags: [
|
|
13801
|
+
"cleaning"
|
|
13802
|
+
],
|
|
13803
|
+
tools: [
|
|
13804
|
+
"plunger"
|
|
13805
|
+
],
|
|
13806
|
+
size: [
|
|
13807
|
+
0.14,
|
|
13808
|
+
0.55,
|
|
13809
|
+
0.14
|
|
13810
|
+
],
|
|
13811
|
+
weight: 0.45,
|
|
13812
|
+
stack: 1,
|
|
13813
|
+
shape: "tool",
|
|
13814
|
+
color: 11545120,
|
|
13815
|
+
rarity: "common",
|
|
13816
|
+
finds: {
|
|
13817
|
+
places: [
|
|
13818
|
+
"house",
|
|
13819
|
+
"apartment"
|
|
13820
|
+
]
|
|
13821
|
+
},
|
|
13822
|
+
parts: [
|
|
13823
|
+
{
|
|
13824
|
+
id: "body",
|
|
13825
|
+
material: "rubber",
|
|
13826
|
+
thickness: 4e-3
|
|
13827
|
+
}
|
|
13828
|
+
],
|
|
13829
|
+
model: "plunger"
|
|
13774
13830
|
}
|
|
13775
13831
|
];
|
|
13776
13832
|
|
|
@@ -15590,6 +15646,14 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
15590
15646
|
"alicate"
|
|
15591
15647
|
]
|
|
15592
15648
|
},
|
|
15649
|
+
plunger: {
|
|
15650
|
+
created: true,
|
|
15651
|
+
idSource: "decision",
|
|
15652
|
+
sizeSource: "REF",
|
|
15653
|
+
vc3: [
|
|
15654
|
+
"desentupidor"
|
|
15655
|
+
]
|
|
15656
|
+
},
|
|
15593
15657
|
adjustable_wrench: {
|
|
15594
15658
|
ite: "chave_inglesa",
|
|
15595
15659
|
idSource: "decision",
|
|
@@ -19176,6 +19240,7 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
19176
19240
|
"item.toothbrush": "Toothbrush",
|
|
19177
19241
|
"item.deodorant": "Deodorant",
|
|
19178
19242
|
"item.toilet_paper": "Toilet paper",
|
|
19243
|
+
"item.plunger": "Toilet plunger",
|
|
19179
19244
|
"item.towel": "Towel",
|
|
19180
19245
|
"item.detergent": "Detergent",
|
|
19181
19246
|
"item.bleach": "Bleach",
|
|
@@ -19686,6 +19751,7 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
19686
19751
|
"item.toothbrush": "Escova de dente",
|
|
19687
19752
|
"item.deodorant": "Desodorante",
|
|
19688
19753
|
"item.toilet_paper": "Papel higi\xEAnico",
|
|
19754
|
+
"item.plunger": "Desentupidor",
|
|
19689
19755
|
"item.towel": "Toalha",
|
|
19690
19756
|
"item.detergent": "Detergente",
|
|
19691
19757
|
"item.bleach": "\xC1gua sanit\xE1ria",
|