@adatechnology/game-interactables-household 0.3.1 → 0.4.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.
@@ -136,6 +136,94 @@ var GameInteractablesHousehold = (() => {
136
136
  }
137
137
  return { ok: problems.length === 0, problems, warnings };
138
138
  };
139
+ var UNSAFE_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
140
+ var isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value) && Object.getPrototypeOf(value) === Object.prototype;
141
+ var deepMerge = (base, patch) => {
142
+ if (!patch) return base;
143
+ const result = { ...base };
144
+ for (const [key, value] of Object.entries(patch)) {
145
+ if (value === void 0 || UNSAFE_KEYS.has(key)) continue;
146
+ const current = result[key];
147
+ result[key] = isPlainObject(current) && isPlainObject(value) ? deepMerge(current, value) : value;
148
+ }
149
+ return result;
150
+ };
151
+ var mergeById = (shipped, extra) => {
152
+ const entries = /* @__PURE__ */ new Map();
153
+ for (const entry of [...shipped, ...extra ?? []]) entries.set(entry.id, entry);
154
+ return entries;
155
+ };
156
+ var applyPatches = (entries, patches) => {
157
+ for (const [id, patch] of Object.entries(patches ?? {})) {
158
+ const entry = entries.get(id);
159
+ if (entry) entries.set(id, deepMerge(entry, patch));
160
+ }
161
+ };
162
+ var removeIds = (entries, ids) => {
163
+ for (const id of ids ?? []) entries.delete(id);
164
+ };
165
+ var defineCategories = (defs, options = {}) => {
166
+ const problems = [];
167
+ const duplicates = (list) => {
168
+ const ids = /* @__PURE__ */ new Set();
169
+ for (const def of list) {
170
+ if (ids.has(def.id)) problems.push(`duplicate category "${def.id}"`);
171
+ ids.add(def.id);
172
+ }
173
+ };
174
+ duplicates(defs);
175
+ duplicates(options.extra ?? []);
176
+ const entries = mergeById(defs, options.extra);
177
+ applyPatches(entries, options.patches);
178
+ removeIds(entries, options.remove);
179
+ const chain = (id) => {
180
+ const path = [];
181
+ let current = id;
182
+ while (current !== void 0) {
183
+ const def = entries.get(current);
184
+ if (!def) throw new Error(path.length === 0 ? `unknown category "${current}"` : `category "${path[0]}" has unknown parent "${current}"`);
185
+ if (path.includes(current)) throw new Error(`category cycle: ${[...path, current].reverse().join(" -> ")}`);
186
+ path.push(current);
187
+ current = def.extends;
188
+ }
189
+ return path.reverse();
190
+ };
191
+ const registry = {
192
+ get: (id) => entries.get(id),
193
+ has: (id) => entries.has(id),
194
+ ids: () => [...entries.keys()],
195
+ chain,
196
+ defaults: (id) => chain(id).reduce((acc, ancestor) => deepMerge(acc, entries.get(ancestor)?.defaults), {}),
197
+ requires: (id) => {
198
+ const out = [];
199
+ for (const ancestor of chain(id)) for (const contract of entries.get(ancestor)?.requires ?? []) if (!out.includes(contract)) out.push(contract);
200
+ return out;
201
+ },
202
+ isA: (id, ancestorId) => {
203
+ try {
204
+ return chain(id).includes(ancestorId);
205
+ } catch {
206
+ return false;
207
+ }
208
+ },
209
+ check: () => {
210
+ const found = [...problems];
211
+ for (const [id, def] of entries) {
212
+ if (def.extends !== void 0 && !entries.has(def.extends)) found.push(`category "${id}" extends unknown "${def.extends}"`);
213
+ else {
214
+ try {
215
+ chain(id);
216
+ } catch (error) {
217
+ const message = error.message;
218
+ if (message.startsWith("category cycle") && !found.includes(message)) found.push(message);
219
+ }
220
+ }
221
+ }
222
+ return found;
223
+ }
224
+ };
225
+ return registry;
226
+ };
139
227
 
140
228
  // ../game-items-goods/dist/index.js
141
229
  var FLOORPLAN_POOL_KEYS = {
@@ -2114,7 +2202,11 @@ var GameInteractablesHousehold = (() => {
2114
2202
  "road"
2115
2203
  ]
2116
2204
  },
2117
- model: "canned_sardines"
2205
+ model: "canned_sardines",
2206
+ seal: {
2207
+ byHand: true,
2208
+ spoilsWhenBreached: true
2209
+ }
2118
2210
  },
2119
2211
  {
2120
2212
  id: "canned_corn_and_peas",
@@ -2296,7 +2388,13 @@ var GameInteractablesHousehold = (() => {
2296
2388
  "school"
2297
2389
  ]
2298
2390
  },
2299
- model: "rice"
2391
+ model: "rice",
2392
+ powder: {
2393
+ color: 15722710
2394
+ },
2395
+ estimated: [
2396
+ "powder"
2397
+ ]
2300
2398
  },
2301
2399
  {
2302
2400
  id: "beans",
@@ -2634,7 +2732,10 @@ var GameInteractablesHousehold = (() => {
2634
2732
  nonPerishable: true,
2635
2733
  estimated: [
2636
2734
  "nonPerishable"
2637
- ]
2735
+ ],
2736
+ seal: {
2737
+ byHand: true
2738
+ }
2638
2739
  },
2639
2740
  {
2640
2741
  id: "bread",
@@ -3176,7 +3277,10 @@ var GameInteractablesHousehold = (() => {
3176
3277
  "lodge"
3177
3278
  ]
3178
3279
  },
3179
- model: "home_preserves"
3280
+ model: "home_preserves",
3281
+ seal: {
3282
+ byHand: true
3283
+ }
3180
3284
  },
3181
3285
  {
3182
3286
  id: "dog_food",
@@ -3249,8 +3353,12 @@ var GameInteractablesHousehold = (() => {
3249
3353
  },
3250
3354
  model: "sugar",
3251
3355
  nonPerishable: true,
3356
+ powder: {
3357
+ color: 16184558
3358
+ },
3252
3359
  estimated: [
3253
- "nonPerishable"
3360
+ "nonPerishable",
3361
+ "powder"
3254
3362
  ]
3255
3363
  },
3256
3364
  {
@@ -3288,8 +3396,12 @@ var GameInteractablesHousehold = (() => {
3288
3396
  },
3289
3397
  model: "salt",
3290
3398
  nonPerishable: true,
3399
+ powder: {
3400
+ color: 15921902
3401
+ },
3291
3402
  estimated: [
3292
- "nonPerishable"
3403
+ "nonPerishable",
3404
+ "powder"
3293
3405
  ]
3294
3406
  },
3295
3407
  {
@@ -3326,7 +3438,10 @@ var GameInteractablesHousehold = (() => {
3326
3438
  "supermarket"
3327
3439
  ]
3328
3440
  },
3329
- model: "cooking_oil"
3441
+ model: "cooking_oil",
3442
+ seal: {
3443
+ byHand: true
3444
+ }
3330
3445
  },
3331
3446
  {
3332
3447
  id: "coffee",
@@ -3364,7 +3479,13 @@ var GameInteractablesHousehold = (() => {
3364
3479
  "police_station"
3365
3480
  ]
3366
3481
  },
3367
- model: "coffee"
3482
+ model: "coffee",
3483
+ powder: {
3484
+ color: 4861984
3485
+ },
3486
+ estimated: [
3487
+ "powder"
3488
+ ]
3368
3489
  },
3369
3490
  {
3370
3491
  id: "water_bottle",
@@ -3408,7 +3529,10 @@ var GameInteractablesHousehold = (() => {
3408
3529
  estimated: [
3409
3530
  "nonPerishable",
3410
3531
  "fluid"
3411
- ]
3532
+ ],
3533
+ seal: {
3534
+ byHand: true
3535
+ }
3412
3536
  },
3413
3537
  {
3414
3538
  id: "water_jug_5l",
@@ -3448,7 +3572,10 @@ var GameInteractablesHousehold = (() => {
3448
3572
  estimated: [
3449
3573
  "nonPerishable",
3450
3574
  "fluid"
3451
- ]
3575
+ ],
3576
+ seal: {
3577
+ byHand: true
3578
+ }
3452
3579
  },
3453
3580
  {
3454
3581
  id: "dirty_water",
@@ -3485,7 +3612,10 @@ var GameInteractablesHousehold = (() => {
3485
3612
  estimated: [
3486
3613
  "nonPerishable",
3487
3614
  "fluid"
3488
- ]
3615
+ ],
3616
+ seal: {
3617
+ byHand: true
3618
+ }
3489
3619
  },
3490
3620
  {
3491
3621
  id: "soda_can",
@@ -3693,7 +3823,10 @@ var GameInteractablesHousehold = (() => {
3693
3823
  },
3694
3824
  estimated: [
3695
3825
  "fluid"
3696
- ]
3826
+ ],
3827
+ seal: {
3828
+ byHand: true
3829
+ }
3697
3830
  },
3698
3831
  {
3699
3832
  id: "energy_drink",
@@ -3734,7 +3867,11 @@ var GameInteractablesHousehold = (() => {
3734
3867
  },
3735
3868
  estimated: [
3736
3869
  "fluid"
3737
- ]
3870
+ ],
3871
+ seal: {
3872
+ byHand: true,
3873
+ spoilsWhenBreached: true
3874
+ }
3738
3875
  },
3739
3876
  {
3740
3877
  id: "coconut_water",
@@ -3774,7 +3911,10 @@ var GameInteractablesHousehold = (() => {
3774
3911
  },
3775
3912
  estimated: [
3776
3913
  "fluid"
3777
- ]
3914
+ ],
3915
+ seal: {
3916
+ byHand: true
3917
+ }
3778
3918
  },
3779
3919
  {
3780
3920
  id: "beer_can",
@@ -3874,7 +4014,10 @@ var GameInteractablesHousehold = (() => {
3874
4014
  "parts",
3875
4015
  "impact",
3876
4016
  "leftover"
3877
- ]
4017
+ ],
4018
+ seal: {
4019
+ byHand: true
4020
+ }
3878
4021
  },
3879
4022
  {
3880
4023
  id: "communion_wine",
@@ -3930,7 +4073,10 @@ var GameInteractablesHousehold = (() => {
3930
4073
  "parts",
3931
4074
  "impact",
3932
4075
  "leftover"
3933
- ]
4076
+ ],
4077
+ seal: {
4078
+ byHand: true
4079
+ }
3934
4080
  },
3935
4081
  {
3936
4082
  id: "bandage",
@@ -10476,9 +10622,13 @@ var GameInteractablesHousehold = (() => {
10476
10622
  hydration: -8
10477
10623
  },
10478
10624
  shelfLife: 365,
10625
+ powder: {
10626
+ color: 15986662
10627
+ },
10479
10628
  estimated: [
10480
10629
  "nutrition",
10481
- "shelfLife"
10630
+ "shelfLife",
10631
+ "powder"
10482
10632
  ]
10483
10633
  },
10484
10634
  {
@@ -10503,9 +10653,13 @@ var GameInteractablesHousehold = (() => {
10503
10653
  hydration: -5
10504
10654
  },
10505
10655
  shelfLife: 270,
10656
+ powder: {
10657
+ color: 14201962
10658
+ },
10506
10659
  estimated: [
10507
10660
  "nutrition",
10508
- "shelfLife"
10661
+ "shelfLife",
10662
+ "powder"
10509
10663
  ]
10510
10664
  },
10511
10665
  {
@@ -12622,109 +12776,991 @@ var GameInteractablesHousehold = (() => {
12622
12776
  ]
12623
12777
  }
12624
12778
  ];
12625
- var places_default = [
12779
+ var kinds_default = [
12626
12780
  {
12627
- id: "house",
12628
- name: "House"
12781
+ id: "item",
12782
+ abstract: true,
12783
+ requires: [
12784
+ "physical",
12785
+ "destructible",
12786
+ "impact"
12787
+ ],
12788
+ defaults: {
12789
+ impact: {
12790
+ response: "dent",
12791
+ pushImpulse: true
12792
+ }
12793
+ }
12629
12794
  },
12630
12795
  {
12631
- id: "apartment",
12632
- name: "Apartment building"
12796
+ id: "consumable",
12797
+ extends: "item",
12798
+ abstract: true,
12799
+ defaults: {
12800
+ leftover: "none"
12801
+ }
12633
12802
  },
12634
12803
  {
12635
- id: "supermarket",
12636
- name: "Supermarket"
12804
+ id: "food_ready",
12805
+ extends: "consumable",
12806
+ requires: [
12807
+ "edible",
12808
+ "use_animation",
12809
+ "leftover"
12810
+ ],
12811
+ defaults: {
12812
+ lootCategory: [
12813
+ "food"
12814
+ ],
12815
+ parts: [
12816
+ {
12817
+ id: "body",
12818
+ material: "flesh_fruit"
12819
+ }
12820
+ ],
12821
+ impact: {
12822
+ response: "squash",
12823
+ pushImpulse: true
12824
+ },
12825
+ use: {
12826
+ clip: "eat_food",
12827
+ sounds: [
12828
+ "chew"
12829
+ ]
12830
+ },
12831
+ rawEffect: {
12832
+ sickChance: 0
12833
+ }
12834
+ }
12637
12835
  },
12638
12836
  {
12639
- id: "pharmacy",
12640
- name: "Pharmacy"
12837
+ id: "canned_food",
12838
+ extends: "food_ready",
12839
+ defaults: {
12840
+ parts: [
12841
+ {
12842
+ id: "body",
12843
+ material: "steel",
12844
+ thickness: 2e-4
12845
+ }
12846
+ ],
12847
+ impact: {
12848
+ response: "dent",
12849
+ pushImpulse: true,
12850
+ shed: false
12851
+ },
12852
+ use: {
12853
+ clip: "open_can_eat",
12854
+ sounds: [
12855
+ "can_open",
12856
+ "chew"
12857
+ ]
12858
+ },
12859
+ seal: {
12860
+ openWith: [
12861
+ "can_opener",
12862
+ "pocket_knife",
12863
+ "knife",
12864
+ "tactical_knife"
12865
+ ],
12866
+ spoilsWhenBreached: true
12867
+ },
12868
+ leftover: {
12869
+ item: "empty_can",
12870
+ despawnSeconds: 600
12871
+ }
12872
+ }
12641
12873
  },
12642
12874
  {
12643
- id: "gun_shop",
12644
- name: "Gun and hunting shop"
12875
+ id: "food_improves_cooked",
12876
+ extends: "consumable",
12877
+ requires: [
12878
+ "edible",
12879
+ "use_animation",
12880
+ "leftover"
12881
+ ],
12882
+ defaults: {
12883
+ lootCategory: [
12884
+ "food"
12885
+ ],
12886
+ parts: [
12887
+ {
12888
+ id: "body",
12889
+ material: "flesh_fruit"
12890
+ }
12891
+ ],
12892
+ impact: {
12893
+ response: "squash",
12894
+ pushImpulse: true
12895
+ },
12896
+ use: {
12897
+ clip: "eat_food",
12898
+ sounds: [
12899
+ "chew"
12900
+ ]
12901
+ },
12902
+ rawEffect: {
12903
+ sickChance: 0.05
12904
+ }
12905
+ }
12645
12906
  },
12646
12907
  {
12647
- id: "mall",
12648
- name: "Mall"
12908
+ id: "food_needs_prep",
12909
+ extends: "consumable",
12910
+ requires: [
12911
+ "edible",
12912
+ "use_animation",
12913
+ "leftover",
12914
+ "preparation"
12915
+ ],
12916
+ defaults: {
12917
+ lootCategory: [
12918
+ "food"
12919
+ ],
12920
+ parts: [
12921
+ {
12922
+ id: "body",
12923
+ material: "flesh_fruit"
12924
+ }
12925
+ ],
12926
+ impact: {
12927
+ response: "squash",
12928
+ pushImpulse: true
12929
+ },
12930
+ use: {
12931
+ clip: "eat_food",
12932
+ sounds: [
12933
+ "chew"
12934
+ ]
12935
+ },
12936
+ rawEffect: {
12937
+ sickChance: 0.5
12938
+ }
12939
+ }
12649
12940
  },
12650
12941
  {
12651
- id: "police_station",
12652
- name: "Police station"
12942
+ id: "ingredient",
12943
+ extends: "consumable",
12944
+ requires: [
12945
+ "edible",
12946
+ "recipe_input"
12947
+ ],
12948
+ defaults: {
12949
+ lootCategory: [
12950
+ "food"
12951
+ ],
12952
+ parts: [
12953
+ {
12954
+ id: "body",
12955
+ material: "flesh_fruit"
12956
+ }
12957
+ ],
12958
+ impact: {
12959
+ response: "squash",
12960
+ pushImpulse: true
12961
+ },
12962
+ rawEffect: {
12963
+ sickChance: 0
12964
+ }
12965
+ }
12653
12966
  },
12654
12967
  {
12655
- id: "hospital",
12656
- name: "Hospital"
12968
+ id: "drink_ready",
12969
+ extends: "consumable",
12970
+ requires: [
12971
+ "edible",
12972
+ "use_animation",
12973
+ "leftover",
12974
+ "liquid_container"
12975
+ ],
12976
+ defaults: {
12977
+ lootCategory: [
12978
+ "drink"
12979
+ ],
12980
+ parts: [
12981
+ {
12982
+ id: "body",
12983
+ material: "plastic",
12984
+ thickness: 4e-4
12985
+ }
12986
+ ],
12987
+ impact: {
12988
+ response: "dent",
12989
+ pushImpulse: true
12990
+ },
12991
+ use: {
12992
+ clip: "drink",
12993
+ sounds: [
12994
+ "gulp"
12995
+ ]
12996
+ },
12997
+ leftover: {
12998
+ item: "pet_bottle",
12999
+ despawnSeconds: 600
13000
+ },
13001
+ rawEffect: {
13002
+ sickChance: 0
13003
+ }
13004
+ }
12657
13005
  },
12658
13006
  {
12659
- id: "school",
12660
- name: "School"
13007
+ id: "canned_drink",
13008
+ extends: "drink_ready",
13009
+ defaults: {
13010
+ parts: [
13011
+ {
13012
+ id: "body",
13013
+ material: "aluminium",
13014
+ thickness: 1e-4
13015
+ }
13016
+ ],
13017
+ impact: {
13018
+ response: "dent",
13019
+ pushImpulse: true,
13020
+ shed: false
13021
+ },
13022
+ use: {
13023
+ clip: "open_can_drink",
13024
+ sounds: [
13025
+ "can_open",
13026
+ "gulp"
13027
+ ]
13028
+ },
13029
+ seal: {
13030
+ byHand: true,
13031
+ spoilsWhenBreached: true
13032
+ },
13033
+ leftover: {
13034
+ item: "empty_can",
13035
+ despawnSeconds: 600
13036
+ }
13037
+ }
12661
13038
  },
12662
13039
  {
12663
- id: "gas_station",
12664
- name: "Gas station"
13040
+ id: "drink_untreated",
13041
+ extends: "consumable",
13042
+ requires: [
13043
+ "edible",
13044
+ "use_animation",
13045
+ "leftover",
13046
+ "liquid_container",
13047
+ "preparation"
13048
+ ],
13049
+ defaults: {
13050
+ lootCategory: [
13051
+ "drink"
13052
+ ],
13053
+ parts: [
13054
+ {
13055
+ id: "body",
13056
+ material: "plastic",
13057
+ thickness: 4e-4
13058
+ }
13059
+ ],
13060
+ impact: {
13061
+ response: "dent",
13062
+ pushImpulse: true
13063
+ },
13064
+ use: {
13065
+ clip: "drink",
13066
+ sounds: [
13067
+ "gulp"
13068
+ ]
13069
+ },
13070
+ leftover: {
13071
+ item: "pet_bottle",
13072
+ despawnSeconds: 600
13073
+ },
13074
+ rawEffect: {
13075
+ sickChance: 0.4
13076
+ }
13077
+ }
12665
13078
  },
12666
13079
  {
12667
- id: "church",
12668
- name: "Church"
13080
+ id: "medicine",
13081
+ extends: "consumable",
13082
+ requires: [
13083
+ "use_animation",
13084
+ "leftover"
13085
+ ],
13086
+ defaults: {
13087
+ lootCategory: [
13088
+ "medical"
13089
+ ],
13090
+ parts: [
13091
+ {
13092
+ id: "body",
13093
+ material: "paper",
13094
+ thickness: 5e-4
13095
+ }
13096
+ ],
13097
+ impact: {
13098
+ response: "tear",
13099
+ pushImpulse: true
13100
+ },
13101
+ use: {
13102
+ clip: "take_medicine",
13103
+ sounds: [
13104
+ "pill_shake"
13105
+ ]
13106
+ }
13107
+ }
12669
13108
  },
12670
13109
  {
12671
- id: "warehouse",
12672
- name: "Warehouse and metalworks"
13110
+ id: "first_aid",
13111
+ extends: "medicine",
13112
+ defaults: {
13113
+ parts: [
13114
+ {
13115
+ id: "body",
13116
+ material: "fabric"
13117
+ }
13118
+ ],
13119
+ use: {
13120
+ clip: "apply_dressing",
13121
+ sounds: [
13122
+ "cloth_rip"
13123
+ ]
13124
+ }
13125
+ }
12673
13126
  },
12674
13127
  {
12675
- id: "farm",
12676
- name: "Farm"
13128
+ id: "container",
13129
+ extends: "item",
13130
+ abstract: true
12677
13131
  },
12678
13132
  {
12679
- id: "military_base",
12680
- name: "Military base and roadblock"
13133
+ id: "packaging",
13134
+ extends: "container",
13135
+ abstract: true
12681
13136
  },
12682
13137
  {
12683
- id: "workshop",
12684
- name: "Car workshop"
13138
+ id: "metal_can",
13139
+ extends: "packaging",
13140
+ defaults: {
13141
+ lootCategory: [
13142
+ "materials",
13143
+ "tools"
13144
+ ],
13145
+ parts: [
13146
+ {
13147
+ id: "body",
13148
+ material: "steel",
13149
+ thickness: 2e-4
13150
+ }
13151
+ ],
13152
+ impact: {
13153
+ response: "dent",
13154
+ pushImpulse: true,
13155
+ shed: false
13156
+ }
13157
+ }
12685
13158
  },
12686
13159
  {
12687
- id: "car",
12688
- name: "Abandoned car"
13160
+ id: "glass_bottle",
13161
+ extends: "packaging",
13162
+ defaults: {
13163
+ lootCategory: [
13164
+ "materials"
13165
+ ],
13166
+ parts: [
13167
+ {
13168
+ id: "body",
13169
+ material: "glass",
13170
+ thickness: 3e-3
13171
+ }
13172
+ ],
13173
+ impact: {
13174
+ response: "shatter",
13175
+ pushImpulse: true,
13176
+ shed: true
13177
+ }
13178
+ }
12689
13179
  },
12690
13180
  {
12691
- id: "road",
12692
- name: "Road and camp"
13181
+ id: "plastic_bottle",
13182
+ extends: "packaging",
13183
+ defaults: {
13184
+ lootCategory: [
13185
+ "materials"
13186
+ ],
13187
+ parts: [
13188
+ {
13189
+ id: "body",
13190
+ material: "plastic",
13191
+ thickness: 4e-4
13192
+ }
13193
+ ],
13194
+ impact: {
13195
+ response: "dent",
13196
+ pushImpulse: true,
13197
+ shed: false
13198
+ }
13199
+ }
12693
13200
  },
12694
13201
  {
12695
- id: "train",
12696
- name: "Derailed train"
13202
+ id: "jar",
13203
+ extends: "packaging",
13204
+ defaults: {
13205
+ lootCategory: [
13206
+ "materials"
13207
+ ],
13208
+ parts: [
13209
+ {
13210
+ id: "body",
13211
+ material: "glass",
13212
+ thickness: 4e-3
13213
+ }
13214
+ ],
13215
+ impact: {
13216
+ response: "shatter",
13217
+ pushImpulse: true,
13218
+ shed: true
13219
+ }
13220
+ }
12697
13221
  },
12698
13222
  {
12699
- id: "prison",
12700
- name: "Prison"
13223
+ id: "cookware",
13224
+ extends: "container",
13225
+ requires: [
13226
+ "heat_resistant"
13227
+ ],
13228
+ defaults: {
13229
+ lootCategory: [
13230
+ "tools"
13231
+ ],
13232
+ parts: [
13233
+ {
13234
+ id: "body",
13235
+ material: "steel",
13236
+ thickness: 2e-3
13237
+ }
13238
+ ],
13239
+ impact: {
13240
+ response: "dent",
13241
+ pushImpulse: true
13242
+ }
13243
+ }
12701
13244
  },
12702
13245
  {
12703
- id: "mine",
12704
- name: "Mine and quarry"
13246
+ id: "tableware",
13247
+ extends: "container",
13248
+ defaults: {
13249
+ lootCategory: [
13250
+ "tools"
13251
+ ],
13252
+ parts: [
13253
+ {
13254
+ id: "body",
13255
+ material: "ceramic",
13256
+ thickness: 4e-3
13257
+ }
13258
+ ],
13259
+ impact: {
13260
+ response: "shatter",
13261
+ pushImpulse: true,
13262
+ shed: true
13263
+ }
13264
+ }
12705
13265
  },
12706
13266
  {
12707
- id: "docks",
12708
- name: "Docks and fish market"
13267
+ id: "tank",
13268
+ extends: "container",
13269
+ requires: [
13270
+ "liquid_container"
13271
+ ],
13272
+ defaults: {
13273
+ lootCategory: [
13274
+ "tools",
13275
+ "outdoors"
13276
+ ],
13277
+ parts: [
13278
+ {
13279
+ id: "body",
13280
+ material: "plastic",
13281
+ thickness: 3e-3
13282
+ }
13283
+ ],
13284
+ impact: {
13285
+ response: "dent",
13286
+ pushImpulse: true
13287
+ }
13288
+ }
12709
13289
  },
12710
13290
  {
12711
- id: "lodge",
12712
- name: "Inn and chalet"
13291
+ id: "weapon",
13292
+ extends: "item",
13293
+ abstract: true,
13294
+ defaults: {
13295
+ lootCategory: [
13296
+ "melee"
13297
+ ]
13298
+ }
12713
13299
  },
12714
13300
  {
12715
- id: "dam",
12716
- name: "Hydroelectric dam"
13301
+ id: "melee",
13302
+ extends: "weapon",
13303
+ requires: [
13304
+ "weapon"
13305
+ ],
13306
+ defaults: {
13307
+ parts: [
13308
+ {
13309
+ id: "body",
13310
+ material: "steel",
13311
+ thickness: 4e-3
13312
+ }
13313
+ ],
13314
+ impact: {
13315
+ response: "dent",
13316
+ pushImpulse: true
13317
+ }
13318
+ }
12717
13319
  },
12718
13320
  {
12719
- id: "zombie_corpse",
12720
- name: "Zombie corpse"
12721
- }
12722
- ];
12723
- var provenance_default = {
12724
- canned_beans: {
12725
- ite: "feijao_lata",
12726
- idSource: "decision",
12727
- sizeSource: "model",
13321
+ id: "ranged",
13322
+ extends: "weapon",
13323
+ requires: [
13324
+ "weapon"
13325
+ ],
13326
+ defaults: {
13327
+ parts: [
13328
+ {
13329
+ id: "body",
13330
+ material: "wood_hard",
13331
+ thickness: 0.02
13332
+ }
13333
+ ],
13334
+ impact: {
13335
+ response: "break",
13336
+ pushImpulse: true
13337
+ }
13338
+ }
13339
+ },
13340
+ {
13341
+ id: "firearm",
13342
+ extends: "weapon",
13343
+ requires: [
13344
+ "weapon"
13345
+ ],
13346
+ defaults: {
13347
+ parts: [
13348
+ {
13349
+ id: "body",
13350
+ material: "steel",
13351
+ thickness: 4e-3
13352
+ }
13353
+ ],
13354
+ impact: {
13355
+ response: "dent",
13356
+ pushImpulse: true
13357
+ }
13358
+ }
13359
+ },
13360
+ {
13361
+ id: "ammo",
13362
+ extends: "weapon",
13363
+ requires: [
13364
+ "weapon"
13365
+ ],
13366
+ defaults: {
13367
+ parts: [
13368
+ {
13369
+ id: "body",
13370
+ material: "steel",
13371
+ thickness: 2e-3
13372
+ }
13373
+ ],
13374
+ impact: {
13375
+ response: "dent",
13376
+ pushImpulse: true
13377
+ }
13378
+ }
13379
+ },
13380
+ {
13381
+ id: "throwable",
13382
+ extends: "weapon",
13383
+ requires: [
13384
+ "weapon"
13385
+ ],
13386
+ defaults: {
13387
+ parts: [
13388
+ {
13389
+ id: "body",
13390
+ material: "steel",
13391
+ thickness: 3e-3
13392
+ }
13393
+ ],
13394
+ impact: {
13395
+ response: "dent",
13396
+ pushImpulse: true
13397
+ }
13398
+ }
13399
+ },
13400
+ {
13401
+ id: "wearable",
13402
+ extends: "item",
13403
+ abstract: true
13404
+ },
13405
+ {
13406
+ id: "clothing",
13407
+ extends: "wearable",
13408
+ requires: [
13409
+ "wearable"
13410
+ ],
13411
+ defaults: {
13412
+ lootCategory: [
13413
+ "clothing"
13414
+ ],
13415
+ parts: [
13416
+ {
13417
+ id: "body",
13418
+ material: "fabric",
13419
+ thickness: 2e-3
13420
+ }
13421
+ ],
13422
+ impact: {
13423
+ response: "tear",
13424
+ pushImpulse: false
13425
+ }
13426
+ }
13427
+ },
13428
+ {
13429
+ id: "bag",
13430
+ extends: "wearable",
13431
+ requires: [
13432
+ "wearable"
13433
+ ],
13434
+ defaults: {
13435
+ lootCategory: [
13436
+ "bags"
13437
+ ],
13438
+ parts: [
13439
+ {
13440
+ id: "body",
13441
+ material: "fabric",
13442
+ thickness: 2e-3
13443
+ }
13444
+ ],
13445
+ impact: {
13446
+ response: "tear",
13447
+ pushImpulse: false
13448
+ }
13449
+ }
13450
+ },
13451
+ {
13452
+ id: "equipment",
13453
+ extends: "item",
13454
+ abstract: true
13455
+ },
13456
+ {
13457
+ id: "tool",
13458
+ extends: "equipment",
13459
+ defaults: {
13460
+ lootCategory: [
13461
+ "tools",
13462
+ "outdoors",
13463
+ "medical",
13464
+ "collectibles",
13465
+ "electronics"
13466
+ ],
13467
+ parts: [
13468
+ {
13469
+ id: "body",
13470
+ material: "steel",
13471
+ thickness: 3e-3
13472
+ }
13473
+ ],
13474
+ impact: {
13475
+ response: "dent",
13476
+ pushImpulse: true
13477
+ }
13478
+ }
13479
+ },
13480
+ {
13481
+ id: "electronics",
13482
+ extends: "equipment",
13483
+ requires: [
13484
+ "battery"
13485
+ ],
13486
+ defaults: {
13487
+ lootCategory: [
13488
+ "electronics",
13489
+ "tools",
13490
+ "fuel"
13491
+ ],
13492
+ parts: [
13493
+ {
13494
+ id: "body",
13495
+ material: "plastic",
13496
+ thickness: 2e-3
13497
+ }
13498
+ ],
13499
+ impact: {
13500
+ response: "break",
13501
+ pushImpulse: true
13502
+ }
13503
+ }
13504
+ },
13505
+ {
13506
+ id: "fuel",
13507
+ extends: "equipment",
13508
+ requires: [
13509
+ "liquid_container"
13510
+ ],
13511
+ defaults: {
13512
+ lootCategory: [
13513
+ "fuel"
13514
+ ],
13515
+ parts: [
13516
+ {
13517
+ id: "body",
13518
+ material: "plastic",
13519
+ thickness: 2e-3
13520
+ }
13521
+ ],
13522
+ impact: {
13523
+ response: "dent",
13524
+ pushImpulse: true
13525
+ }
13526
+ }
13527
+ },
13528
+ {
13529
+ id: "camping",
13530
+ extends: "equipment",
13531
+ defaults: {
13532
+ lootCategory: [
13533
+ "tools",
13534
+ "outdoors",
13535
+ "fuel",
13536
+ "electronics",
13537
+ "clothing"
13538
+ ],
13539
+ parts: [
13540
+ {
13541
+ id: "body",
13542
+ material: "fabric",
13543
+ thickness: 2e-3
13544
+ }
13545
+ ],
13546
+ impact: {
13547
+ response: "tear",
13548
+ pushImpulse: false
13549
+ }
13550
+ }
13551
+ },
13552
+ {
13553
+ id: "material_misc",
13554
+ extends: "item",
13555
+ abstract: true
13556
+ },
13557
+ {
13558
+ id: "material",
13559
+ extends: "material_misc",
13560
+ defaults: {
13561
+ lootCategory: [
13562
+ "materials",
13563
+ "outdoors"
13564
+ ],
13565
+ parts: [
13566
+ {
13567
+ id: "body",
13568
+ material: "wood_soft",
13569
+ thickness: 0.02
13570
+ }
13571
+ ],
13572
+ impact: {
13573
+ response: "break",
13574
+ pushImpulse: true
13575
+ }
13576
+ }
13577
+ },
13578
+ {
13579
+ id: "book",
13580
+ extends: "material_misc",
13581
+ defaults: {
13582
+ lootCategory: [
13583
+ "books",
13584
+ "collectibles"
13585
+ ],
13586
+ parts: [
13587
+ {
13588
+ id: "body",
13589
+ material: "paper",
13590
+ thickness: 5e-3
13591
+ }
13592
+ ],
13593
+ impact: {
13594
+ response: "tear",
13595
+ pushImpulse: false
13596
+ }
13597
+ }
13598
+ },
13599
+ {
13600
+ id: "key",
13601
+ extends: "material_misc",
13602
+ defaults: {
13603
+ lootCategory: [
13604
+ "keys"
13605
+ ],
13606
+ parts: [
13607
+ {
13608
+ id: "body",
13609
+ material: "steel",
13610
+ thickness: 2e-3
13611
+ }
13612
+ ],
13613
+ impact: {
13614
+ response: "dent",
13615
+ pushImpulse: true
13616
+ }
13617
+ }
13618
+ },
13619
+ {
13620
+ id: "collectible",
13621
+ extends: "material_misc",
13622
+ defaults: {
13623
+ lootCategory: [
13624
+ "collectibles"
13625
+ ],
13626
+ parts: [
13627
+ {
13628
+ id: "body",
13629
+ material: "paper",
13630
+ thickness: 1e-3
13631
+ }
13632
+ ],
13633
+ impact: {
13634
+ response: "tear",
13635
+ pushImpulse: false
13636
+ }
13637
+ }
13638
+ },
13639
+ {
13640
+ id: "hygiene",
13641
+ extends: "material_misc",
13642
+ defaults: {
13643
+ lootCategory: [
13644
+ "medical",
13645
+ "clothing"
13646
+ ],
13647
+ parts: [
13648
+ {
13649
+ id: "body",
13650
+ material: "plastic",
13651
+ thickness: 1e-3
13652
+ }
13653
+ ],
13654
+ impact: {
13655
+ response: "dent",
13656
+ pushImpulse: true
13657
+ }
13658
+ }
13659
+ }
13660
+ ];
13661
+ var places_default = [
13662
+ {
13663
+ id: "house",
13664
+ name: "House"
13665
+ },
13666
+ {
13667
+ id: "apartment",
13668
+ name: "Apartment building"
13669
+ },
13670
+ {
13671
+ id: "supermarket",
13672
+ name: "Supermarket"
13673
+ },
13674
+ {
13675
+ id: "pharmacy",
13676
+ name: "Pharmacy"
13677
+ },
13678
+ {
13679
+ id: "gun_shop",
13680
+ name: "Gun and hunting shop"
13681
+ },
13682
+ {
13683
+ id: "mall",
13684
+ name: "Mall"
13685
+ },
13686
+ {
13687
+ id: "police_station",
13688
+ name: "Police station"
13689
+ },
13690
+ {
13691
+ id: "hospital",
13692
+ name: "Hospital"
13693
+ },
13694
+ {
13695
+ id: "school",
13696
+ name: "School"
13697
+ },
13698
+ {
13699
+ id: "gas_station",
13700
+ name: "Gas station"
13701
+ },
13702
+ {
13703
+ id: "church",
13704
+ name: "Church"
13705
+ },
13706
+ {
13707
+ id: "warehouse",
13708
+ name: "Warehouse and metalworks"
13709
+ },
13710
+ {
13711
+ id: "farm",
13712
+ name: "Farm"
13713
+ },
13714
+ {
13715
+ id: "military_base",
13716
+ name: "Military base and roadblock"
13717
+ },
13718
+ {
13719
+ id: "workshop",
13720
+ name: "Car workshop"
13721
+ },
13722
+ {
13723
+ id: "car",
13724
+ name: "Abandoned car"
13725
+ },
13726
+ {
13727
+ id: "road",
13728
+ name: "Road and camp"
13729
+ },
13730
+ {
13731
+ id: "train",
13732
+ name: "Derailed train"
13733
+ },
13734
+ {
13735
+ id: "prison",
13736
+ name: "Prison"
13737
+ },
13738
+ {
13739
+ id: "mine",
13740
+ name: "Mine and quarry"
13741
+ },
13742
+ {
13743
+ id: "docks",
13744
+ name: "Docks and fish market"
13745
+ },
13746
+ {
13747
+ id: "lodge",
13748
+ name: "Inn and chalet"
13749
+ },
13750
+ {
13751
+ id: "dam",
13752
+ name: "Hydroelectric dam"
13753
+ },
13754
+ {
13755
+ id: "zombie_corpse",
13756
+ name: "Zombie corpse"
13757
+ }
13758
+ ];
13759
+ var provenance_default = {
13760
+ canned_beans: {
13761
+ ite: "feijao_lata",
13762
+ idSource: "decision",
13763
+ sizeSource: "model",
12728
13764
  game: [
12729
13765
  "feijao_lata"
12730
13766
  ]
@@ -16247,38 +17283,269 @@ var GameInteractablesHousehold = (() => {
16247
17283
  aliasOf: housePoolsFile.aliasOf
16248
17284
  };
16249
17285
  var GOODS_PROVENANCE = provenance_default;
16250
- var goodsPack = {
16251
- id: "goods",
16252
- items: GOODS_ITEMS,
16253
- categories: GOODS_CATEGORIES,
16254
- places: GOODS_PLACES,
16255
- containers: GOODS_CONTAINERS,
16256
- useEffects: GOODS_USE_EFFECTS,
16257
- recipes: GOODS_RECIPES,
16258
- pools: GOODS_HOUSE_POOLS.pools,
16259
- poolAliases: { ...GOODS_HOUSE_POOLS.aliasOf, ...FLOORPLAN_POOL_ALIASES }
17286
+ var GOODS_KINDS = kinds_default;
17287
+ var item_contracts_default = {
17288
+ densityKgPerLitre: { min: 0.02, max: 22 },
17289
+ impactResponses: ["dent", "break", "shatter", "tear", "squash", "pierce", "none"],
17290
+ heatResistantMaterials: ["steel", "cast_iron", "aluminium", "copper", "ceramic", "tempered_glass", "stone", "brick"],
17291
+ bodySlots: ["head", "eyes", "torso", "arms", "hands", "legs", "feet", "over"]
16260
17292
  };
16261
- var en_default = {
16262
- "item.canned_beans": "Canned beans",
16263
- "item.canned_sardines": "Canned sardines",
16264
- "item.canned_corn_and_peas": "Canned corn and peas",
16265
- "item.canned_sausages": "Canned sausages",
16266
- "item.condensed_milk": "Condensed milk",
16267
- "item.military_ration": "Army field ration",
16268
- "item.rice": "Rice (1 kg)",
16269
- "item.beans": "Beans (1 kg)",
16270
- "item.pasta": "Pasta",
16271
- "item.instant_noodles": "Instant noodles",
16272
- "item.cassava_flour": "Cassava flour (1 kg)",
16273
- "item.biscuits": "Biscuits",
16274
- "item.snack_chips": "Bagged snack chips",
16275
- "item.chocolate_bar": "Chocolate bar",
16276
- "item.rapadura": "Rapadura (raw cane sugar block)",
16277
- "item.honey_jar": "Jar of honey",
16278
- "item.bread": "Bread",
16279
- "item.cheese": "Cheese",
16280
- "item.mortadella": "Mortadella (whole piece)",
16281
- "item.raw_beef": "Raw beef (1 kg)",
17293
+ var IMPACT_RESPONSES = item_contracts_default.impactResponses;
17294
+ var HEAT_RESISTANT_MATERIALS = item_contracts_default.heatResistantMaterials;
17295
+ var DENSITY_KG_PER_LITRE = item_contracts_default.densityKgPerLitre;
17296
+ var BODY_SLOTS = item_contracts_default.bodySlots;
17297
+ var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
17298
+ var LITRES_PER_CUBIC_METRE = 1e3;
17299
+ var isNumber = (value) => typeof value === "number" && Number.isFinite(value);
17300
+ var isFraction = (value) => isNumber(value) && value >= 0 && value <= 1;
17301
+ var catalogOf = (options) => options.items ?? GOODS_ITEMS;
17302
+ var parts = (item) => Array.isArray(item.parts) ? item.parts : [];
17303
+ var physical = (options) => {
17304
+ const range = options.density ?? DENSITY_KG_PER_LITRE;
17305
+ return {
17306
+ id: "physical",
17307
+ check: (item) => {
17308
+ const problems = [];
17309
+ const size = item.size;
17310
+ const sizeOk = Array.isArray(size) && size.length === 3 && size.every((side) => isNumber(side) && side > 0);
17311
+ if (!sizeOk) problems.push("size must be 3 finite positive numbers in metres");
17312
+ if (!isNumber(item.weight) || item.weight < 0) problems.push("weight must be a finite number >= 0 (kg)");
17313
+ if (sizeOk && isNumber(item.weight) && item.weight > 0) {
17314
+ const [width, height, depth] = size;
17315
+ const density = item.weight / (width * height * depth * LITRES_PER_CUBIC_METRE);
17316
+ if (density < range.min || density > range.max) problems.push(`density ${Number(density.toPrecision(2))} kg/L is outside ${range.min}..${range.max}`);
17317
+ }
17318
+ return problems;
17319
+ }
17320
+ };
17321
+ };
17322
+ var destructible = (options) => {
17323
+ const materials = options.materials ? new Set(options.materials) : void 0;
17324
+ return {
17325
+ id: "destructible",
17326
+ check: (item) => {
17327
+ const list = parts(item);
17328
+ if (list.length === 0) return ["missing parts"];
17329
+ const problems = [];
17330
+ const seen = /* @__PURE__ */ new Set();
17331
+ for (const part of list) {
17332
+ if (typeof part.id !== "string" || part.id === "") problems.push("a part has no id");
17333
+ else if (seen.has(part.id)) problems.push(`duplicate part "${part.id}"`);
17334
+ else seen.add(part.id);
17335
+ if (typeof part.material !== "string" || part.material === "") problems.push(`part "${part.id}" has no material`);
17336
+ else if (materials && !materials.has(part.material)) problems.push(`part "${part.id}" has unknown material "${part.material}"`);
17337
+ if (part.thickness !== void 0 && !(isNumber(part.thickness) && part.thickness > 0)) problems.push(`part "${part.id}" thickness must be a positive number`);
17338
+ }
17339
+ if (problems.length === 0 && list.every((part) => part.shape !== void 0 && part.position !== void 0)) {
17340
+ const report = checkSpec({ parts: list }, materials ? { materials } : {});
17341
+ for (const problem of report.problems) problems.push(`spec: ${problem}`);
17342
+ }
17343
+ return problems;
17344
+ }
17345
+ };
17346
+ };
17347
+ var impact = {
17348
+ id: "impact",
17349
+ check: (item) => {
17350
+ const value = item.impact;
17351
+ if (!value) return ["missing impact"];
17352
+ const problems = [];
17353
+ if (!IMPACT_RESPONSES.includes(value.response ?? "")) problems.push(`impact.response must be one of ${IMPACT_RESPONSES.join(", ")}`);
17354
+ if (typeof value.pushImpulse !== "boolean") problems.push("impact.pushImpulse must be true or false");
17355
+ if (value.shed !== void 0 && typeof value.shed !== "boolean") problems.push("impact.shed must be true or false");
17356
+ return problems;
17357
+ }
17358
+ };
17359
+ var useAnimation = {
17360
+ id: "use_animation",
17361
+ check: (item) => {
17362
+ const problems = [];
17363
+ const clip = item.use?.clip;
17364
+ if (clip === void 0) problems.push("missing use.clip");
17365
+ else if (!SNAKE_CASE.test(clip)) problems.push(`use.clip "${clip}" must be snake_case`);
17366
+ const sounds = item.use?.sounds;
17367
+ if (!Array.isArray(sounds) || sounds.length === 0 || sounds.some((sound) => typeof sound !== "string" || sound === "")) problems.push("missing use.sounds (a non-empty list of sound ids)");
17368
+ return problems;
17369
+ }
17370
+ };
17371
+ var leftover = (options) => {
17372
+ const ids = new Set(catalogOf(options).map((item) => item.id));
17373
+ return {
17374
+ id: "leftover",
17375
+ check: (item) => {
17376
+ const value = item.leftover;
17377
+ if (value === void 0) return ["missing leftover"];
17378
+ if (value === "none") return [];
17379
+ const problems = [];
17380
+ if (typeof value !== "object" || value === null) return ['leftover must be an object or "none"'];
17381
+ if (typeof value.item !== "string" || value.item === "") problems.push("missing leftover.item");
17382
+ else if (!ids.has(value.item)) problems.push(`leftover.item "${value.item}" is not in the catalog`);
17383
+ if (!isNumber(value.despawnSeconds) || value.despawnSeconds < 0) problems.push("missing leftover.despawnSeconds");
17384
+ return problems;
17385
+ }
17386
+ };
17387
+ };
17388
+ var edible = {
17389
+ id: "edible",
17390
+ check: (item) => {
17391
+ const problems = [];
17392
+ const nutrition = item.nutrition;
17393
+ if (!nutrition || !(isNumber(nutrition.satiety) || isNumber(nutrition.hydration))) problems.push("missing nutrition");
17394
+ if (item.shelfLife === void 0 && item.nonPerishable !== true) problems.push("missing shelfLife (a number of days, or nonPerishable: true)");
17395
+ else if (item.shelfLife !== void 0 && !(isNumber(item.shelfLife) && item.shelfLife > 0)) problems.push("shelfLife must be a positive number of days");
17396
+ if (!isFraction(item.rawEffect?.sickChance)) problems.push("missing rawEffect.sickChance (0..1)");
17397
+ return problems;
17398
+ }
17399
+ };
17400
+ var inputsOf = (recipe) => recipe.inputs ?? [];
17401
+ var toolsOf = (recipe) => recipe.tools ?? [];
17402
+ var consumes = (input, item) => {
17403
+ if (input.item === item.id) return true;
17404
+ if (input.any?.includes(item.id)) return true;
17405
+ if (!input.match) return false;
17406
+ const entries = Object.entries(input.match);
17407
+ return entries.length > 0 && entries.every(([key, value]) => item[key] === value);
17408
+ };
17409
+ var recipeInput = (options) => {
17410
+ const recipes = options.recipes ?? GOODS_RECIPES;
17411
+ return {
17412
+ id: "recipe_input",
17413
+ check: (item) => recipes.some((recipe) => inputsOf(recipe).some((input) => consumes(input, item))) ? [] : ["is not an input of any recipe"]
17414
+ };
17415
+ };
17416
+ var preparation = (options) => {
17417
+ const recipes = options.recipes ?? GOODS_RECIPES;
17418
+ const cookware = new Set(catalogOf(options).filter((item) => item.kind === "cookware").map((item) => item.id));
17419
+ return {
17420
+ id: "preparation",
17421
+ check: (item) => {
17422
+ const usable = recipes.filter((recipe) => inputsOf(recipe).some((input) => consumes(input, item)));
17423
+ if (usable.length === 0) return ["has no recipe that prepares it"];
17424
+ const prepares = usable.some((recipe) => {
17425
+ const heat = toolsOf(recipe).some((tool) => tool.world?.includes("fire"));
17426
+ const vessel = [...inputsOf(recipe).flatMap((input) => input.item ? [input.item] : []), ...toolsOf(recipe).flatMap((tool) => tool.anyOf ?? [])].some((id) => cookware.has(id));
17427
+ return heat && vessel;
17428
+ });
17429
+ return prepares ? [] : ["has no recipe that needs fire and a cooking vessel"];
17430
+ }
17431
+ };
17432
+ };
17433
+ var liquidContainer = {
17434
+ id: "liquid_container",
17435
+ check: (item) => {
17436
+ const fluid = item.fluid;
17437
+ if (fluid) {
17438
+ const problems = [];
17439
+ if (typeof fluid.liquid !== "string" || !SNAKE_CASE.test(fluid.liquid)) problems.push("fluid.liquid must be a liquid id");
17440
+ if (!isNumber(fluid.liters) || fluid.liters < 0) problems.push("fluid.liters must be a number >= 0");
17441
+ return problems;
17442
+ }
17443
+ return isNumber(item.container?.capacityLiters) && (item.container?.capacityLiters ?? 0) > 0 ? [] : ["missing fluid { liquid, liters } or container.capacityLiters"];
17444
+ }
17445
+ };
17446
+ var heatResistant = (options) => {
17447
+ const allowed = new Set(options.heatResistant ?? HEAT_RESISTANT_MATERIALS);
17448
+ return {
17449
+ id: "heat_resistant",
17450
+ check: (item) => parts(item).filter((part) => !allowed.has(part.material)).map((part) => `part "${part.id}" is ${part.material}, which does not take a flame`)
17451
+ };
17452
+ };
17453
+ var weapon = (options) => {
17454
+ const weaponIds = options.weaponIds ? new Set(options.weaponIds) : void 0;
17455
+ const calibers = options.calibers ? new Set(options.calibers) : void 0;
17456
+ return {
17457
+ id: "weapon",
17458
+ check: (item, ctx) => {
17459
+ if (ctx.chain.includes("ammo")) {
17460
+ if (typeof item.caliber !== "string" || item.caliber === "") return ["missing caliber"];
17461
+ return calibers && !calibers.has(item.caliber) ? [`caliber "${item.caliber}" is not in the arsenal`] : [];
17462
+ }
17463
+ if (typeof item.weapon !== "string" || item.weapon === "") return ["missing weapon (the arsenal id)"];
17464
+ return weaponIds && !weaponIds.has(item.weapon) ? [`weapon "${item.weapon}" is not in the arsenal`] : [];
17465
+ }
17466
+ };
17467
+ };
17468
+ var wearable = {
17469
+ id: "wearable",
17470
+ check: (item, ctx) => {
17471
+ const problems = [];
17472
+ const { protection, carry } = item;
17473
+ if (!protection && !carry) return [ctx.chain.includes("bag") ? "missing carry" : "missing protection"];
17474
+ if (ctx.chain.includes("bag") && !carry) problems.push("missing carry");
17475
+ if (ctx.chain.includes("clothing") && !protection) problems.push("missing protection");
17476
+ if (protection) {
17477
+ const slots = protection.slots;
17478
+ if (!Array.isArray(slots) || slots.length === 0) problems.push("protection.slots must list at least one body slot");
17479
+ else for (const slot of slots) if (!BODY_SLOTS.includes(slot)) problems.push(`protection.slots has unknown slot "${slot}"`);
17480
+ for (const field of ["bite", "scratch", "warmth"]) if (protection[field] !== void 0 && !isFraction(protection[field])) problems.push(`protection.${field} must be between 0 and 1`);
17481
+ }
17482
+ if (carry) {
17483
+ if (!(isNumber(carry.capacityKg) && carry.capacityKg > 0)) problems.push("carry.capacityKg must be positive");
17484
+ if (!isFraction(carry.weightReduction)) problems.push("carry.weightReduction must be between 0 and 1");
17485
+ if (!(isNumber(carry.quickSlots) && carry.quickSlots >= 0)) problems.push("carry.quickSlots must be >= 0");
17486
+ }
17487
+ return problems;
17488
+ }
17489
+ };
17490
+ var battery = {
17491
+ id: "battery",
17492
+ check: (item) => isNumber(item.charge?.lossPerMonth) && (item.charge?.lossPerMonth ?? -1) >= 0 ? [] : ["missing charge.lossPerMonth"]
17493
+ };
17494
+ var createItemContracts = (options = {}) => [
17495
+ physical(options),
17496
+ destructible(options),
17497
+ impact,
17498
+ useAnimation,
17499
+ leftover(options),
17500
+ edible,
17501
+ preparation(options),
17502
+ recipeInput(options),
17503
+ liquidContainer,
17504
+ heatResistant(options),
17505
+ weapon(options),
17506
+ wearable,
17507
+ battery
17508
+ ];
17509
+ var ITEM_CONTRACTS = createItemContracts();
17510
+ var createGoodsKinds = (options = {}) => defineCategories(GOODS_KINDS, options);
17511
+ var KINDS = createGoodsKinds();
17512
+ var withSeal = (item) => {
17513
+ const kind = item.kind;
17514
+ const seal = kind && KINDS.has(kind) ? KINDS.defaults(kind).seal : void 0;
17515
+ return seal ? { ...item, seal: { ...seal, ...item.seal } } : item;
17516
+ };
17517
+ var goodsPack = {
17518
+ id: "goods",
17519
+ items: GOODS_ITEMS.map(withSeal),
17520
+ categories: GOODS_CATEGORIES,
17521
+ places: GOODS_PLACES,
17522
+ containers: GOODS_CONTAINERS,
17523
+ useEffects: GOODS_USE_EFFECTS,
17524
+ recipes: GOODS_RECIPES,
17525
+ pools: GOODS_HOUSE_POOLS.pools,
17526
+ poolAliases: { ...GOODS_HOUSE_POOLS.aliasOf, ...FLOORPLAN_POOL_ALIASES }
17527
+ };
17528
+ var en_default = {
17529
+ "item.canned_beans": "Canned beans",
17530
+ "item.canned_sardines": "Canned sardines",
17531
+ "item.canned_corn_and_peas": "Canned corn and peas",
17532
+ "item.canned_sausages": "Canned sausages",
17533
+ "item.condensed_milk": "Condensed milk",
17534
+ "item.military_ration": "Army field ration",
17535
+ "item.rice": "Rice (1 kg)",
17536
+ "item.beans": "Beans (1 kg)",
17537
+ "item.pasta": "Pasta",
17538
+ "item.instant_noodles": "Instant noodles",
17539
+ "item.cassava_flour": "Cassava flour (1 kg)",
17540
+ "item.biscuits": "Biscuits",
17541
+ "item.snack_chips": "Bagged snack chips",
17542
+ "item.chocolate_bar": "Chocolate bar",
17543
+ "item.rapadura": "Rapadura (raw cane sugar block)",
17544
+ "item.honey_jar": "Jar of honey",
17545
+ "item.bread": "Bread",
17546
+ "item.cheese": "Cheese",
17547
+ "item.mortadella": "Mortadella (whole piece)",
17548
+ "item.raw_beef": "Raw beef (1 kg)",
16282
17549
  "item.frozen_chicken": "Frozen chicken",
16283
17550
  "item.eggs": "Eggs (dozen)",
16284
17551
  "item.banana_bunch": "Bunch of bananas",
@@ -17275,229 +18542,6 @@ var GameInteractablesHousehold = (() => {
17275
18542
  "kind.hygiene.description": "Sabonete, pasta de dente, papel higi\xEAnico e toalha."
17276
18543
  };
17277
18544
  var GOODS_STRINGS = { en: en_default, "pt-BR": pt_BR_default };
17278
- var item_contracts_default = {
17279
- densityKgPerLitre: { min: 0.02, max: 22 },
17280
- impactResponses: ["dent", "break", "shatter", "tear", "squash", "pierce", "none"],
17281
- heatResistantMaterials: ["steel", "cast_iron", "aluminium", "copper", "ceramic", "tempered_glass", "stone", "brick"],
17282
- bodySlots: ["head", "eyes", "torso", "arms", "hands", "legs", "feet", "over"]
17283
- };
17284
- var IMPACT_RESPONSES = item_contracts_default.impactResponses;
17285
- var HEAT_RESISTANT_MATERIALS = item_contracts_default.heatResistantMaterials;
17286
- var DENSITY_KG_PER_LITRE = item_contracts_default.densityKgPerLitre;
17287
- var BODY_SLOTS = item_contracts_default.bodySlots;
17288
- var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
17289
- var LITRES_PER_CUBIC_METRE = 1e3;
17290
- var isNumber = (value) => typeof value === "number" && Number.isFinite(value);
17291
- var isFraction = (value) => isNumber(value) && value >= 0 && value <= 1;
17292
- var catalogOf = (options) => options.items ?? GOODS_ITEMS;
17293
- var parts = (item) => Array.isArray(item.parts) ? item.parts : [];
17294
- var physical = (options) => {
17295
- const range = options.density ?? DENSITY_KG_PER_LITRE;
17296
- return {
17297
- id: "physical",
17298
- check: (item) => {
17299
- const problems = [];
17300
- const size = item.size;
17301
- const sizeOk = Array.isArray(size) && size.length === 3 && size.every((side) => isNumber(side) && side > 0);
17302
- if (!sizeOk) problems.push("size must be 3 finite positive numbers in metres");
17303
- if (!isNumber(item.weight) || item.weight < 0) problems.push("weight must be a finite number >= 0 (kg)");
17304
- if (sizeOk && isNumber(item.weight) && item.weight > 0) {
17305
- const [width, height, depth] = size;
17306
- const density = item.weight / (width * height * depth * LITRES_PER_CUBIC_METRE);
17307
- if (density < range.min || density > range.max) problems.push(`density ${Number(density.toPrecision(2))} kg/L is outside ${range.min}..${range.max}`);
17308
- }
17309
- return problems;
17310
- }
17311
- };
17312
- };
17313
- var destructible = (options) => {
17314
- const materials = options.materials ? new Set(options.materials) : void 0;
17315
- return {
17316
- id: "destructible",
17317
- check: (item) => {
17318
- const list = parts(item);
17319
- if (list.length === 0) return ["missing parts"];
17320
- const problems = [];
17321
- const seen = /* @__PURE__ */ new Set();
17322
- for (const part of list) {
17323
- if (typeof part.id !== "string" || part.id === "") problems.push("a part has no id");
17324
- else if (seen.has(part.id)) problems.push(`duplicate part "${part.id}"`);
17325
- else seen.add(part.id);
17326
- if (typeof part.material !== "string" || part.material === "") problems.push(`part "${part.id}" has no material`);
17327
- else if (materials && !materials.has(part.material)) problems.push(`part "${part.id}" has unknown material "${part.material}"`);
17328
- if (part.thickness !== void 0 && !(isNumber(part.thickness) && part.thickness > 0)) problems.push(`part "${part.id}" thickness must be a positive number`);
17329
- }
17330
- if (problems.length === 0 && list.every((part) => part.shape !== void 0 && part.position !== void 0)) {
17331
- const report = checkSpec({ parts: list }, materials ? { materials } : {});
17332
- for (const problem of report.problems) problems.push(`spec: ${problem}`);
17333
- }
17334
- return problems;
17335
- }
17336
- };
17337
- };
17338
- var impact = {
17339
- id: "impact",
17340
- check: (item) => {
17341
- const value = item.impact;
17342
- if (!value) return ["missing impact"];
17343
- const problems = [];
17344
- if (!IMPACT_RESPONSES.includes(value.response ?? "")) problems.push(`impact.response must be one of ${IMPACT_RESPONSES.join(", ")}`);
17345
- if (typeof value.pushImpulse !== "boolean") problems.push("impact.pushImpulse must be true or false");
17346
- if (value.shed !== void 0 && typeof value.shed !== "boolean") problems.push("impact.shed must be true or false");
17347
- return problems;
17348
- }
17349
- };
17350
- var useAnimation = {
17351
- id: "use_animation",
17352
- check: (item) => {
17353
- const problems = [];
17354
- const clip = item.use?.clip;
17355
- if (clip === void 0) problems.push("missing use.clip");
17356
- else if (!SNAKE_CASE.test(clip)) problems.push(`use.clip "${clip}" must be snake_case`);
17357
- const sounds = item.use?.sounds;
17358
- if (!Array.isArray(sounds) || sounds.length === 0 || sounds.some((sound) => typeof sound !== "string" || sound === "")) problems.push("missing use.sounds (a non-empty list of sound ids)");
17359
- return problems;
17360
- }
17361
- };
17362
- var leftover = (options) => {
17363
- const ids = new Set(catalogOf(options).map((item) => item.id));
17364
- return {
17365
- id: "leftover",
17366
- check: (item) => {
17367
- const value = item.leftover;
17368
- if (value === void 0) return ["missing leftover"];
17369
- if (value === "none") return [];
17370
- const problems = [];
17371
- if (typeof value !== "object" || value === null) return ['leftover must be an object or "none"'];
17372
- if (typeof value.item !== "string" || value.item === "") problems.push("missing leftover.item");
17373
- else if (!ids.has(value.item)) problems.push(`leftover.item "${value.item}" is not in the catalog`);
17374
- if (!isNumber(value.despawnSeconds) || value.despawnSeconds < 0) problems.push("missing leftover.despawnSeconds");
17375
- return problems;
17376
- }
17377
- };
17378
- };
17379
- var edible = {
17380
- id: "edible",
17381
- check: (item) => {
17382
- const problems = [];
17383
- const nutrition = item.nutrition;
17384
- if (!nutrition || !(isNumber(nutrition.satiety) || isNumber(nutrition.hydration))) problems.push("missing nutrition");
17385
- if (item.shelfLife === void 0 && item.nonPerishable !== true) problems.push("missing shelfLife (a number of days, or nonPerishable: true)");
17386
- else if (item.shelfLife !== void 0 && !(isNumber(item.shelfLife) && item.shelfLife > 0)) problems.push("shelfLife must be a positive number of days");
17387
- if (!isFraction(item.rawEffect?.sickChance)) problems.push("missing rawEffect.sickChance (0..1)");
17388
- return problems;
17389
- }
17390
- };
17391
- var inputsOf = (recipe) => recipe.inputs ?? [];
17392
- var toolsOf = (recipe) => recipe.tools ?? [];
17393
- var consumes = (input, item) => {
17394
- if (input.item === item.id) return true;
17395
- if (input.any?.includes(item.id)) return true;
17396
- if (!input.match) return false;
17397
- const entries = Object.entries(input.match);
17398
- return entries.length > 0 && entries.every(([key, value]) => item[key] === value);
17399
- };
17400
- var recipeInput = (options) => {
17401
- const recipes = options.recipes ?? GOODS_RECIPES;
17402
- return {
17403
- id: "recipe_input",
17404
- check: (item) => recipes.some((recipe) => inputsOf(recipe).some((input) => consumes(input, item))) ? [] : ["is not an input of any recipe"]
17405
- };
17406
- };
17407
- var preparation = (options) => {
17408
- const recipes = options.recipes ?? GOODS_RECIPES;
17409
- const cookware = new Set(catalogOf(options).filter((item) => item.kind === "cookware").map((item) => item.id));
17410
- return {
17411
- id: "preparation",
17412
- check: (item) => {
17413
- const usable = recipes.filter((recipe) => inputsOf(recipe).some((input) => consumes(input, item)));
17414
- if (usable.length === 0) return ["has no recipe that prepares it"];
17415
- const prepares = usable.some((recipe) => {
17416
- const heat = toolsOf(recipe).some((tool) => tool.world?.includes("fire"));
17417
- const vessel = [...inputsOf(recipe).flatMap((input) => input.item ? [input.item] : []), ...toolsOf(recipe).flatMap((tool) => tool.anyOf ?? [])].some((id) => cookware.has(id));
17418
- return heat && vessel;
17419
- });
17420
- return prepares ? [] : ["has no recipe that needs fire and a cooking vessel"];
17421
- }
17422
- };
17423
- };
17424
- var liquidContainer = {
17425
- id: "liquid_container",
17426
- check: (item) => {
17427
- const fluid = item.fluid;
17428
- if (fluid) {
17429
- const problems = [];
17430
- if (typeof fluid.liquid !== "string" || !SNAKE_CASE.test(fluid.liquid)) problems.push("fluid.liquid must be a liquid id");
17431
- if (!isNumber(fluid.liters) || fluid.liters < 0) problems.push("fluid.liters must be a number >= 0");
17432
- return problems;
17433
- }
17434
- return isNumber(item.container?.capacityLiters) && (item.container?.capacityLiters ?? 0) > 0 ? [] : ["missing fluid { liquid, liters } or container.capacityLiters"];
17435
- }
17436
- };
17437
- var heatResistant = (options) => {
17438
- const allowed = new Set(options.heatResistant ?? HEAT_RESISTANT_MATERIALS);
17439
- return {
17440
- id: "heat_resistant",
17441
- check: (item) => parts(item).filter((part) => !allowed.has(part.material)).map((part) => `part "${part.id}" is ${part.material}, which does not take a flame`)
17442
- };
17443
- };
17444
- var weapon = (options) => {
17445
- const weaponIds = options.weaponIds ? new Set(options.weaponIds) : void 0;
17446
- const calibers = options.calibers ? new Set(options.calibers) : void 0;
17447
- return {
17448
- id: "weapon",
17449
- check: (item, ctx) => {
17450
- if (ctx.chain.includes("ammo")) {
17451
- if (typeof item.caliber !== "string" || item.caliber === "") return ["missing caliber"];
17452
- return calibers && !calibers.has(item.caliber) ? [`caliber "${item.caliber}" is not in the arsenal`] : [];
17453
- }
17454
- if (typeof item.weapon !== "string" || item.weapon === "") return ["missing weapon (the arsenal id)"];
17455
- return weaponIds && !weaponIds.has(item.weapon) ? [`weapon "${item.weapon}" is not in the arsenal`] : [];
17456
- }
17457
- };
17458
- };
17459
- var wearable = {
17460
- id: "wearable",
17461
- check: (item, ctx) => {
17462
- const problems = [];
17463
- const { protection, carry } = item;
17464
- if (!protection && !carry) return [ctx.chain.includes("bag") ? "missing carry" : "missing protection"];
17465
- if (ctx.chain.includes("bag") && !carry) problems.push("missing carry");
17466
- if (ctx.chain.includes("clothing") && !protection) problems.push("missing protection");
17467
- if (protection) {
17468
- const slots = protection.slots;
17469
- if (!Array.isArray(slots) || slots.length === 0) problems.push("protection.slots must list at least one body slot");
17470
- else for (const slot of slots) if (!BODY_SLOTS.includes(slot)) problems.push(`protection.slots has unknown slot "${slot}"`);
17471
- for (const field of ["bite", "scratch", "warmth"]) if (protection[field] !== void 0 && !isFraction(protection[field])) problems.push(`protection.${field} must be between 0 and 1`);
17472
- }
17473
- if (carry) {
17474
- if (!(isNumber(carry.capacityKg) && carry.capacityKg > 0)) problems.push("carry.capacityKg must be positive");
17475
- if (!isFraction(carry.weightReduction)) problems.push("carry.weightReduction must be between 0 and 1");
17476
- if (!(isNumber(carry.quickSlots) && carry.quickSlots >= 0)) problems.push("carry.quickSlots must be >= 0");
17477
- }
17478
- return problems;
17479
- }
17480
- };
17481
- var battery = {
17482
- id: "battery",
17483
- check: (item) => isNumber(item.charge?.lossPerMonth) && (item.charge?.lossPerMonth ?? -1) >= 0 ? [] : ["missing charge.lossPerMonth"]
17484
- };
17485
- var createItemContracts = (options = {}) => [
17486
- physical(options),
17487
- destructible(options),
17488
- impact,
17489
- useAnimation,
17490
- leftover(options),
17491
- edible,
17492
- preparation(options),
17493
- recipeInput(options),
17494
- liquidContainer,
17495
- heatResistant(options),
17496
- weapon(options),
17497
- wearable,
17498
- battery
17499
- ];
17500
- var ITEM_CONTRACTS = createItemContracts();
17501
18545
 
17502
18546
  // src/destruction.ts
17503
18547
  var door = (material, joint = "hinge", piece2 = "door") => ({ material, joint, piece: piece2 });
@@ -19279,6 +20323,7 @@ var GameInteractablesHousehold = (() => {
19279
20323
  h: 1.8,
19280
20324
  y: 0,
19281
20325
  solid: true,
20326
+ pushable: true,
19282
20327
  massKg: 70
19283
20328
  },
19284
20329
  {
@@ -19289,6 +20334,7 @@ var GameInteractablesHousehold = (() => {
19289
20334
  h: 0.85,
19290
20335
  y: 0,
19291
20336
  solid: true,
20337
+ pushable: true,
19292
20338
  massKg: 30
19293
20339
  },
19294
20340
  {
@@ -19299,6 +20345,7 @@ var GameInteractablesHousehold = (() => {
19299
20345
  h: 0.9,
19300
20346
  y: 0,
19301
20347
  solid: true,
20348
+ pushable: true,
19302
20349
  massKg: 35
19303
20350
  },
19304
20351
  {
@@ -19319,6 +20366,7 @@ var GameInteractablesHousehold = (() => {
19319
20366
  h: 2,
19320
20367
  y: 0,
19321
20368
  solid: true,
20369
+ pushable: true,
19322
20370
  massKg: 50
19323
20371
  },
19324
20372
  {
@@ -19329,6 +20377,7 @@ var GameInteractablesHousehold = (() => {
19329
20377
  h: 2.1,
19330
20378
  y: 0,
19331
20379
  solid: true,
20380
+ pushable: true,
19332
20381
  massKg: 90
19333
20382
  },
19334
20383
  {
@@ -19339,6 +20388,7 @@ var GameInteractablesHousehold = (() => {
19339
20388
  h: 0.9,
19340
20389
  y: 0,
19341
20390
  solid: true,
20391
+ pushable: true,
19342
20392
  massKg: 45
19343
20393
  },
19344
20394
  {
@@ -19349,6 +20399,7 @@ var GameInteractablesHousehold = (() => {
19349
20399
  h: 0.55,
19350
20400
  y: 0,
19351
20401
  solid: true,
20402
+ pushable: true,
19352
20403
  massKg: 12
19353
20404
  },
19354
20405
  {
@@ -19369,6 +20420,7 @@ var GameInteractablesHousehold = (() => {
19369
20420
  h: 0.9,
19370
20421
  y: 0,
19371
20422
  solid: true,
20423
+ pushable: true,
19372
20424
  massKg: 45
19373
20425
  },
19374
20426
  {
@@ -19519,6 +20571,7 @@ var GameInteractablesHousehold = (() => {
19519
20571
  h: 0.85,
19520
20572
  y: 0,
19521
20573
  solid: true,
20574
+ pushable: true,
19522
20575
  massKg: 70
19523
20576
  },
19524
20577
  {
@@ -19529,6 +20582,7 @@ var GameInteractablesHousehold = (() => {
19529
20582
  h: 0.85,
19530
20583
  y: 0,
19531
20584
  solid: true,
20585
+ pushable: true,
19532
20586
  massKg: 45
19533
20587
  },
19534
20588
  {
@@ -19539,6 +20593,7 @@ var GameInteractablesHousehold = (() => {
19539
20593
  h: 0.85,
19540
20594
  y: 0,
19541
20595
  solid: true,
20596
+ pushable: true,
19542
20597
  massKg: 25
19543
20598
  },
19544
20599
  {
@@ -19559,6 +20614,7 @@ var GameInteractablesHousehold = (() => {
19559
20614
  h: 0.95,
19560
20615
  y: 0,
19561
20616
  solid: true,
20617
+ pushable: true,
19562
20618
  massKg: 60
19563
20619
  },
19564
20620
  {
@@ -19569,6 +20625,7 @@ var GameInteractablesHousehold = (() => {
19569
20625
  h: 0.9,
19570
20626
  y: 0,
19571
20627
  solid: true,
20628
+ pushable: true,
19572
20629
  massKg: 30
19573
20630
  },
19574
20631
  {
@@ -19579,6 +20636,7 @@ var GameInteractablesHousehold = (() => {
19579
20636
  h: 0.85,
19580
20637
  y: 0,
19581
20638
  solid: true,
20639
+ pushable: true,
19582
20640
  massKg: 15
19583
20641
  },
19584
20642
  {
@@ -19619,6 +20677,7 @@ var GameInteractablesHousehold = (() => {
19619
20677
  h: 1.05,
19620
20678
  y: 0,
19621
20679
  solid: true,
20680
+ pushable: true,
19622
20681
  massKg: 12
19623
20682
  },
19624
20683
  {
@@ -19639,6 +20698,7 @@ var GameInteractablesHousehold = (() => {
19639
20698
  h: 0.85,
19640
20699
  y: 0,
19641
20700
  solid: true,
20701
+ pushable: true,
19642
20702
  massKg: 20
19643
20703
  },
19644
20704
  {
@@ -19649,6 +20709,7 @@ var GameInteractablesHousehold = (() => {
19649
20709
  h: 1.9,
19650
20710
  y: 0,
19651
20711
  solid: true,
20712
+ pushable: true,
19652
20713
  massKg: 400
19653
20714
  },
19654
20715
  {
@@ -19669,6 +20730,7 @@ var GameInteractablesHousehold = (() => {
19669
20730
  h: 1.75,
19670
20731
  y: 0,
19671
20732
  solid: true,
20733
+ pushable: true,
19672
20734
  massKg: 75
19673
20735
  },
19674
20736
  {
@@ -19679,6 +20741,7 @@ var GameInteractablesHousehold = (() => {
19679
20741
  h: 2.3,
19680
20742
  y: 0,
19681
20743
  solid: true,
20744
+ pushable: true,
19682
20745
  massKg: 120
19683
20746
  },
19684
20747
  {