@adatechnology/game-interactables-household 0.1.0 → 0.2.1

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
@@ -2,6 +2,9 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
 
5
+ // src/create.ts
6
+ import { GOODS_ITEMS, GOODS_PROVENANCE, GOODS_STRINGS } from "@adatechnology/game-items-goods";
7
+
5
8
  // src/destruction.ts
6
9
  var door = (material, joint = "hinge", piece2 = "door") => ({ material, joint, piece: piece2 });
7
10
  var drawer = { material: "mdf", joint: "clip", piece: "drawer" };
@@ -416,1206 +419,6 @@ var Ctx = class {
416
419
  }
417
420
  };
418
421
 
419
- // src/data/items.json
420
- var items_default = {
421
- canned_food: {
422
- id: "canned_food",
423
- category: "food",
424
- size: [
425
- 0.075,
426
- 0.11,
427
- 0.075
428
- ],
429
- weight: 0.4,
430
- stack: 6,
431
- shape: "can",
432
- color: 13148218
433
- },
434
- rice: {
435
- id: "rice",
436
- category: "food",
437
- size: [
438
- 0.1,
439
- 0.2,
440
- 0.06
441
- ],
442
- weight: 1,
443
- stack: 4,
444
- shape: "bag",
445
- color: 15261888
446
- },
447
- beans: {
448
- id: "beans",
449
- category: "food",
450
- size: [
451
- 0.1,
452
- 0.2,
453
- 0.06
454
- ],
455
- weight: 1,
456
- stack: 4,
457
- shape: "bag",
458
- color: 6961698
459
- },
460
- pasta: {
461
- id: "pasta",
462
- category: "food",
463
- size: [
464
- 0.1,
465
- 0.25,
466
- 0.04
467
- ],
468
- weight: 0.5,
469
- stack: 4,
470
- shape: "bag",
471
- color: 15253584
472
- },
473
- salt: {
474
- id: "salt",
475
- category: "food",
476
- size: [
477
- 0.07,
478
- 0.16,
479
- 0.07
480
- ],
481
- weight: 1,
482
- stack: 2,
483
- shape: "box",
484
- color: 15263984
485
- },
486
- sugar: {
487
- id: "sugar",
488
- category: "food",
489
- size: [
490
- 0.1,
491
- 0.2,
492
- 0.06
493
- ],
494
- weight: 1,
495
- stack: 4,
496
- shape: "bag",
497
- color: 15790320
498
- },
499
- flour: {
500
- id: "flour",
501
- category: "food",
502
- size: [
503
- 0.1,
504
- 0.22,
505
- 0.06
506
- ],
507
- weight: 1,
508
- stack: 4,
509
- shape: "bag",
510
- color: 16052452
511
- },
512
- coffee: {
513
- id: "coffee",
514
- category: "food",
515
- size: [
516
- 0.08,
517
- 0.15,
518
- 0.06
519
- ],
520
- weight: 0.5,
521
- stack: 4,
522
- shape: "bag",
523
- color: 5913124
524
- },
525
- cooking_oil: {
526
- id: "cooking_oil",
527
- category: "food",
528
- size: [
529
- 0.07,
530
- 0.26,
531
- 0.07
532
- ],
533
- weight: 0.9,
534
- stack: 3,
535
- shape: "bottle",
536
- color: 15255600
537
- },
538
- cereal_box: {
539
- id: "cereal_box",
540
- category: "food",
541
- size: [
542
- 0.2,
543
- 0.3,
544
- 0.08
545
- ],
546
- weight: 0.4,
547
- stack: 2,
548
- shape: "box",
549
- color: 14182960
550
- },
551
- biscuits: {
552
- id: "biscuits",
553
- category: "food",
554
- size: [
555
- 0.2,
556
- 0.05,
557
- 0.1
558
- ],
559
- weight: 0.2,
560
- stack: 4,
561
- shape: "box",
562
- color: 12089920
563
- },
564
- bread: {
565
- id: "bread",
566
- category: "food",
567
- size: [
568
- 0.3,
569
- 0.1,
570
- 0.1
571
- ],
572
- weight: 0.4,
573
- stack: 2,
574
- shape: "bag",
575
- color: 13146714
576
- },
577
- milk_carton: {
578
- id: "milk_carton",
579
- category: "drink",
580
- size: [
581
- 0.07,
582
- 0.2,
583
- 0.07
584
- ],
585
- weight: 1,
586
- stack: 4,
587
- shape: "box",
588
- color: 15790324
589
- },
590
- water_bottle: {
591
- id: "water_bottle",
592
- category: "drink",
593
- size: [
594
- 0.07,
595
- 0.28,
596
- 0.07
597
- ],
598
- weight: 0.5,
599
- stack: 4,
600
- shape: "bottle",
601
- color: 10146024
602
- },
603
- juice_box: {
604
- id: "juice_box",
605
- category: "drink",
606
- size: [
607
- 0.07,
608
- 0.2,
609
- 0.07
610
- ],
611
- weight: 1,
612
- stack: 4,
613
- shape: "box",
614
- color: 15239728
615
- },
616
- soda_can: {
617
- id: "soda_can",
618
- category: "drink",
619
- size: [
620
- 0.066,
621
- 0.12,
622
- 0.066
623
- ],
624
- weight: 0.35,
625
- stack: 6,
626
- shape: "can",
627
- color: 13119536
628
- },
629
- eggs: {
630
- id: "eggs",
631
- category: "food",
632
- size: [
633
- 0.25,
634
- 0.07,
635
- 0.1
636
- ],
637
- weight: 0.7,
638
- stack: 2,
639
- shape: "box",
640
- color: 15261904
641
- },
642
- cheese: {
643
- id: "cheese",
644
- category: "food",
645
- size: [
646
- 0.15,
647
- 0.04,
648
- 0.1
649
- ],
650
- weight: 0.3,
651
- stack: 2,
652
- shape: "box",
653
- color: 15781984
654
- },
655
- butter: {
656
- id: "butter",
657
- category: "food",
658
- size: [
659
- 0.1,
660
- 0.04,
661
- 0.06
662
- ],
663
- weight: 0.2,
664
- stack: 2,
665
- shape: "box",
666
- color: 16050336
667
- },
668
- ketchup: {
669
- id: "ketchup",
670
- category: "food",
671
- size: [
672
- 0.06,
673
- 0.2,
674
- 0.06
675
- ],
676
- weight: 0.4,
677
- stack: 2,
678
- shape: "bottle",
679
- color: 13117984
680
- },
681
- ham: {
682
- id: "ham",
683
- category: "food",
684
- size: [
685
- 0.15,
686
- 0.03,
687
- 0.1
688
- ],
689
- weight: 0.2,
690
- stack: 2,
691
- shape: "box",
692
- color: 15245472
693
- },
694
- yogurt: {
695
- id: "yogurt",
696
- category: "food",
697
- size: [
698
- 0.07,
699
- 0.09,
700
- 0.07
701
- ],
702
- weight: 0.17,
703
- stack: 6,
704
- shape: "jar",
705
- color: 15786216
706
- },
707
- apple: {
708
- id: "apple",
709
- category: "food",
710
- size: [
711
- 0.08,
712
- 0.08,
713
- 0.08
714
- ],
715
- weight: 0.18,
716
- stack: 6,
717
- shape: "fruit",
718
- color: 13122096
719
- },
720
- tomato: {
721
- id: "tomato",
722
- category: "food",
723
- size: [
724
- 0.07,
725
- 0.07,
726
- 0.07
727
- ],
728
- weight: 0.15,
729
- stack: 6,
730
- shape: "fruit",
731
- color: 14172202
732
- },
733
- frozen_meat: {
734
- id: "frozen_meat",
735
- category: "food",
736
- size: [
737
- 0.2,
738
- 0.05,
739
- 0.15
740
- ],
741
- weight: 0.8,
742
- stack: 2,
743
- shape: "box",
744
- color: 12081754
745
- },
746
- ice_cream: {
747
- id: "ice_cream",
748
- category: "food",
749
- size: [
750
- 0.13,
751
- 0.1,
752
- 0.13
753
- ],
754
- weight: 0.9,
755
- stack: 2,
756
- shape: "jar",
757
- color: 15784160
758
- },
759
- frozen_pizza: {
760
- id: "frozen_pizza",
761
- category: "food",
762
- size: [
763
- 0.3,
764
- 0.03,
765
- 0.3
766
- ],
767
- weight: 0.5,
768
- stack: 2,
769
- shape: "box",
770
- color: 14195264
771
- },
772
- frozen_vegetables: {
773
- id: "frozen_vegetables",
774
- category: "food",
775
- size: [
776
- 0.15,
777
- 0.2,
778
- 0.05
779
- ],
780
- weight: 0.5,
781
- stack: 3,
782
- shape: "bag",
783
- color: 4889168
784
- },
785
- plate: {
786
- id: "plate",
787
- category: "kitchen",
788
- size: [
789
- 0.25,
790
- 0.03,
791
- 0.25
792
- ],
793
- weight: 0.4,
794
- stack: 6,
795
- shape: "dish",
796
- color: 15790320
797
- },
798
- bowl: {
799
- id: "bowl",
800
- category: "kitchen",
801
- size: [
802
- 0.15,
803
- 0.07,
804
- 0.15
805
- ],
806
- weight: 0.3,
807
- stack: 6,
808
- shape: "dish",
809
- color: 15262936
810
- },
811
- cup: {
812
- id: "cup",
813
- category: "kitchen",
814
- size: [
815
- 0.08,
816
- 0.09,
817
- 0.08
818
- ],
819
- weight: 0.25,
820
- stack: 6,
821
- shape: "cup",
822
- color: 14215408
823
- },
824
- cutlery: {
825
- id: "cutlery",
826
- category: "kitchen",
827
- size: [
828
- 0.2,
829
- 0.03,
830
- 0.08
831
- ],
832
- weight: 0.4,
833
- stack: 2,
834
- shape: "tool",
835
- color: 12633288
836
- },
837
- knife: {
838
- id: "knife",
839
- category: "kitchen",
840
- size: [
841
- 0.25,
842
- 0.03,
843
- 0.04
844
- ],
845
- weight: 0.15,
846
- stack: 1,
847
- shape: "tool",
848
- color: 11843772
849
- },
850
- scissors: {
851
- id: "scissors",
852
- category: "kitchen",
853
- size: [
854
- 0.18,
855
- 0.015,
856
- 0.07
857
- ],
858
- weight: 0.1,
859
- stack: 1,
860
- shape: "tool",
861
- color: 12083242
862
- },
863
- pot: {
864
- id: "pot",
865
- category: "kitchen",
866
- size: [
867
- 0.25,
868
- 0.15,
869
- 0.25
870
- ],
871
- weight: 1,
872
- stack: 1,
873
- shape: "dish",
874
- color: 9080466
875
- },
876
- pan: {
877
- id: "pan",
878
- category: "kitchen",
879
- size: [
880
- 0.28,
881
- 0.08,
882
- 0.28
883
- ],
884
- weight: 0.9,
885
- stack: 1,
886
- shape: "dish",
887
- color: 2763310
888
- },
889
- soap: {
890
- id: "soap",
891
- category: "hygiene",
892
- size: [
893
- 0.09,
894
- 0.03,
895
- 0.05
896
- ],
897
- weight: 0.1,
898
- stack: 6,
899
- shape: "box",
900
- color: 15790304
901
- },
902
- shampoo: {
903
- id: "shampoo",
904
- category: "hygiene",
905
- size: [
906
- 0.06,
907
- 0.2,
908
- 0.04
909
- ],
910
- weight: 0.35,
911
- stack: 3,
912
- shape: "bottle",
913
- color: 4885200
914
- },
915
- toothpaste: {
916
- id: "toothpaste",
917
- category: "hygiene",
918
- size: [
919
- 0.04,
920
- 0.18,
921
- 0.03
922
- ],
923
- weight: 0.1,
924
- stack: 3,
925
- shape: "tube",
926
- color: 15790320
927
- },
928
- toothbrush: {
929
- id: "toothbrush",
930
- category: "hygiene",
931
- size: [
932
- 0.02,
933
- 0.18,
934
- 0.02
935
- ],
936
- weight: 0.02,
937
- stack: 3,
938
- shape: "tool",
939
- color: 3840720
940
- },
941
- deodorant: {
942
- id: "deodorant",
943
- category: "hygiene",
944
- size: [
945
- 0.05,
946
- 0.15,
947
- 0.04
948
- ],
949
- weight: 0.15,
950
- stack: 2,
951
- shape: "bottle",
952
- color: 11061480
953
- },
954
- toilet_paper: {
955
- id: "toilet_paper",
956
- category: "hygiene",
957
- size: [
958
- 0.11,
959
- 0.1,
960
- 0.11
961
- ],
962
- weight: 0.1,
963
- stack: 8,
964
- shape: "roll",
965
- color: 16316664
966
- },
967
- towel: {
968
- id: "towel",
969
- category: "hygiene",
970
- size: [
971
- 0.3,
972
- 0.05,
973
- 0.2
974
- ],
975
- weight: 0.5,
976
- stack: 3,
977
- shape: "cloth",
978
- color: 4885160
979
- },
980
- detergent: {
981
- id: "detergent",
982
- category: "cleaning",
983
- size: [
984
- 0.07,
985
- 0.25,
986
- 0.05
987
- ],
988
- weight: 0.5,
989
- stack: 3,
990
- shape: "bottle",
991
- color: 7000224
992
- },
993
- bleach: {
994
- id: "bleach",
995
- category: "cleaning",
996
- size: [
997
- 0.1,
998
- 0.3,
999
- 0.08
1000
- ],
1001
- weight: 1,
1002
- stack: 2,
1003
- shape: "bottle",
1004
- color: 15263988
1005
- },
1006
- sponge: {
1007
- id: "sponge",
1008
- category: "cleaning",
1009
- size: [
1010
- 0.1,
1011
- 0.03,
1012
- 0.07
1013
- ],
1014
- weight: 0.03,
1015
- stack: 4,
1016
- shape: "box",
1017
- color: 15257648
1018
- },
1019
- bandage: {
1020
- id: "bandage",
1021
- category: "medical",
1022
- size: [
1023
- 0.1,
1024
- 0.03,
1025
- 0.05
1026
- ],
1027
- weight: 0.05,
1028
- stack: 4,
1029
- shape: "box",
1030
- color: 15786184
1031
- },
1032
- painkillers: {
1033
- id: "painkillers",
1034
- category: "medical",
1035
- size: [
1036
- 0.06,
1037
- 0.02,
1038
- 0.04
1039
- ],
1040
- weight: 0.03,
1041
- stack: 4,
1042
- shape: "box",
1043
- color: 15263976
1044
- },
1045
- alcohol_70: {
1046
- id: "alcohol_70",
1047
- category: "medical",
1048
- size: [
1049
- 0.07,
1050
- 0.2,
1051
- 0.05
1052
- ],
1053
- weight: 0.3,
1054
- stack: 3,
1055
- shape: "bottle",
1056
- color: 15266040
1057
- },
1058
- first_aid_kit: {
1059
- id: "first_aid_kit",
1060
- category: "medical",
1061
- size: [
1062
- 0.25,
1063
- 0.09,
1064
- 0.17
1065
- ],
1066
- weight: 0.8,
1067
- stack: 1,
1068
- shape: "box",
1069
- color: 13119536
1070
- },
1071
- thermometer: {
1072
- id: "thermometer",
1073
- category: "medical",
1074
- size: [
1075
- 0.12,
1076
- 0.02,
1077
- 0.03
1078
- ],
1079
- weight: 0.02,
1080
- stack: 1,
1081
- shape: "tool",
1082
- color: 13685976
1083
- },
1084
- tshirt: {
1085
- id: "tshirt",
1086
- category: "clothing",
1087
- size: [
1088
- 0.3,
1089
- 0.04,
1090
- 0.22
1091
- ],
1092
- weight: 0.2,
1093
- stack: 4,
1094
- shape: "cloth",
1095
- color: 3828400
1096
- },
1097
- jeans: {
1098
- id: "jeans",
1099
- category: "clothing",
1100
- size: [
1101
- 0.35,
1102
- 0.06,
1103
- 0.22
1104
- ],
1105
- weight: 0.6,
1106
- stack: 3,
1107
- shape: "cloth",
1108
- color: 2771578
1109
- },
1110
- jacket: {
1111
- id: "jacket",
1112
- category: "clothing",
1113
- size: [
1114
- 0.4,
1115
- 0.1,
1116
- 0.22
1117
- ],
1118
- weight: 0.8,
1119
- stack: 2,
1120
- shape: "cloth",
1121
- color: 4868690
1122
- },
1123
- sneakers: {
1124
- id: "sneakers",
1125
- category: "clothing",
1126
- size: [
1127
- 0.3,
1128
- 0.12,
1129
- 0.12
1130
- ],
1131
- weight: 0.8,
1132
- stack: 1,
1133
- shape: "shoe",
1134
- color: 15263976
1135
- },
1136
- socks: {
1137
- id: "socks",
1138
- category: "clothing",
1139
- size: [
1140
- 0.1,
1141
- 0.03,
1142
- 0.08
1143
- ],
1144
- weight: 0.05,
1145
- stack: 6,
1146
- shape: "cloth",
1147
- color: 14211288
1148
- },
1149
- underwear: {
1150
- id: "underwear",
1151
- category: "clothing",
1152
- size: [
1153
- 0.12,
1154
- 0.03,
1155
- 0.1
1156
- ],
1157
- weight: 0.05,
1158
- stack: 6,
1159
- shape: "cloth",
1160
- color: 9079450
1161
- },
1162
- hat: {
1163
- id: "hat",
1164
- category: "clothing",
1165
- size: [
1166
- 0.25,
1167
- 0.1,
1168
- 0.22
1169
- ],
1170
- weight: 0.15,
1171
- stack: 1,
1172
- shape: "cloth",
1173
- color: 9071162
1174
- },
1175
- scarf: {
1176
- id: "scarf",
1177
- category: "clothing",
1178
- size: [
1179
- 0.2,
1180
- 0.04,
1181
- 0.2
1182
- ],
1183
- weight: 0.2,
1184
- stack: 2,
1185
- shape: "cloth",
1186
- color: 12073530
1187
- },
1188
- blanket: {
1189
- id: "blanket",
1190
- category: "clothing",
1191
- size: [
1192
- 0.45,
1193
- 0.1,
1194
- 0.22
1195
- ],
1196
- weight: 1.2,
1197
- stack: 2,
1198
- shape: "cloth",
1199
- color: 9067082
1200
- },
1201
- pillow: {
1202
- id: "pillow",
1203
- category: "clothing",
1204
- size: [
1205
- 0.45,
1206
- 0.12,
1207
- 0.23
1208
- ],
1209
- weight: 0.5,
1210
- stack: 2,
1211
- shape: "cloth",
1212
- color: 15789800
1213
- },
1214
- backpack: {
1215
- id: "backpack",
1216
- category: "clothing",
1217
- size: [
1218
- 0.3,
1219
- 0.3,
1220
- 0.2
1221
- ],
1222
- weight: 0.9,
1223
- stack: 1,
1224
- shape: "bag",
1225
- color: 3820090
1226
- },
1227
- flashlight: {
1228
- id: "flashlight",
1229
- category: "tool",
1230
- size: [
1231
- 0.04,
1232
- 0.04,
1233
- 0.16
1234
- ],
1235
- weight: 0.25,
1236
- stack: 1,
1237
- shape: "tool",
1238
- color: 2763310
1239
- },
1240
- batteries: {
1241
- id: "batteries",
1242
- category: "tool",
1243
- size: [
1244
- 0.06,
1245
- 0.02,
1246
- 0.05
1247
- ],
1248
- weight: 0.1,
1249
- stack: 4,
1250
- shape: "box",
1251
- color: 13148192
1252
- },
1253
- candles: {
1254
- id: "candles",
1255
- category: "tool",
1256
- size: [
1257
- 0.06,
1258
- 0.12,
1259
- 0.06
1260
- ],
1261
- weight: 0.2,
1262
- stack: 4,
1263
- shape: "tool",
1264
- color: 15788232
1265
- },
1266
- matches: {
1267
- id: "matches",
1268
- category: "tool",
1269
- size: [
1270
- 0.05,
1271
- 0.015,
1272
- 0.035
1273
- ],
1274
- weight: 0.02,
1275
- stack: 4,
1276
- shape: "box",
1277
- color: 13119536
1278
- },
1279
- lighter: {
1280
- id: "lighter",
1281
- category: "tool",
1282
- size: [
1283
- 0.025,
1284
- 0.08,
1285
- 0.012
1286
- ],
1287
- weight: 0.03,
1288
- stack: 1,
1289
- shape: "tool",
1290
- color: 14170682
1291
- },
1292
- documents: {
1293
- id: "documents",
1294
- category: "office",
1295
- size: [
1296
- 0.22,
1297
- 0.03,
1298
- 0.3
1299
- ],
1300
- weight: 0.2,
1301
- stack: 1,
1302
- shape: "paper",
1303
- color: 15262928
1304
- },
1305
- wallet: {
1306
- id: "wallet",
1307
- category: "office",
1308
- size: [
1309
- 0.11,
1310
- 0.02,
1311
- 0.09
1312
- ],
1313
- weight: 0.1,
1314
- stack: 1,
1315
- shape: "box",
1316
- color: 4864554
1317
- },
1318
- phone_charger: {
1319
- id: "phone_charger",
1320
- category: "office",
1321
- size: [
1322
- 0.06,
1323
- 0.02,
1324
- 0.06
1325
- ],
1326
- weight: 0.08,
1327
- stack: 1,
1328
- shape: "tool",
1329
- color: 15790320
1330
- },
1331
- notebook: {
1332
- id: "notebook",
1333
- category: "office",
1334
- size: [
1335
- 0.15,
1336
- 0.02,
1337
- 0.21
1338
- ],
1339
- weight: 0.3,
1340
- stack: 1,
1341
- shape: "paper",
1342
- color: 3824266
1343
- },
1344
- pen: {
1345
- id: "pen",
1346
- category: "office",
1347
- size: [
1348
- 0.015,
1349
- 0.015,
1350
- 0.14
1351
- ],
1352
- weight: 0.01,
1353
- stack: 6,
1354
- shape: "tool",
1355
- color: 2771616
1356
- },
1357
- crumpled_paper: {
1358
- id: "crumpled_paper",
1359
- category: "trash",
1360
- size: [
1361
- 0.1,
1362
- 0.1,
1363
- 0.1
1364
- ],
1365
- weight: 0.02,
1366
- stack: 6,
1367
- shape: "paper",
1368
- color: 15262940
1369
- },
1370
- empty_can: {
1371
- id: "empty_can",
1372
- category: "trash",
1373
- size: [
1374
- 0.066,
1375
- 0.12,
1376
- 0.066
1377
- ],
1378
- weight: 0.02,
1379
- stack: 6,
1380
- shape: "can",
1381
- color: 10527912
1382
- },
1383
- empty_bottle: {
1384
- id: "empty_bottle",
1385
- category: "trash",
1386
- size: [
1387
- 0.07,
1388
- 0.25,
1389
- 0.07
1390
- ],
1391
- weight: 0.03,
1392
- stack: 4,
1393
- shape: "bottle",
1394
- color: 11063488
1395
- },
1396
- food_scraps: {
1397
- id: "food_scraps",
1398
- category: "trash",
1399
- size: [
1400
- 0.15,
1401
- 0.06,
1402
- 0.15
1403
- ],
1404
- weight: 0.2,
1405
- stack: 2,
1406
- shape: "bag",
1407
- color: 8022586
1408
- },
1409
- plastic_bag: {
1410
- id: "plastic_bag",
1411
- category: "trash",
1412
- size: [
1413
- 0.2,
1414
- 0.2,
1415
- 0.1
1416
- ],
1417
- weight: 0.02,
1418
- stack: 4,
1419
- shape: "bag",
1420
- color: 15263976
1421
- },
1422
- bill: {
1423
- id: "bill",
1424
- category: "mail",
1425
- size: [
1426
- 0.22,
1427
- 5e-3,
1428
- 0.1
1429
- ],
1430
- weight: 0.01,
1431
- stack: 1,
1432
- shape: "paper",
1433
- color: 15790312
1434
- },
1435
- letter: {
1436
- id: "letter",
1437
- category: "mail",
1438
- size: [
1439
- 0.16,
1440
- 5e-3,
1441
- 0.1
1442
- ],
1443
- weight: 0.01,
1444
- stack: 1,
1445
- shape: "paper",
1446
- color: 16183516
1447
- },
1448
- flyer: {
1449
- id: "flyer",
1450
- category: "mail",
1451
- size: [
1452
- 0.21,
1453
- 5e-3,
1454
- 0.14
1455
- ],
1456
- weight: 0.01,
1457
- stack: 1,
1458
- shape: "paper",
1459
- color: 15253568
1460
- },
1461
- postcard: {
1462
- id: "postcard",
1463
- category: "mail",
1464
- size: [
1465
- 0.15,
1466
- 3e-3,
1467
- 0.1
1468
- ],
1469
- weight: 0.01,
1470
- stack: 1,
1471
- shape: "paper",
1472
- color: 8040664
1473
- },
1474
- charcoal_bag: {
1475
- id: "charcoal_bag",
1476
- category: "bbq",
1477
- size: [
1478
- 0.3,
1479
- 0.12,
1480
- 0.4
1481
- ],
1482
- weight: 3,
1483
- stack: 1,
1484
- shape: "bag",
1485
- color: 2763310
1486
- },
1487
- tongs: {
1488
- id: "tongs",
1489
- category: "bbq",
1490
- size: [
1491
- 0.4,
1492
- 0.03,
1493
- 0.05
1494
- ],
1495
- weight: 0.2,
1496
- stack: 1,
1497
- shape: "tool",
1498
- color: 11843772
1499
- },
1500
- skewers: {
1501
- id: "skewers",
1502
- category: "bbq",
1503
- size: [
1504
- 0.3,
1505
- 0.02,
1506
- 0.1
1507
- ],
1508
- weight: 0.3,
1509
- stack: 2,
1510
- shape: "tool",
1511
- color: 11843772
1512
- },
1513
- firelighter: {
1514
- id: "firelighter",
1515
- category: "bbq",
1516
- size: [
1517
- 0.08,
1518
- 0.04,
1519
- 0.08
1520
- ],
1521
- weight: 0.1,
1522
- stack: 4,
1523
- shape: "box",
1524
- color: 15261888
1525
- },
1526
- paint_can: {
1527
- id: "paint_can",
1528
- category: "garage",
1529
- size: [
1530
- 0.18,
1531
- 0.2,
1532
- 0.18
1533
- ],
1534
- weight: 3,
1535
- stack: 1,
1536
- shape: "can",
1537
- color: 15261904
1538
- },
1539
- duct_tape: {
1540
- id: "duct_tape",
1541
- category: "garage",
1542
- size: [
1543
- 0.1,
1544
- 0.05,
1545
- 0.1
1546
- ],
1547
- weight: 0.2,
1548
- stack: 2,
1549
- shape: "roll",
1550
- color: 9080466
1551
- },
1552
- hammer: {
1553
- id: "hammer",
1554
- category: "garage",
1555
- size: [
1556
- 0.3,
1557
- 0.03,
1558
- 0.1
1559
- ],
1560
- weight: 0.6,
1561
- stack: 1,
1562
- shape: "tool",
1563
- color: 6965802
1564
- },
1565
- screwdriver: {
1566
- id: "screwdriver",
1567
- category: "garage",
1568
- size: [
1569
- 0.22,
1570
- 0.04,
1571
- 0.04
1572
- ],
1573
- weight: 0.15,
1574
- stack: 1,
1575
- shape: "tool",
1576
- color: 13119536
1577
- },
1578
- rope: {
1579
- id: "rope",
1580
- category: "garage",
1581
- size: [
1582
- 0.15,
1583
- 0.08,
1584
- 0.15
1585
- ],
1586
- weight: 0.4,
1587
- stack: 1,
1588
- shape: "roll",
1589
- color: 13152384
1590
- },
1591
- ice_pack: {
1592
- id: "ice_pack",
1593
- category: "drink",
1594
- size: [
1595
- 0.16,
1596
- 0.03,
1597
- 0.12
1598
- ],
1599
- weight: 0.4,
1600
- stack: 3,
1601
- shape: "box",
1602
- color: 9356776
1603
- },
1604
- sandwich: {
1605
- id: "sandwich",
1606
- category: "food",
1607
- size: [
1608
- 0.12,
1609
- 0.05,
1610
- 0.12
1611
- ],
1612
- weight: 0.2,
1613
- stack: 2,
1614
- shape: "box",
1615
- color: 14268282
1616
- }
1617
- };
1618
-
1619
422
  // src/data/loot.json
1620
423
  var loot_default = {
1621
424
  fridge: {
@@ -2450,96 +1253,6 @@ var en_default = {
2450
1253
  "type.dog_house": "Dog house",
2451
1254
  "type.bbq": "Barbecue",
2452
1255
  "type.clothesline": "Clothesline",
2453
- "item.canned_food": "Canned food",
2454
- "item.rice": "Rice (1 kg)",
2455
- "item.beans": "Beans (1 kg)",
2456
- "item.pasta": "Pasta",
2457
- "item.salt": "Salt",
2458
- "item.sugar": "Sugar",
2459
- "item.flour": "Flour",
2460
- "item.coffee": "Coffee",
2461
- "item.cooking_oil": "Cooking oil",
2462
- "item.cereal_box": "Cereal box",
2463
- "item.biscuits": "Biscuits",
2464
- "item.bread": "Bread",
2465
- "item.milk_carton": "Milk carton",
2466
- "item.water_bottle": "Water bottle",
2467
- "item.juice_box": "Juice box",
2468
- "item.soda_can": "Soda can",
2469
- "item.eggs": "Eggs (dozen)",
2470
- "item.cheese": "Cheese",
2471
- "item.butter": "Butter",
2472
- "item.ketchup": "Ketchup",
2473
- "item.ham": "Sliced ham",
2474
- "item.yogurt": "Yogurt",
2475
- "item.apple": "Apple",
2476
- "item.tomato": "Tomato",
2477
- "item.frozen_meat": "Frozen meat",
2478
- "item.ice_cream": "Ice cream",
2479
- "item.frozen_pizza": "Frozen pizza",
2480
- "item.frozen_vegetables": "Frozen vegetables",
2481
- "item.plate": "Plate",
2482
- "item.bowl": "Bowl",
2483
- "item.cup": "Cup",
2484
- "item.cutlery": "Cutlery set",
2485
- "item.knife": "Kitchen knife",
2486
- "item.scissors": "Scissors",
2487
- "item.pot": "Pot",
2488
- "item.pan": "Frying pan",
2489
- "item.soap": "Soap bar",
2490
- "item.shampoo": "Shampoo",
2491
- "item.toothpaste": "Toothpaste",
2492
- "item.toothbrush": "Toothbrush",
2493
- "item.deodorant": "Deodorant",
2494
- "item.toilet_paper": "Toilet paper",
2495
- "item.towel": "Towel",
2496
- "item.detergent": "Detergent",
2497
- "item.bleach": "Bleach",
2498
- "item.sponge": "Sponge",
2499
- "item.bandage": "Bandage",
2500
- "item.painkillers": "Painkillers",
2501
- "item.alcohol_70": "Alcohol 70%",
2502
- "item.first_aid_kit": "First aid kit",
2503
- "item.thermometer": "Thermometer",
2504
- "item.tshirt": "T-shirt",
2505
- "item.jeans": "Jeans",
2506
- "item.jacket": "Jacket",
2507
- "item.sneakers": "Sneakers",
2508
- "item.socks": "Socks",
2509
- "item.underwear": "Underwear",
2510
- "item.hat": "Hat",
2511
- "item.scarf": "Scarf",
2512
- "item.blanket": "Blanket",
2513
- "item.pillow": "Pillow",
2514
- "item.backpack": "Backpack",
2515
- "item.flashlight": "Flashlight",
2516
- "item.batteries": "Batteries",
2517
- "item.candles": "Candles",
2518
- "item.matches": "Matches",
2519
- "item.lighter": "Lighter",
2520
- "item.documents": "Documents",
2521
- "item.wallet": "Wallet",
2522
- "item.phone_charger": "Phone charger",
2523
- "item.notebook": "Notebook",
2524
- "item.pen": "Pen",
2525
- "item.crumpled_paper": "Crumpled paper",
2526
- "item.empty_can": "Empty can",
2527
- "item.empty_bottle": "Empty bottle",
2528
- "item.food_scraps": "Food scraps",
2529
- "item.plastic_bag": "Plastic bag",
2530
- "item.bill": "Utility bill",
2531
- "item.letter": "Letter",
2532
- "item.flyer": "Flyer",
2533
- "item.postcard": "Postcard",
2534
- "item.charcoal_bag": "Charcoal bag",
2535
- "item.tongs": "Barbecue tongs",
2536
- "item.skewers": "Skewers",
2537
- "item.firelighter": "Fire lighter",
2538
- "item.paint_can": "Paint can",
2539
- "item.duct_tape": "Duct tape",
2540
- "item.hammer": "Hammer",
2541
- "item.screwdriver": "Screwdriver",
2542
- "item.rope": "Rope",
2543
1256
  "prompt.door": "Door",
2544
1257
  "prompt.door.open": "Close the door",
2545
1258
  "prompt.door.closed": "Open the door",
@@ -2690,8 +1403,6 @@ var en_default = {
2690
1403
  "type.lantern_lamp": "Lantern",
2691
1404
  "type.camp_chair": "Camp chair",
2692
1405
  "type.camp_table": "Camp table",
2693
- "item.ice_pack": "Ice pack",
2694
- "item.sandwich": "Sandwich",
2695
1406
  "prompt.firebox_door": "Stove door",
2696
1407
  "prompt.firebox_door.open": "Close the stove door",
2697
1408
  "prompt.firebox_door.closed": "Open the stove door",
@@ -2786,96 +1497,6 @@ var pt_BR_default = {
2786
1497
  "type.dog_house": "Casinha de cachorro",
2787
1498
  "type.bbq": "Churrasqueira",
2788
1499
  "type.clothesline": "Varal",
2789
- "item.canned_food": "Comida enlatada",
2790
- "item.rice": "Arroz (1 kg)",
2791
- "item.beans": "Feij\xE3o (1 kg)",
2792
- "item.pasta": "Macarr\xE3o",
2793
- "item.salt": "Sal",
2794
- "item.sugar": "A\xE7\xFAcar",
2795
- "item.flour": "Farinha",
2796
- "item.coffee": "Caf\xE9",
2797
- "item.cooking_oil": "\xD3leo de cozinha",
2798
- "item.cereal_box": "Caixa de cereal",
2799
- "item.biscuits": "Biscoitos",
2800
- "item.bread": "P\xE3o",
2801
- "item.milk_carton": "Caixa de leite",
2802
- "item.water_bottle": "Garrafa de \xE1gua",
2803
- "item.juice_box": "Caixa de suco",
2804
- "item.soda_can": "Lata de refrigerante",
2805
- "item.eggs": "Ovos (d\xFAzia)",
2806
- "item.cheese": "Queijo",
2807
- "item.butter": "Manteiga",
2808
- "item.ketchup": "Ketchup",
2809
- "item.ham": "Presunto fatiado",
2810
- "item.yogurt": "Iogurte",
2811
- "item.apple": "Ma\xE7\xE3",
2812
- "item.tomato": "Tomate",
2813
- "item.frozen_meat": "Carne congelada",
2814
- "item.ice_cream": "Sorvete",
2815
- "item.frozen_pizza": "Pizza congelada",
2816
- "item.frozen_vegetables": "Legumes congelados",
2817
- "item.plate": "Prato",
2818
- "item.bowl": "Tigela",
2819
- "item.cup": "Copo",
2820
- "item.cutlery": "Talheres",
2821
- "item.knife": "Faca de cozinha",
2822
- "item.scissors": "Tesoura",
2823
- "item.pot": "Panela",
2824
- "item.pan": "Frigideira",
2825
- "item.soap": "Sabonete",
2826
- "item.shampoo": "Shampoo",
2827
- "item.toothpaste": "Pasta de dente",
2828
- "item.toothbrush": "Escova de dente",
2829
- "item.deodorant": "Desodorante",
2830
- "item.toilet_paper": "Papel higi\xEAnico",
2831
- "item.towel": "Toalha",
2832
- "item.detergent": "Detergente",
2833
- "item.bleach": "\xC1gua sanit\xE1ria",
2834
- "item.sponge": "Esponja",
2835
- "item.bandage": "Atadura",
2836
- "item.painkillers": "Analg\xE9sicos",
2837
- "item.alcohol_70": "\xC1lcool 70%",
2838
- "item.first_aid_kit": "Kit de primeiros socorros",
2839
- "item.thermometer": "Term\xF4metro",
2840
- "item.tshirt": "Camiseta",
2841
- "item.jeans": "Cal\xE7a jeans",
2842
- "item.jacket": "Jaqueta",
2843
- "item.sneakers": "T\xEAnis",
2844
- "item.socks": "Meias",
2845
- "item.underwear": "Roupa \xEDntima",
2846
- "item.hat": "Chap\xE9u",
2847
- "item.scarf": "Cachecol",
2848
- "item.blanket": "Cobertor",
2849
- "item.pillow": "Travesseiro",
2850
- "item.backpack": "Mochila",
2851
- "item.flashlight": "Lanterna",
2852
- "item.batteries": "Pilhas",
2853
- "item.candles": "Velas",
2854
- "item.matches": "F\xF3sforos",
2855
- "item.lighter": "Isqueiro",
2856
- "item.documents": "Documentos",
2857
- "item.wallet": "Carteira",
2858
- "item.phone_charger": "Carregador de celular",
2859
- "item.notebook": "Caderno",
2860
- "item.pen": "Caneta",
2861
- "item.crumpled_paper": "Papel amassado",
2862
- "item.empty_can": "Lata vazia",
2863
- "item.empty_bottle": "Garrafa vazia",
2864
- "item.food_scraps": "Restos de comida",
2865
- "item.plastic_bag": "Sacola pl\xE1stica",
2866
- "item.bill": "Conta de luz",
2867
- "item.letter": "Carta",
2868
- "item.flyer": "Panfleto",
2869
- "item.postcard": "Cart\xE3o postal",
2870
- "item.charcoal_bag": "Saco de carv\xE3o",
2871
- "item.tongs": "Pegador de churrasco",
2872
- "item.skewers": "Espetos",
2873
- "item.firelighter": "Acendedor",
2874
- "item.paint_can": "Lata de tinta",
2875
- "item.duct_tape": "Fita adesiva",
2876
- "item.hammer": "Martelo",
2877
- "item.screwdriver": "Chave de fenda",
2878
- "item.rope": "Corda",
2879
1500
  "prompt.door": "Porta",
2880
1501
  "prompt.door.open": "Fechar a porta",
2881
1502
  "prompt.door.closed": "Abrir a porta",
@@ -3026,8 +1647,6 @@ var pt_BR_default = {
3026
1647
  "type.lantern_lamp": "Lampi\xE3o",
3027
1648
  "type.camp_chair": "Cadeira de camping",
3028
1649
  "type.camp_table": "Mesa de camping",
3029
- "item.ice_pack": "Gelo reutiliz\xE1vel",
3030
- "item.sandwich": "Sandu\xEDche",
3031
1650
  "prompt.firebox_door": "Porta do fog\xE3o",
3032
1651
  "prompt.firebox_door.open": "Fechar a porta do fog\xE3o",
3033
1652
  "prompt.firebox_door.closed": "Abrir a porta do fog\xE3o",
@@ -6515,8 +5134,11 @@ var BUILDERS = {
6515
5134
  camp_table: campTable
6516
5135
  };
6517
5136
  var DEFS = types_default;
6518
- var STRINGS = { en: en_default, "pt-BR": pt_BR_default };
5137
+ var HOUSEHOLD_ITEMS = GOODS_ITEMS.filter((item) => GOODS_PROVENANCE[item.id]?.household !== void 0);
5138
+ var itemTexts = (locale) => Object.fromEntries(HOUSEHOLD_ITEMS.map((item) => [`item.${item.id}`, GOODS_STRINGS[locale][`item.${item.id}`] ?? item.id]));
5139
+ var STRINGS = { en: { ...en_default, ...itemTexts("en") }, "pt-BR": { ...pt_BR_default, ...itemTexts("pt-BR") } };
6519
5140
  var REGIONS = { br: br_default, us: us_default };
5141
+ var HOUSEHOLD_ITEM_IDS = HOUSEHOLD_ITEMS.map((item) => item.id);
6520
5142
  var HOUSEHOLD_TYPES = DEFS.map((d) => d.id);
6521
5143
  var HOUSEHOLD_REGIONS = Object.keys(REGIONS);
6522
5144
  var clone = (v) => JSON.parse(JSON.stringify(v));
@@ -6531,7 +5153,7 @@ function createHousehold(options = {}) {
6531
5153
  const defs = new Map(DEFS.map((d) => [d.id, d]));
6532
5154
  return {
6533
5155
  types,
6534
- items: clone(items_default),
5156
+ items: clone(Object.fromEntries(HOUSEHOLD_ITEMS.map((item) => [item.id, item]))),
6535
5157
  loot: clone(loot_default),
6536
5158
  strings,
6537
5159
  region: clone(region),
@@ -6574,6 +5196,7 @@ function createRecorder() {
6574
5196
  return { api, primitives, parts };
6575
5197
  }
6576
5198
  export {
5199
+ HOUSEHOLD_ITEM_IDS,
6577
5200
  HOUSEHOLD_REGIONS,
6578
5201
  HOUSEHOLD_TYPES,
6579
5202
  cornersOf,