@adatechnology/game-items-goods 0.7.2 → 0.9.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 +150 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +104 -6
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.global.js
CHANGED
|
@@ -202,6 +202,9 @@ 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"];
|
|
206
|
+
var BODY_FOAM_SURFACES = ["hands", "arms", "torso", "hair", "mouth"];
|
|
207
|
+
var WASH_SURFACES = [...BODY_FOAM_SURFACES, "brush"];
|
|
205
208
|
var WARNED_KEY = /* @__PURE__ */ Symbol.for("@adatechnology/game-contracts.warned");
|
|
206
209
|
var warnedKeys = () => {
|
|
207
210
|
const holder = globalThis;
|
|
@@ -570,6 +573,7 @@ var GameItemsGoods = (() => {
|
|
|
570
573
|
if (item.shelfLife !== void 0 && !isPositive(item.shelfLife)) issue(`has a shelf life of ${item.shelfLife} days`);
|
|
571
574
|
if (item.portions !== void 0 && !(Number.isInteger(item.portions) && item.portions > 0)) issue(`has ${item.portions} portions`);
|
|
572
575
|
if (item.durability && !DURABILITY_KINDS.includes(item.durability.kind)) issue(`has unknown durability kind "${item.durability.kind}"`);
|
|
576
|
+
for (const tool of item.tools ?? []) if (!ITEM_TOOLS.includes(tool)) issue(`works as unknown tool "${tool}"`);
|
|
573
577
|
if (item.consumable) for (const problem of consumableProblems(item.consumable)) issue(problem);
|
|
574
578
|
const { protection } = item;
|
|
575
579
|
if (protection) {
|
|
@@ -11881,6 +11885,12 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
11881
11885
|
material: "glass",
|
|
11882
11886
|
thickness: 3e-3
|
|
11883
11887
|
}
|
|
11888
|
+
],
|
|
11889
|
+
container: {
|
|
11890
|
+
capacityLiters: 0.3
|
|
11891
|
+
},
|
|
11892
|
+
estimated: [
|
|
11893
|
+
"container"
|
|
11884
11894
|
]
|
|
11885
11895
|
},
|
|
11886
11896
|
{
|
|
@@ -11936,6 +11946,7 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
11936
11946
|
shape: "box",
|
|
11937
11947
|
color: 15790304,
|
|
11938
11948
|
rarity: "common",
|
|
11949
|
+
model: "soap",
|
|
11939
11950
|
parts: [
|
|
11940
11951
|
{
|
|
11941
11952
|
id: "body",
|
|
@@ -11971,6 +11982,7 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
11971
11982
|
shape: "bottle",
|
|
11972
11983
|
color: 4885200,
|
|
11973
11984
|
rarity: "common",
|
|
11985
|
+
model: "shampoo",
|
|
11974
11986
|
consumable: {
|
|
11975
11987
|
form: "liquid",
|
|
11976
11988
|
unit: "ml",
|
|
@@ -11978,7 +11990,17 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
11978
11990
|
dose: 8,
|
|
11979
11991
|
emptyKg: 0.044,
|
|
11980
11992
|
density: 1.02
|
|
11981
|
-
}
|
|
11993
|
+
},
|
|
11994
|
+
parts: [
|
|
11995
|
+
{
|
|
11996
|
+
id: "body",
|
|
11997
|
+
material: "plastic",
|
|
11998
|
+
thickness: 8e-4
|
|
11999
|
+
}
|
|
12000
|
+
],
|
|
12001
|
+
estimated: [
|
|
12002
|
+
"parts"
|
|
12003
|
+
]
|
|
11982
12004
|
},
|
|
11983
12005
|
{
|
|
11984
12006
|
id: "toothpaste",
|
|
@@ -11997,13 +12019,24 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
11997
12019
|
shape: "tube",
|
|
11998
12020
|
color: 15790320,
|
|
11999
12021
|
rarity: "common",
|
|
12022
|
+
model: "toothpaste",
|
|
12000
12023
|
consumable: {
|
|
12001
12024
|
form: "paste",
|
|
12002
12025
|
unit: "g",
|
|
12003
12026
|
amount: 90,
|
|
12004
12027
|
dose: 1,
|
|
12005
12028
|
emptyKg: 0.01
|
|
12006
|
-
}
|
|
12029
|
+
},
|
|
12030
|
+
parts: [
|
|
12031
|
+
{
|
|
12032
|
+
id: "body",
|
|
12033
|
+
material: "plastic",
|
|
12034
|
+
thickness: 8e-4
|
|
12035
|
+
}
|
|
12036
|
+
],
|
|
12037
|
+
estimated: [
|
|
12038
|
+
"parts"
|
|
12039
|
+
]
|
|
12007
12040
|
},
|
|
12008
12041
|
{
|
|
12009
12042
|
id: "toothbrush",
|
|
@@ -12021,7 +12054,18 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
12021
12054
|
stack: 3,
|
|
12022
12055
|
shape: "tool",
|
|
12023
12056
|
color: 3840720,
|
|
12024
|
-
rarity: "common"
|
|
12057
|
+
rarity: "common",
|
|
12058
|
+
model: "toothbrush",
|
|
12059
|
+
parts: [
|
|
12060
|
+
{
|
|
12061
|
+
id: "body",
|
|
12062
|
+
material: "plastic",
|
|
12063
|
+
thickness: 5e-3
|
|
12064
|
+
}
|
|
12065
|
+
],
|
|
12066
|
+
estimated: [
|
|
12067
|
+
"parts"
|
|
12068
|
+
]
|
|
12025
12069
|
},
|
|
12026
12070
|
{
|
|
12027
12071
|
id: "deodorant",
|
|
@@ -12132,8 +12176,17 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
12132
12176
|
}
|
|
12133
12177
|
],
|
|
12134
12178
|
estimated: [
|
|
12135
|
-
"parts"
|
|
12136
|
-
|
|
12179
|
+
"parts",
|
|
12180
|
+
"consumable"
|
|
12181
|
+
],
|
|
12182
|
+
consumable: {
|
|
12183
|
+
form: "liquid",
|
|
12184
|
+
unit: "ml",
|
|
12185
|
+
amount: 450,
|
|
12186
|
+
dose: 5,
|
|
12187
|
+
emptyKg: 0.03,
|
|
12188
|
+
density: 1.03
|
|
12189
|
+
}
|
|
12137
12190
|
},
|
|
12138
12191
|
{
|
|
12139
12192
|
id: "bleach",
|
|
@@ -13623,8 +13676,12 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
13623
13676
|
thickness: 2e-3
|
|
13624
13677
|
}
|
|
13625
13678
|
],
|
|
13679
|
+
container: {
|
|
13680
|
+
capacityLiters: 0.35
|
|
13681
|
+
},
|
|
13626
13682
|
estimated: [
|
|
13627
|
-
"parts"
|
|
13683
|
+
"parts",
|
|
13684
|
+
"container"
|
|
13628
13685
|
]
|
|
13629
13686
|
},
|
|
13630
13687
|
{
|
|
@@ -13771,6 +13828,41 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
13771
13828
|
},
|
|
13772
13829
|
weapon: "brass_knuckles",
|
|
13773
13830
|
model: "brass_knuckles"
|
|
13831
|
+
},
|
|
13832
|
+
{
|
|
13833
|
+
id: "plunger",
|
|
13834
|
+
category: "tools",
|
|
13835
|
+
kind: "tool",
|
|
13836
|
+
tags: [
|
|
13837
|
+
"cleaning"
|
|
13838
|
+
],
|
|
13839
|
+
tools: [
|
|
13840
|
+
"plunger"
|
|
13841
|
+
],
|
|
13842
|
+
size: [
|
|
13843
|
+
0.14,
|
|
13844
|
+
0.55,
|
|
13845
|
+
0.14
|
|
13846
|
+
],
|
|
13847
|
+
weight: 0.45,
|
|
13848
|
+
stack: 1,
|
|
13849
|
+
shape: "tool",
|
|
13850
|
+
color: 11545120,
|
|
13851
|
+
rarity: "common",
|
|
13852
|
+
finds: {
|
|
13853
|
+
places: [
|
|
13854
|
+
"house",
|
|
13855
|
+
"apartment"
|
|
13856
|
+
]
|
|
13857
|
+
},
|
|
13858
|
+
parts: [
|
|
13859
|
+
{
|
|
13860
|
+
id: "body",
|
|
13861
|
+
material: "rubber",
|
|
13862
|
+
thickness: 4e-3
|
|
13863
|
+
}
|
|
13864
|
+
],
|
|
13865
|
+
model: "plunger"
|
|
13774
13866
|
}
|
|
13775
13867
|
];
|
|
13776
13868
|
|
|
@@ -15590,6 +15682,14 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
15590
15682
|
"alicate"
|
|
15591
15683
|
]
|
|
15592
15684
|
},
|
|
15685
|
+
plunger: {
|
|
15686
|
+
created: true,
|
|
15687
|
+
idSource: "decision",
|
|
15688
|
+
sizeSource: "REF",
|
|
15689
|
+
vc3: [
|
|
15690
|
+
"desentupidor"
|
|
15691
|
+
]
|
|
15692
|
+
},
|
|
15593
15693
|
adjustable_wrench: {
|
|
15594
15694
|
ite: "chave_inglesa",
|
|
15595
15695
|
idSource: "decision",
|
|
@@ -19176,6 +19276,7 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
19176
19276
|
"item.toothbrush": "Toothbrush",
|
|
19177
19277
|
"item.deodorant": "Deodorant",
|
|
19178
19278
|
"item.toilet_paper": "Toilet paper",
|
|
19279
|
+
"item.plunger": "Toilet plunger",
|
|
19179
19280
|
"item.towel": "Towel",
|
|
19180
19281
|
"item.detergent": "Detergent",
|
|
19181
19282
|
"item.bleach": "Bleach",
|
|
@@ -19686,6 +19787,7 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
19686
19787
|
"item.toothbrush": "Escova de dente",
|
|
19687
19788
|
"item.deodorant": "Desodorante",
|
|
19688
19789
|
"item.toilet_paper": "Papel higi\xEAnico",
|
|
19790
|
+
"item.plunger": "Desentupidor",
|
|
19689
19791
|
"item.towel": "Toalha",
|
|
19690
19792
|
"item.detergent": "Detergente",
|
|
19691
19793
|
"item.bleach": "\xC1gua sanit\xE1ria",
|
|
@@ -20431,6 +20533,48 @@ ${problems.map((problem) => ` - ${problem}`).join("\n")}`);
|
|
|
20431
20533
|
tags: [
|
|
20432
20534
|
"brake_fluid"
|
|
20433
20535
|
]
|
|
20536
|
+
},
|
|
20537
|
+
{
|
|
20538
|
+
id: "shampoo",
|
|
20539
|
+
color: 6069216,
|
|
20540
|
+
opacity: 0.75,
|
|
20541
|
+
stainColor: 9418462,
|
|
20542
|
+
viscosity: 4e3,
|
|
20543
|
+
density: 1020,
|
|
20544
|
+
dryTime: 3600,
|
|
20545
|
+
gloss: 0.9,
|
|
20546
|
+
leavesMark: true,
|
|
20547
|
+
drink: {
|
|
20548
|
+
thirst: 0,
|
|
20549
|
+
effects: [
|
|
20550
|
+
"poison"
|
|
20551
|
+
]
|
|
20552
|
+
},
|
|
20553
|
+
tags: [
|
|
20554
|
+
"soap",
|
|
20555
|
+
"sticky"
|
|
20556
|
+
]
|
|
20557
|
+
},
|
|
20558
|
+
{
|
|
20559
|
+
id: "toothpaste",
|
|
20560
|
+
color: 16054008,
|
|
20561
|
+
opacity: 1,
|
|
20562
|
+
stainColor: 15133935,
|
|
20563
|
+
viscosity: 1e5,
|
|
20564
|
+
density: 1300,
|
|
20565
|
+
dryTime: 7200,
|
|
20566
|
+
gloss: 0.6,
|
|
20567
|
+
leavesMark: true,
|
|
20568
|
+
drink: {
|
|
20569
|
+
thirst: 0,
|
|
20570
|
+
effects: [
|
|
20571
|
+
"poison"
|
|
20572
|
+
]
|
|
20573
|
+
},
|
|
20574
|
+
tags: [
|
|
20575
|
+
"soap",
|
|
20576
|
+
"paste"
|
|
20577
|
+
]
|
|
20434
20578
|
}
|
|
20435
20579
|
];
|
|
20436
20580
|
var LIQUIDS = liquids_default;
|