@adatechnology/game-items-goods 0.7.1 → 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.js CHANGED
@@ -11040,7 +11040,20 @@ var items_default = [
11040
11040
  stack: 6,
11041
11041
  shape: "cup",
11042
11042
  color: 14215408,
11043
- rarity: "common"
11043
+ rarity: "common",
11044
+ parts: [
11045
+ {
11046
+ id: "body",
11047
+ material: "glass",
11048
+ thickness: 3e-3
11049
+ }
11050
+ ],
11051
+ container: {
11052
+ capacityLiters: 0.3
11053
+ },
11054
+ estimated: [
11055
+ "container"
11056
+ ]
11044
11057
  },
11045
11058
  {
11046
11059
  id: "cutlery",
@@ -11291,8 +11304,17 @@ var items_default = [
11291
11304
  }
11292
11305
  ],
11293
11306
  estimated: [
11294
- "parts"
11295
- ]
11307
+ "parts",
11308
+ "consumable"
11309
+ ],
11310
+ consumable: {
11311
+ form: "liquid",
11312
+ unit: "ml",
11313
+ amount: 450,
11314
+ dose: 5,
11315
+ emptyKg: 0.03,
11316
+ density: 1.03
11317
+ }
11296
11318
  },
11297
11319
  {
11298
11320
  id: "bleach",
@@ -12782,8 +12804,12 @@ var items_default = [
12782
12804
  thickness: 2e-3
12783
12805
  }
12784
12806
  ],
12807
+ container: {
12808
+ capacityLiters: 0.35
12809
+ },
12785
12810
  estimated: [
12786
- "parts"
12811
+ "parts",
12812
+ "container"
12787
12813
  ]
12788
12814
  },
12789
12815
  {
@@ -12930,6 +12956,41 @@ var items_default = [
12930
12956
  },
12931
12957
  weapon: "brass_knuckles",
12932
12958
  model: "brass_knuckles"
12959
+ },
12960
+ {
12961
+ id: "plunger",
12962
+ category: "tools",
12963
+ kind: "tool",
12964
+ tags: [
12965
+ "cleaning"
12966
+ ],
12967
+ tools: [
12968
+ "plunger"
12969
+ ],
12970
+ size: [
12971
+ 0.14,
12972
+ 0.55,
12973
+ 0.14
12974
+ ],
12975
+ weight: 0.45,
12976
+ stack: 1,
12977
+ shape: "tool",
12978
+ color: 11545120,
12979
+ rarity: "common",
12980
+ finds: {
12981
+ places: [
12982
+ "house",
12983
+ "apartment"
12984
+ ]
12985
+ },
12986
+ parts: [
12987
+ {
12988
+ id: "body",
12989
+ material: "rubber",
12990
+ thickness: 4e-3
12991
+ }
12992
+ ],
12993
+ model: "plunger"
12933
12994
  }
12934
12995
  ];
12935
12996
 
@@ -14749,6 +14810,14 @@ var provenance_default = {
14749
14810
  "alicate"
14750
14811
  ]
14751
14812
  },
14813
+ plunger: {
14814
+ created: true,
14815
+ idSource: "decision",
14816
+ sizeSource: "REF",
14817
+ vc3: [
14818
+ "desentupidor"
14819
+ ]
14820
+ },
14752
14821
  adjustable_wrench: {
14753
14822
  ite: "chave_inglesa",
14754
14823
  idSource: "decision",
@@ -18039,14 +18108,18 @@ var checkGoodsItems = (options = {}) => {
18039
18108
 
18040
18109
  // src/pack.ts
18041
18110
  var KINDS = createGoodsKinds();
18042
- var withSeal = (item) => {
18111
+ var withKind = (item) => {
18043
18112
  const kind = item.kind;
18044
- const seal = kind && KINDS.has(kind) ? KINDS.defaults(kind).seal : void 0;
18045
- return seal ? { ...item, seal: { ...seal, ...item.seal } } : item;
18113
+ if (!kind || !KINDS.has(kind)) return item;
18114
+ const defaults = KINDS.defaults(kind);
18115
+ const seal = defaults.seal;
18116
+ const parts2 = defaults.parts;
18117
+ const own = item.parts;
18118
+ return { ...item, ...seal ? { seal: { ...seal, ...item.seal } } : {}, ...!own && parts2 ? { parts: parts2 } : {} };
18046
18119
  };
18047
18120
  var goodsPack = {
18048
18121
  id: "goods",
18049
- items: GOODS_ITEMS.map(withSeal),
18122
+ items: GOODS_ITEMS.map(withKind),
18050
18123
  categories: GOODS_CATEGORIES,
18051
18124
  places: GOODS_PLACES,
18052
18125
  containers: GOODS_CONTAINERS,
@@ -18331,6 +18404,7 @@ var en_default = {
18331
18404
  "item.toothbrush": "Toothbrush",
18332
18405
  "item.deodorant": "Deodorant",
18333
18406
  "item.toilet_paper": "Toilet paper",
18407
+ "item.plunger": "Toilet plunger",
18334
18408
  "item.towel": "Towel",
18335
18409
  "item.detergent": "Detergent",
18336
18410
  "item.bleach": "Bleach",
@@ -18841,6 +18915,7 @@ var pt_BR_default = {
18841
18915
  "item.toothbrush": "Escova de dente",
18842
18916
  "item.deodorant": "Desodorante",
18843
18917
  "item.toilet_paper": "Papel higi\xEAnico",
18918
+ "item.plunger": "Desentupidor",
18844
18919
  "item.towel": "Toalha",
18845
18920
  "item.detergent": "Detergente",
18846
18921
  "item.bleach": "\xC1gua sanit\xE1ria",