@adatechnology/game-interactables-household 0.7.3 → 0.7.4

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.
@@ -140,6 +140,12 @@ var GameInteractablesHousehold = (() => {
140
140
  }
141
141
  return { ok: problems.length === 0, problems, warnings };
142
142
  };
143
+ var sealBlock = (seal, state) => {
144
+ if (seal.spoilsWhenBreached && state.breached) return "breached";
145
+ if (seal.spoilsWhenBreached && state.leaked) return "leaked";
146
+ if (!state.opened) return "sealed";
147
+ return void 0;
148
+ };
143
149
  var DEFERRED_QUEUE_ID = {
144
150
  DESTRUCTION_EVENTS: "destruction.events",
145
151
  BREACH_PAINT: "floorplan.breach-paint",
@@ -285,6 +291,7 @@ var GameInteractablesHousehold = (() => {
285
291
  };
286
292
  return registry;
287
293
  };
294
+ var resolveEntry = (registry, entry, kindField = "kind") => deepMerge(registry.defaults(String(entry[kindField])), entry);
288
295
  var SURFACE_IDS = ["concrete", "asphalt", "wood", "tile", "dirt", "grass", "gravel", "sand", "metal", "water", "glass", "carpet"];
289
296
  var GAIT_IDS = ["walk", "run"];
290
297
  var LANDING_IDS = ["light", "heavy"];
@@ -327,7 +334,8 @@ var GameInteractablesHousehold = (() => {
327
334
  PIECE_BOXES: "destruction.piece-boxes",
328
335
  STATIC_COLLIDERS: "destruction.static-colliders",
329
336
  SHAPES_GENERATE: "shapes.generate",
330
- WORLD_REGION: "world.region"
337
+ WORLD_REGION: "world.region",
338
+ VEHICLE_HULL_PLAN: "vehicles.hull-plan"
331
339
  };
332
340
  var WORKER_KIND_DEFAULTS = {
333
341
  [WORKER_KIND_ID.GROUND_TILES]: { lane: "sim", priority: 300, latencyFrames: 2, late: "sync" },
@@ -335,8 +343,834 @@ var GameInteractablesHousehold = (() => {
335
343
  [WORKER_KIND_ID.PIECE_BOXES]: { lane: "sim", priority: 200, latencyFrames: 2, late: "sync" },
336
344
  [WORKER_KIND_ID.STATIC_COLLIDERS]: { lane: "build", priority: 150, late: "sync" },
337
345
  [WORKER_KIND_ID.SHAPES_GENERATE]: { lane: "build", priority: 100, late: "sync" },
338
- [WORKER_KIND_ID.WORLD_REGION]: { lane: "background", priority: 10, latencyFrames: 10, late: "drop" }
346
+ [WORKER_KIND_ID.WORLD_REGION]: { lane: "background", priority: 10, latencyFrames: 10, late: "drop" },
347
+ [WORKER_KIND_ID.VEHICLE_HULL_PLAN]: { lane: "build", priority: 120, late: "keep-waiting" }
348
+ };
349
+
350
+ // ../game-items/dist/index.js
351
+ var DEFAULT_RULES = {
352
+ rarity: {
353
+ weights: { common: 60, uncommon: 28, rare: 9, very_rare: 2.5, legendary: 0.5, unique: 0 },
354
+ fixedOnly: ["legendary", "unique"]
355
+ },
356
+ freshness: { stale: 0.5, spoiled: 1, rotten: 1.5 },
357
+ storage: {
358
+ fridge: { multiplier: 0.33, needsPower: true },
359
+ freezer: { multiplier: 0.1, needsPower: true },
360
+ cooler: { multiplier: 0.5, limitDays: 2, afterLimit: 1 },
361
+ delivery_bag: { multiplier: 0.8 },
362
+ cellar: { multiplier: 0.66 },
363
+ ambient: { multiplier: 1 },
364
+ hot: { multiplier: 2 }
365
+ },
366
+ carry: { baseKg: 8, perStrengthKg: 2.5, factor: 1.2, encumbered: 1, overloaded: 1.5 },
367
+ protection: { cap: 0.9, wear: { bite: 8, scratch: 3 }, tornShare: 0.25, repairMargin: 10 },
368
+ aging: { thawShelfDays: { freezer: 2 } },
369
+ inventory: {
370
+ defaultSlots: 10,
371
+ encumberedRunFactor: 0.75,
372
+ defaultLitres: 12,
373
+ defaultInside: [0.3, 0.25, 0.16],
374
+ bagInside: {
375
+ shopping_bag: [0.4, 0.35, 0.15],
376
+ trash_bag: [0.6, 0.45, 0.12],
377
+ fanny_pack: [0.22, 0.12, 0.1],
378
+ crossbody_bag: [0.25, 0.2, 0.12],
379
+ backpack: [0.5, 0.3, 0.2],
380
+ delivery_bag: [0.45, 0.45, 0.25],
381
+ hiking_backpack_40l: [0.6, 0.35, 0.19],
382
+ military_backpack: [0.6, 0.35, 0.21],
383
+ trekking_backpack_70l: [0.75, 0.38, 0.25],
384
+ rolling_suitcase: [0.6, 0.4, 0.21],
385
+ tactical_vest: [0.3, 0.2, 0.1],
386
+ tool_belt: [0.4, 0.2, 0.1],
387
+ cooler_box: [0.32, 0.25, 0.23],
388
+ shopping_cart: [0.9, 0.55, 0.16],
389
+ wheelbarrow: [1.2, 0.6, 0.15]
390
+ },
391
+ bagLitres: {
392
+ shopping_bag: 20,
393
+ trash_bag: 30,
394
+ fanny_pack: 3,
395
+ crossbody_bag: 6,
396
+ backpack: 30,
397
+ delivery_bag: 50,
398
+ hiking_backpack_40l: 40,
399
+ military_backpack: 45,
400
+ trekking_backpack_70l: 70,
401
+ rolling_suitcase: 50,
402
+ tactical_vest: 6,
403
+ tool_belt: 8,
404
+ cooler_box: 18,
405
+ shopping_cart: 80,
406
+ wheelbarrow: 100
407
+ }
408
+ },
409
+ use: {
410
+ freshness: {
411
+ stale: { satietyFactor: 0.7, poisonChance: 0.1, morale: 0, isEdible: true },
412
+ spoiled: { satietyFactor: 0.7, poisonChance: 0.5, morale: -20, isEdible: true },
413
+ rotten: { satietyFactor: 0, poisonChance: 0, morale: 0, isEdible: false }
414
+ },
415
+ cookedPoisonFactor: 0.25
416
+ },
417
+ spawn: {
418
+ retailNew: true,
419
+ retailPlaces: ["supermarket", "pharmacy", "mall", "gas_station", "gun_shop"],
420
+ retailContainers: ["store_shelf", "stockroom"],
421
+ condition: { common: [30, 90], uncommon: [40, 90], rare: [50, 100], very_rare: [50, 100], legendary: [50, 100], unique: [50, 100] },
422
+ ageShare: [0, 0.6],
423
+ charge: [0.2, 1],
424
+ fillable: ["fuel_jerrycan"],
425
+ fill: [0, 0.6]
426
+ },
427
+ finds: {
428
+ fallbackContainer: "zombie_corpse",
429
+ rollExcluded: ["ammo_7_62x39"],
430
+ depletion: [
431
+ { places: ["pharmacy", "gun_shop", "police_station"], perDay: 0.05, floor: 0.3 },
432
+ { places: ["supermarket", "gas_station"], perDay: 0.04, floor: 0.35 },
433
+ { places: ["mall", "hospital"], perDay: 0.025, floor: 0.5 },
434
+ { places: ["house", "apartment"], perDay: 0.01, floor: 0.7 },
435
+ { places: ["farm", "warehouse", "mine", "dam", "lodge", "church"], perDay: 5e-3, floor: 0.85 },
436
+ { places: ["military_base"], perDay: 0, floor: 1 }
437
+ ],
438
+ regionMultiplier: {},
439
+ states: { normal: "normal", fortified: "fortified", abandoned: "abandoned" },
440
+ pool: {
441
+ defaultFootprint: 0.5,
442
+ offset: 1.5,
443
+ perSquareMetre: 3,
444
+ jitter: 1.5,
445
+ min: 2,
446
+ max: 5,
447
+ fortifiedExtra: 2,
448
+ supplyWeight: 2.5,
449
+ supplyExtraQty: 1,
450
+ abandonedEmptyChance: 0.4,
451
+ abandonedKept: 1,
452
+ junkChance: 0.5,
453
+ junkItem: "food_packaging",
454
+ spoiledFoodItem: "leftover_meal",
455
+ coldContainers: ["geladeira", "refrig_exp", "freezer"]
456
+ }
457
+ }
458
+ };
459
+ var FRESH_NUTRITION = { satietyFactor: 1, poisonChance: 0, morale: 0, isEdible: true };
460
+ var nutritionOf = (item, context, rules) => {
461
+ const state = context.freshness ?? "fresh";
462
+ const effect = state === "fresh" ? FRESH_NUTRITION : rules.use.freshness[state];
463
+ const poisonShare = context.isCooked ? rules.use.cookedPoisonFactor : 1;
464
+ return {
465
+ satiety: (item.nutrition?.satiety ?? 0) * effect.satietyFactor,
466
+ hydration: item.nutrition?.hydration ?? 0,
467
+ morale: effect.morale,
468
+ poisonChance: effect.poisonChance * poisonShare,
469
+ isEdible: effect.isEdible
470
+ };
339
471
  };
472
+ var findEffect = (item, effects) => effects.find((entry) => entry.items?.includes(item.id)) ?? effects.find((entry) => entry.category?.includes(item.category));
473
+ var resolveUse = (item, effects, context = {}, rules = DEFAULT_RULES) => {
474
+ const def = findEffect(item, effects);
475
+ if (!def) return void 0;
476
+ const base = { useId: def.id, effect: def.effect, params: def.params ?? {}, consumes: def.consumes };
477
+ if (def.effect !== "consume_nutrition") return base;
478
+ const nutrition = nutritionOf(item, context, rules);
479
+ const blocked = item.seal && context.seal ? sealBlock(item.seal, context.seal) : void 0;
480
+ if (blocked) return { ...base, consumes: false, nutrition: { ...nutrition, isEdible: false }, blocked };
481
+ return { ...base, consumes: def.consumes && nutrition.isEdible, nutrition };
482
+ };
483
+ var MM = 1e-3;
484
+ var BOX_WALL = 6 * MM;
485
+
486
+ // ../game-fluids/dist/index.js
487
+ var liquids_default = [
488
+ {
489
+ id: "water",
490
+ color: 11064558,
491
+ opacity: 0.35,
492
+ stainColor: 7309206,
493
+ viscosity: 1,
494
+ density: 1e3,
495
+ dryTime: 180,
496
+ gloss: 0.9,
497
+ drink: {
498
+ thirst: 100,
499
+ effects: []
500
+ },
501
+ tags: [
502
+ "drink",
503
+ "clear"
504
+ ]
505
+ },
506
+ {
507
+ id: "coffee",
508
+ color: 3875604,
509
+ opacity: 0.95,
510
+ stainColor: 2824202,
511
+ viscosity: 1.5,
512
+ density: 1005,
513
+ dryTime: 900,
514
+ gloss: 0.8,
515
+ leavesMark: true,
516
+ steamC: 60,
517
+ drink: {
518
+ thirst: 80,
519
+ effects: [
520
+ "caffeine"
521
+ ]
522
+ },
523
+ tags: [
524
+ "drink",
525
+ "hot"
526
+ ]
527
+ },
528
+ {
529
+ id: "tea",
530
+ color: 9063188,
531
+ opacity: 0.8,
532
+ stainColor: 6961682,
533
+ viscosity: 1.4,
534
+ density: 1005,
535
+ dryTime: 800,
536
+ gloss: 0.8,
537
+ leavesMark: true,
538
+ steamC: 60,
539
+ drink: {
540
+ thirst: 90,
541
+ effects: []
542
+ },
543
+ tags: [
544
+ "drink",
545
+ "hot"
546
+ ]
547
+ },
548
+ {
549
+ id: "milk",
550
+ color: 16052712,
551
+ opacity: 0.98,
552
+ stainColor: 14473160,
553
+ viscosity: 2,
554
+ density: 1030,
555
+ dryTime: 900,
556
+ gloss: 0.5,
557
+ leavesMark: true,
558
+ drink: {
559
+ thirst: 70,
560
+ effects: []
561
+ },
562
+ tags: [
563
+ "drink"
564
+ ]
565
+ },
566
+ {
567
+ id: "soda",
568
+ color: 3808530,
569
+ opacity: 0.85,
570
+ stainColor: 2757901,
571
+ viscosity: 1.3,
572
+ density: 1040,
573
+ dryTime: 1200,
574
+ gloss: 0.85,
575
+ leavesMark: true,
576
+ drink: {
577
+ thirst: 60,
578
+ effects: []
579
+ },
580
+ tags: [
581
+ "drink",
582
+ "sticky"
583
+ ]
584
+ },
585
+ {
586
+ id: "juice",
587
+ color: 15239467,
588
+ opacity: 0.9,
589
+ stainColor: 12741916,
590
+ viscosity: 2,
591
+ density: 1045,
592
+ dryTime: 1100,
593
+ gloss: 0.8,
594
+ leavesMark: true,
595
+ drink: {
596
+ thirst: 75,
597
+ effects: []
598
+ },
599
+ tags: [
600
+ "drink",
601
+ "sticky"
602
+ ]
603
+ },
604
+ {
605
+ id: "beer",
606
+ color: 14259740,
607
+ opacity: 0.8,
608
+ stainColor: 11039764,
609
+ viscosity: 1.4,
610
+ density: 1010,
611
+ dryTime: 900,
612
+ gloss: 0.8,
613
+ drink: {
614
+ thirst: 50,
615
+ effects: [
616
+ "alcohol"
617
+ ]
618
+ },
619
+ tags: [
620
+ "drink",
621
+ "alcohol"
622
+ ]
623
+ },
624
+ {
625
+ id: "wine",
626
+ color: 7016223,
627
+ opacity: 0.9,
628
+ stainColor: 5048854,
629
+ viscosity: 1.6,
630
+ density: 990,
631
+ dryTime: 800,
632
+ gloss: 0.85,
633
+ leavesMark: true,
634
+ drink: {
635
+ thirst: 40,
636
+ effects: [
637
+ "alcohol"
638
+ ]
639
+ },
640
+ tags: [
641
+ "drink",
642
+ "alcohol"
643
+ ]
644
+ },
645
+ {
646
+ id: "spirits",
647
+ color: 13214042,
648
+ opacity: 0.6,
649
+ stainColor: 10320959,
650
+ viscosity: 1.8,
651
+ density: 940,
652
+ dryTime: 200,
653
+ gloss: 0.85,
654
+ flammable: true,
655
+ drink: {
656
+ thirst: 5,
657
+ effects: [
658
+ "alcohol"
659
+ ]
660
+ },
661
+ tags: [
662
+ "drink",
663
+ "alcohol"
664
+ ]
665
+ },
666
+ {
667
+ id: "fuel",
668
+ color: 14926682,
669
+ opacity: 0.6,
670
+ stainColor: 7232298,
671
+ viscosity: 0.6,
672
+ density: 740,
673
+ dryTime: 60,
674
+ gloss: 0.95,
675
+ leavesMark: false,
676
+ flammable: true,
677
+ drink: {
678
+ thirst: 0,
679
+ effects: [
680
+ "poison"
681
+ ]
682
+ },
683
+ tags: [
684
+ "fuel",
685
+ "gasoline"
686
+ ]
687
+ },
688
+ {
689
+ id: "diesel",
690
+ color: 12098094,
691
+ opacity: 0.8,
692
+ stainColor: 5917208,
693
+ viscosity: 3,
694
+ density: 830,
695
+ dryTime: 3600,
696
+ gloss: 0.95,
697
+ leavesMark: true,
698
+ flammable: true,
699
+ drink: {
700
+ thirst: 0,
701
+ effects: [
702
+ "poison"
703
+ ]
704
+ },
705
+ tags: [
706
+ "fuel"
707
+ ]
708
+ },
709
+ {
710
+ id: "motor_oil",
711
+ color: 3877388,
712
+ opacity: 0.95,
713
+ stainColor: 1840134,
714
+ viscosity: 100,
715
+ density: 880,
716
+ dryTime: 0,
717
+ gloss: 1,
718
+ leavesMark: true,
719
+ flammable: true,
720
+ drink: {
721
+ thirst: 0,
722
+ effects: [
723
+ "poison"
724
+ ]
725
+ },
726
+ tags: [
727
+ "oil"
728
+ ]
729
+ },
730
+ {
731
+ id: "cooking_oil",
732
+ color: 14267708,
733
+ opacity: 0.85,
734
+ stainColor: 11110698,
735
+ viscosity: 60,
736
+ density: 920,
737
+ dryTime: 0,
738
+ gloss: 1,
739
+ leavesMark: true,
740
+ flammable: true,
741
+ drink: {
742
+ thirst: 0,
743
+ effects: [
744
+ "poison"
745
+ ]
746
+ },
747
+ tags: [
748
+ "oil",
749
+ "food"
750
+ ]
751
+ },
752
+ {
753
+ id: "blood",
754
+ color: 7997964,
755
+ opacity: 0.92,
756
+ stainColor: 3874068,
757
+ viscosity: 4,
758
+ density: 1060,
759
+ dryTime: 600,
760
+ gloss: 0.75,
761
+ leavesMark: true,
762
+ drink: {
763
+ thirst: 10,
764
+ effects: [
765
+ "disgust"
766
+ ]
767
+ },
768
+ tags: [
769
+ "organic"
770
+ ]
771
+ },
772
+ {
773
+ id: "old_blood",
774
+ color: 7085078,
775
+ opacity: 0.92,
776
+ stainColor: 2758158,
777
+ viscosity: 4,
778
+ density: 1060,
779
+ dryTime: 360,
780
+ gloss: 0.7,
781
+ leavesMark: true,
782
+ drink: {
783
+ thirst: 10,
784
+ effects: [
785
+ "disgust"
786
+ ]
787
+ },
788
+ tags: [
789
+ "organic"
790
+ ]
791
+ },
792
+ {
793
+ id: "bile",
794
+ color: 9083434,
795
+ opacity: 0.9,
796
+ stainColor: 4080160,
797
+ viscosity: 6,
798
+ density: 1020,
799
+ dryTime: 900,
800
+ gloss: 0.75,
801
+ leavesMark: true,
802
+ drink: {
803
+ thirst: 0,
804
+ effects: [
805
+ "disgust"
806
+ ]
807
+ },
808
+ tags: [
809
+ "organic"
810
+ ]
811
+ },
812
+ {
813
+ id: "sap",
814
+ color: 13146940,
815
+ opacity: 0.8,
816
+ stainColor: 10122282,
817
+ viscosity: 200,
818
+ density: 1100,
819
+ dryTime: 3600,
820
+ gloss: 0.8,
821
+ leavesMark: true,
822
+ drink: {
823
+ thirst: 20,
824
+ effects: []
825
+ },
826
+ tags: [
827
+ "organic",
828
+ "sticky"
829
+ ]
830
+ },
831
+ {
832
+ id: "acid",
833
+ color: 10146378,
834
+ opacity: 0.6,
835
+ stainColor: 7313970,
836
+ viscosity: 1.5,
837
+ density: 1200,
838
+ dryTime: 900,
839
+ gloss: 0.9,
840
+ leavesMark: true,
841
+ drink: {
842
+ thirst: 0,
843
+ effects: [
844
+ "poison"
845
+ ]
846
+ },
847
+ tags: [
848
+ "corrosive"
849
+ ]
850
+ },
851
+ {
852
+ id: "paint",
853
+ color: 11740715,
854
+ opacity: 0.98,
855
+ stainColor: 9050655,
856
+ viscosity: 300,
857
+ density: 1300,
858
+ dryTime: 1800,
859
+ gloss: 0.6,
860
+ leavesMark: true,
861
+ drink: {
862
+ thirst: 0,
863
+ effects: [
864
+ "poison"
865
+ ]
866
+ },
867
+ tags: [
868
+ "paint"
869
+ ]
870
+ },
871
+ {
872
+ id: "bleach",
873
+ color: 15134688,
874
+ opacity: 0.7,
875
+ stainColor: 13621446,
876
+ viscosity: 1.2,
877
+ density: 1100,
878
+ dryTime: 900,
879
+ gloss: 0.85,
880
+ leavesMark: true,
881
+ drink: {
882
+ thirst: 0,
883
+ effects: [
884
+ "poison"
885
+ ]
886
+ },
887
+ tags: [
888
+ "corrosive"
889
+ ]
890
+ },
891
+ {
892
+ id: "sewage",
893
+ color: 5921582,
894
+ opacity: 0.92,
895
+ stainColor: 3093273,
896
+ viscosity: 4,
897
+ density: 1010,
898
+ dryTime: 1800,
899
+ gloss: 0.8,
900
+ leavesMark: true,
901
+ drink: {
902
+ thirst: 0,
903
+ effects: [
904
+ "disgust",
905
+ "poison"
906
+ ]
907
+ },
908
+ tags: [
909
+ "organic",
910
+ "waste"
911
+ ]
912
+ },
913
+ {
914
+ id: "honey",
915
+ color: 14193162,
916
+ opacity: 0.9,
917
+ stainColor: 12089350,
918
+ viscosity: 3e3,
919
+ density: 1420,
920
+ dryTime: 14400,
921
+ gloss: 0.95,
922
+ leavesMark: true,
923
+ drink: {
924
+ thirst: 10,
925
+ effects: []
926
+ },
927
+ tags: [
928
+ "drink",
929
+ "sticky"
930
+ ]
931
+ },
932
+ {
933
+ id: "mud",
934
+ color: 4008988,
935
+ opacity: 0.95,
936
+ stainColor: 3811866,
937
+ viscosity: 40,
938
+ density: 1600,
939
+ dryTime: 900,
940
+ gloss: 0.4,
941
+ tags: [
942
+ "dirty"
943
+ ]
944
+ },
945
+ {
946
+ id: "coolant",
947
+ color: 3455050,
948
+ opacity: 0.7,
949
+ stainColor: 2783796,
950
+ viscosity: 4,
951
+ density: 1070,
952
+ dryTime: 1200,
953
+ gloss: 0.85,
954
+ leavesMark: true,
955
+ drink: {
956
+ thirst: 0,
957
+ effects: [
958
+ "poison"
959
+ ]
960
+ },
961
+ tags: [
962
+ "coolant"
963
+ ]
964
+ },
965
+ {
966
+ id: "brake_fluid",
967
+ color: 13145646,
968
+ opacity: 0.8,
969
+ stainColor: 9069600,
970
+ viscosity: 8,
971
+ density: 1050,
972
+ dryTime: 3600,
973
+ gloss: 0.9,
974
+ leavesMark: true,
975
+ drink: {
976
+ thirst: 0,
977
+ effects: [
978
+ "poison"
979
+ ]
980
+ },
981
+ tags: [
982
+ "brake_fluid"
983
+ ]
984
+ }
985
+ ];
986
+ var LIQUIDS = liquids_default;
987
+ var SAMPLES = 16;
988
+ var COS = [];
989
+ var SIN = [];
990
+ for (let i = 0; i < SAMPLES; i++) {
991
+ COS.push(Math.cos(i / SAMPLES * Math.PI * 2));
992
+ SIN.push(Math.sin(i / SAMPLES * Math.PI * 2));
993
+ }
994
+ var RUNOFF_TILT = 6 * Math.PI / 180;
995
+ var RUNOFF_TILT_MAX = 60 * Math.PI / 180;
996
+ function hashCell(x, y) {
997
+ let value = x * 374761393 + y * 668265263 | 0;
998
+ value = (value ^ value >>> 13) * 1274126177 | 0;
999
+ return ((value ^ value >>> 16) >>> 0) / 4294967296;
1000
+ }
1001
+ function valueNoise(x, y) {
1002
+ const xi = Math.floor(x);
1003
+ const yi = Math.floor(y);
1004
+ const xf = x - xi;
1005
+ const yf = y - yi;
1006
+ const u = xf * xf * (3 - 2 * xf);
1007
+ const v = yf * yf * (3 - 2 * yf);
1008
+ const a = hashCell(xi, yi);
1009
+ const b = hashCell(xi + 1, yi);
1010
+ const c = hashCell(xi, yi + 1);
1011
+ const d = hashCell(xi + 1, yi + 1);
1012
+ return a + (b - a) * u + (c - a) * v + (a - b - c + d) * u * v;
1013
+ }
1014
+ var REGION_NAMES = ["wall", "sidewalk", "curb", "road"];
1015
+ var dot3 = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
1016
+ function impactOf(region, position, velocity, cellSize) {
1017
+ const local = [position[0] - region.origin[0], position[1] - region.origin[1], position[2] - region.origin[2]];
1018
+ return {
1019
+ row: region.firstRow + dot3(local, region.rowAxis) / cellSize,
1020
+ column: dot3(local, region.columnAxis) / cellSize,
1021
+ along: [dot3(velocity, region.columnAxis), dot3(velocity, region.rowAxis)],
1022
+ normalSpeed: -dot3(velocity, region.normal)
1023
+ };
1024
+ }
1025
+ function cellToWorldOf(regions, cellSize, row, column) {
1026
+ let region = regions[regions.length - 1];
1027
+ for (const candidate of regions) {
1028
+ if (row < candidate.firstRow + candidate.rowCount) {
1029
+ region = candidate;
1030
+ break;
1031
+ }
1032
+ }
1033
+ const across = column * cellSize;
1034
+ const down = (row - region.firstRow) * cellSize;
1035
+ return [
1036
+ region.origin[0] + region.columnAxis[0] * across + region.rowAxis[0] * down,
1037
+ region.origin[1] + region.columnAxis[1] * across + region.rowAxis[1] * down,
1038
+ region.origin[2] + region.columnAxis[2] * across + region.rowAxis[2] * down
1039
+ ];
1040
+ }
1041
+ function createFoldedLayout(params) {
1042
+ const { columns, cellSize, originX, wallRows, sidewalkRows, curbRows, roadRows, wallTopY, sidewalkY, roadY, wallZ, rules } = params;
1043
+ const curbStep = params.curbStep ?? (sidewalkY - roadY) / curbRows;
1044
+ const height = wallRows + sidewalkRows + curbRows + roadRows;
1045
+ const cellCount = columns * height;
1046
+ const bed = new Float32Array(cellCount);
1047
+ const pin = new Float32Array(cellCount);
1048
+ const vertical = new Float32Array(cellCount);
1049
+ const sidewalkEnd = wallRows + sidewalkRows;
1050
+ const curbEnd = sidewalkEnd + curbRows;
1051
+ const regionOfRow = (row) => row < wallRows ? 0 : row < sidewalkEnd ? 1 : row < curbEnd ? 2 : 3;
1052
+ for (let row = 0; row < height; row++) {
1053
+ for (let column = 0; column < columns; column++) {
1054
+ const index = row * columns + column;
1055
+ const region = regionOfRow(row);
1056
+ const x = originX + (column + 0.5) * cellSize;
1057
+ let bedHeight;
1058
+ let roughness = 0.2;
1059
+ if (region === 0) {
1060
+ bedHeight = (wallTopY - (row + 0.5) * cellSize) * 1e3;
1061
+ roughness = 0.3;
1062
+ } else if (region === 1) {
1063
+ const z = (row - wallRows + 0.5) * cellSize;
1064
+ bedHeight = sidewalkY * 1e3 - z * 6;
1065
+ const jointX = Math.abs(((x - originX) % 0.5 + 0.5) % 0.5 - 0.25);
1066
+ const jointZ = Math.abs((z % 0.5 + 0.5) % 0.5 - 0.25);
1067
+ if (jointX > 0.25 - cellSize * 0.6 || jointZ > 0.25 - cellSize * 0.6) bedHeight -= 0.9;
1068
+ roughness = 0.18;
1069
+ } else if (region === 2) {
1070
+ bedHeight = sidewalkY * 1e3 - (row - sidewalkEnd + 0.5) * curbStep * 1e3;
1071
+ } else {
1072
+ const z = (row - curbEnd + 0.5) * cellSize;
1073
+ bedHeight = roadY * 1e3 + z * 14 - (x - params.roadSlopeAnchorX) * 5;
1074
+ roughness = 0.55;
1075
+ }
1076
+ const noise = valueNoise(column * 0.35, row * 0.35) * 0.6 + valueNoise(column * 1.3, row * 1.3) * 0.4;
1077
+ bed[index] = bedHeight + (noise - 0.5) * roughness * 2;
1078
+ vertical[index] = region === 0 || region === 2 ? 0.95 : 1;
1079
+ pin[index] = 0.62 + 0.76 * (valueNoise(column * 0.21 + 40, row * 0.21) * 0.5 + hashCell(column, row) * 0.5) * (region === 3 ? 1.25 : 1);
1080
+ }
1081
+ }
1082
+ const curbZ = wallZ + sidewalkRows * cellSize;
1083
+ const roadEndZ = curbZ + roadRows * cellSize;
1084
+ const right = [1, 0, 0];
1085
+ const regions = [
1086
+ { id: REGION_NAMES[0], firstRow: 0, rowCount: wallRows, origin: [originX, wallTopY, wallZ], columnAxis: right, rowAxis: [0, -1, 0], normal: [0, 0, 1], isVertical: true },
1087
+ { id: REGION_NAMES[1], firstRow: wallRows, rowCount: sidewalkRows, origin: [originX, sidewalkY, wallZ], columnAxis: right, rowAxis: [0, 0, 1], normal: [0, 1, 0], isVertical: false },
1088
+ { id: REGION_NAMES[2], firstRow: sidewalkEnd, rowCount: curbRows, origin: [originX, sidewalkY, curbZ], columnAxis: right, rowAxis: [0, -1, 0], normal: [0, 0, 1], isVertical: true },
1089
+ { id: REGION_NAMES[3], firstRow: curbEnd, rowCount: roadRows, origin: [originX, roadY, curbZ], columnAxis: right, rowAxis: [0, 0, 1], normal: [0, 1, 0], isVertical: false }
1090
+ ];
1091
+ const maxX = originX + columns * cellSize;
1092
+ return {
1093
+ id: params.id,
1094
+ width: columns,
1095
+ height,
1096
+ cellSize,
1097
+ bed,
1098
+ pin,
1099
+ vertical,
1100
+ regions,
1101
+ rules,
1102
+ cellToWorld: (row, column) => cellToWorldOf(regions, cellSize, row, column),
1103
+ collide(previous, position) {
1104
+ if (position[2] <= wallZ && position[1] > sidewalkY) {
1105
+ position[2] = wallZ;
1106
+ return 0;
1107
+ }
1108
+ if (position[2] < curbZ && (!rules.guardBehindWall || position[2] >= wallZ) && position[1] <= sidewalkY) {
1109
+ position[1] = sidewalkY;
1110
+ return 1;
1111
+ }
1112
+ if (rules.curbCatch && position[2] >= curbZ && previous[2] < curbZ && position[1] < sidewalkY) {
1113
+ position[2] = curbZ;
1114
+ return 2;
1115
+ }
1116
+ if (position[2] >= curbZ && position[1] <= roadY) {
1117
+ position[1] = roadY;
1118
+ return 3;
1119
+ }
1120
+ return -1;
1121
+ },
1122
+ impact: (region, position, velocity) => impactOf(regions[region], position, velocity, cellSize),
1123
+ contains: (position) => position[0] > originX && position[0] < maxX && (!rules.clipRoadEnd || position[2] < roadEndZ),
1124
+ escaped(position) {
1125
+ if (position[1] < -1) return true;
1126
+ const box = rules.escapeBox;
1127
+ return box !== void 0 && (position[0] < box.minX || position[0] > box.maxX || position[2] > box.maxZ);
1128
+ }
1129
+ };
1130
+ }
1131
+ var PADRAO_CELL = 0.0125;
1132
+ var PADRAO_WALL_Z = 0;
1133
+ var PADRAO_LAYOUT = createFoldedLayout({
1134
+ id: "padrao",
1135
+ columns: 256,
1136
+ cellSize: PADRAO_CELL,
1137
+ originX: -1.6,
1138
+ wallRows: 144,
1139
+ sidewalkRows: 128,
1140
+ curbRows: 12,
1141
+ roadRows: 112,
1142
+ wallTopY: 1.95,
1143
+ sidewalkY: 0.15,
1144
+ roadY: 0,
1145
+ wallZ: PADRAO_WALL_Z,
1146
+ curbStep: PADRAO_CELL,
1147
+ roadSlopeAnchorX: 0,
1148
+ rules: {
1149
+ dropCapacity: 600,
1150
+ curbCatch: true,
1151
+ guardBehindWall: true,
1152
+ clipRoadEnd: true,
1153
+ escapeBox: { minX: -3, maxX: 3, maxZ: PADRAO_WALL_Z + 128 * PADRAO_CELL + 112 * PADRAO_CELL + 1 },
1154
+ dripStyle: "padrao"
1155
+ }
1156
+ });
1157
+ var WORKSHOP_CELL = 0.0125;
1158
+ var WORKSHOP_LAYOUT = createFoldedLayout({
1159
+ id: "workshop",
1160
+ columns: 160,
1161
+ cellSize: WORKSHOP_CELL,
1162
+ originX: -2.2,
1163
+ wallRows: 160,
1164
+ sidewalkRows: 128,
1165
+ curbRows: 9,
1166
+ roadRows: 151,
1167
+ wallTopY: 2.12,
1168
+ sidewalkY: 0.1235,
1169
+ roadY: 9e-3,
1170
+ wallZ: -4.497,
1171
+ roadSlopeAnchorX: -1.2,
1172
+ rules: { dropCapacity: 400, curbCatch: false, guardBehindWall: false, clipRoadEnd: false, dripStyle: "workshop" }
1173
+ });
340
1174
 
341
1175
  // ../game-items-goods/dist/index.js
342
1176
  var FLOORPLAN_POOL_KEYS = {
@@ -13954,6 +14788,12 @@ var GameInteractablesHousehold = (() => {
13954
14788
  impact: {
13955
14789
  response: "dent",
13956
14790
  pushImpulse: true
14791
+ },
14792
+ use: {
14793
+ clip: "use_hygiene",
14794
+ sounds: [
14795
+ "scrub"
14796
+ ]
13957
14797
  }
13958
14798
  }
13959
14799
  }
@@ -17541,6 +18381,22 @@ var GameInteractablesHousehold = (() => {
17541
18381
  items: [
17542
18382
  "alcohol_70",
17543
18383
  "povidone_iodine"
18384
+ ],
18385
+ params: {
18386
+ clip: "apply_dressing"
18387
+ }
18388
+ },
18389
+ {
18390
+ id: "wash",
18391
+ effect: "wash",
18392
+ consumes: false,
18393
+ items: [
18394
+ "soap",
18395
+ "shampoo",
18396
+ "toothpaste",
18397
+ "toothbrush",
18398
+ "deodorant",
18399
+ "towel"
17544
18400
  ]
17545
18401
  },
17546
18402
  {
@@ -18863,6 +19719,29 @@ var GameInteractablesHousehold = (() => {
18863
19719
  "kind.hygiene.description": "Sabonete, pasta de dente, papel higi\xEAnico e toalha."
18864
19720
  };
18865
19721
  var GOODS_STRINGS = { en: en_default, "pt-BR": pt_BR_default };
19722
+ var drinkHydrationOf = (item, liquids = LIQUIDS) => {
19723
+ const fluid = item.fluid;
19724
+ const drink = fluid ? liquids.find((liquid) => liquid.id === fluid.liquid)?.drink : void 0;
19725
+ if (!fluid || !drink) return void 0;
19726
+ const doses = item.durability?.kind === "doses" ? Math.max(1, item.durability.amount ?? 1) : 1;
19727
+ return drink.thirst * fluid.liters / doses;
19728
+ };
19729
+ var createGoodsItemUse = (options = {}) => {
19730
+ const kinds = options.kinds ?? createGoodsKinds();
19731
+ const effects = options.effects ?? GOODS_USE_EFFECTS;
19732
+ const liquids = options.liquids ?? LIQUIDS;
19733
+ return (item) => {
19734
+ if (item.kind === void 0 || !kinds.has(item.kind)) return void 0;
19735
+ const result = resolveUse(item, effects);
19736
+ const { clip: effectClip, ...params } = result?.params ?? {};
19737
+ const clip = typeof effectClip === "string" ? effectClip : resolveEntry(kinds, item).use?.clip;
19738
+ if (clip === void 0) return void 0;
19739
+ if (!result) return { clip, consumes: false };
19740
+ const nutrition = result.nutrition ? { satiety: result.nutrition.satiety, hydration: drinkHydrationOf(item, liquids) ?? result.nutrition.hydration } : {};
19741
+ return { clip, consumes: result.consumes, effect: { id: result.effect, ...Object.keys(params).length > 0 ? { params } : {}, ...nutrition } };
19742
+ };
19743
+ };
19744
+ var goodsItemUse = createGoodsItemUse();
18866
19745
 
18867
19746
  // src/destruction.ts
18868
19747
  var door = (material, joint = "hinge", piece2 = "door") => ({ material, joint, piece: piece2 });
@@ -18874,6 +19753,7 @@ var GameInteractablesHousehold = (() => {
18874
19753
  var fridgeLike = { body: { material: "steel", joint: "weld" }, parts: [[/^door/, door("steel")]] };
18875
19754
  var bin = { body: { material: "plastic", joint: "fused" }, parts: [["lid", door("plastic", "hinge", "lid")]] };
18876
19755
  var upholstery = { material: "fabric", joint: "glue" };
19756
+ var POLE_CAGE = { material: "steel", spacing: 0.1, diameter: 0.01 };
18877
19757
  var DESTRUCTION = {
18878
19758
  fridge: fridgeLike,
18879
19759
  fridge_compact: fridgeLike,
@@ -18899,7 +19779,8 @@ var GameInteractablesHousehold = (() => {
18899
19779
  },
18900
19780
  wall_socket: { body: { material: "plastic", joint: "screw" }, parts: [] },
18901
19781
  wall_switch: { body: { material: "plastic", joint: "screw" }, parts: [["rocker", { material: "plastic", joint: "clip", piece: "rocker" }]] },
18902
- service_entrance: { body: { material: "steel", joint: "bolt" }, parts: [["meter_door", door("steel")]] },
19782
+ // a cast concrete pole (NBR 8451: CA-50 bars in the concrete), its segments held by the bars; the meter box, the cross arm and the bracket are bolted to it
19783
+ service_entrance: { body: { material: "concrete", joint: "rebar", reinforcement: POLE_CAGE }, parts: [["meter_door", door("steel")]] },
18903
19784
  conduit_run: { body: { material: "plastic", joint: "clip" }, parts: [] },
18904
19785
  service_mast: { body: { material: "steel", joint: "clip" }, parts: [] },
18905
19786
  electrical_panel: {
@@ -19034,6 +19915,10 @@ var GameInteractablesHousehold = (() => {
19034
19915
  }
19035
19916
  } else if (p.kind === "leaf") {
19036
19917
  out.push([p.x, p.y, p.z], [p.x, p.y + p.h, p.z]);
19918
+ } else if (p.kind === "lathe") {
19919
+ const r = Math.max(...p.points.map((q) => q[0]));
19920
+ const ys = p.points.map((q) => q[1]);
19921
+ for (const sx of [-1, 1]) for (const y of [Math.min(...ys), Math.max(...ys)]) for (const sz of [-1, 1]) out.push([p.x + sx * r, p.y + y, p.z + sz * r]);
19037
19922
  } else {
19038
19923
  out.push([p.x, p.y, p.z]);
19039
19924
  }
@@ -19144,6 +20029,21 @@ var GameInteractablesHousehold = (() => {
19144
20029
  this.track({ kind: "cylinder", M: this.M, material: m, x, y, z, r, h, color, rx, rz, shape });
19145
20030
  this.api.cylinder(this.M, m, x - o[0], y - o[1], z - o[2], r, h, color, rx, rz, shape);
19146
20031
  }
20032
+ /**
20033
+ * A solid of revolution round the vertical axis through (x, z): its closed profile `points` (`[r, y]`, y from `y`) goes up outside and down inside for a hollow
20034
+ * piece (a toilet bowl, a seat ring), so both faces show and what is inside is open. A host without lathes draws the cylinder round it.
20035
+ */
20036
+ lathe(m, x, y, z, points, color) {
20037
+ const o = this.off;
20038
+ this.track({ kind: "lathe", M: this.M, material: m, x, y, z, points, color });
20039
+ if (this.api.lathe) {
20040
+ this.api.lathe(this.M, m, x - o[0], y - o[1], z - o[2], points, color);
20041
+ return;
20042
+ }
20043
+ const ys = points.map((q) => q[1]);
20044
+ const lo = Math.min(...ys);
20045
+ this.api.cylinder(this.M, m, x - o[0], y + lo - o[1], z - o[2], Math.max(...points.map((q) => q[0])), Math.max(...ys) - lo, color, 0, 0);
20046
+ }
19147
20047
  /** Cylinder lying along x (`axis` 'x') or z (`axis` 'z'), centered at (x, y, z), length `len`. */
19148
20048
  rod(m, axis, x, y, z, r, len, color, shape) {
19149
20049
  if (axis === "x") this.cyl(m, x, y, z, r, len, color, shape, 0, Math.PI / 2);
@@ -19273,7 +20173,7 @@ var GameInteractablesHousehold = (() => {
19273
20173
  this.collider("body", -this.hw, this.y0, -this.hd, this.hw, this.y0 + this.h, this.hd);
19274
20174
  }
19275
20175
  const body = DESTRUCTION[this.type]?.body;
19276
- if (body && !this.spec.destruction) this.spec.destruction = { ...body };
20176
+ if (body && !this.spec.destruction) this.spec.destruction = body.reinforcement ? { ...body, reinforcement: { ...body.reinforcement } } : { ...body };
19277
20177
  for (const k of Object.keys(s)) if (Array.isArray(s[k]) && s[k].length === 0) delete s[k];
19278
20178
  return this.spec;
19279
20179
  }
@@ -20690,7 +21590,8 @@ var GameInteractablesHousehold = (() => {
20690
21590
  h: 0.7,
20691
21591
  y: 1.4,
20692
21592
  solid: true,
20693
- massKg: 15
21593
+ massKg: 15,
21594
+ fixed: true
20694
21595
  },
20695
21596
  {
20696
21597
  id: "pantry",
@@ -20775,7 +21676,8 @@ var GameInteractablesHousehold = (() => {
20775
21676
  h: 1.2,
20776
21677
  y: 0,
20777
21678
  solid: true,
20778
- massKg: 40
21679
+ massKg: 40,
21680
+ fixed: true
20779
21681
  },
20780
21682
  {
20781
21683
  id: "sink_bathroom",
@@ -20785,7 +21687,8 @@ var GameInteractablesHousehold = (() => {
20785
21687
  h: 1.05,
20786
21688
  y: 0,
20787
21689
  solid: true,
20788
- massKg: 25
21690
+ massKg: 25,
21691
+ fixed: true
20789
21692
  },
20790
21693
  {
20791
21694
  id: "shower",
@@ -20795,7 +21698,8 @@ var GameInteractablesHousehold = (() => {
20795
21698
  h: 2.1,
20796
21699
  y: 0,
20797
21700
  solid: true,
20798
- massKg: 90
21701
+ massKg: 90,
21702
+ fixed: true
20799
21703
  },
20800
21704
  {
20801
21705
  id: "toilet",
@@ -20805,7 +21709,8 @@ var GameInteractablesHousehold = (() => {
20805
21709
  h: 0.8,
20806
21710
  y: 0,
20807
21711
  solid: true,
20808
- massKg: 30
21712
+ massKg: 30,
21713
+ fixed: true
20809
21714
  },
20810
21715
  {
20811
21716
  id: "utility_sink",
@@ -20815,7 +21720,8 @@ var GameInteractablesHousehold = (() => {
20815
21720
  h: 1.2,
20816
21721
  y: 0,
20817
21722
  solid: true,
20818
- massKg: 25
21723
+ massKg: 25,
21724
+ fixed: true
20819
21725
  },
20820
21726
  {
20821
21727
  id: "wall_socket",
@@ -20845,7 +21751,8 @@ var GameInteractablesHousehold = (() => {
20845
21751
  h: 6.5,
20846
21752
  y: 0,
20847
21753
  solid: true,
20848
- massKg: 60
21754
+ massKg: 320,
21755
+ fixed: true
20849
21756
  },
20850
21757
  {
20851
21758
  id: "service_mast",
@@ -21466,8 +22373,12 @@ var GameInteractablesHousehold = (() => {
21466
22373
  const mx = 0.19;
21467
22374
  const my = 1.45;
21468
22375
  const mz = 0.14;
21469
- c.b("metal", -mx, my, mz - 0.06, mx, my + 0.5, mz + 0.06, 9080466);
21470
- c.b("plain", -mx + 0.02, my + 0.02, mz + 0, mx - 0.02, my + 0.48, mz + 0.06, 13948630);
22376
+ c.b("metal", -mx, my, mz - 0.06, mx, my + 0.5, mz, 9080466);
22377
+ c.b("metal", -mx, my, mz, mx, my + 0.02, mz + 0.06, 9080466);
22378
+ c.b("metal", -mx, my + 0.48, mz, mx, my + 0.5, mz + 0.06, 9080466);
22379
+ c.b("metal", -mx, my + 0.02, mz, -mx + 0.02, my + 0.48, mz + 0.06, 9080466);
22380
+ c.b("metal", mx - 0.02, my + 0.02, mz, mx, my + 0.48, mz + 0.06, 9080466);
22381
+ c.b("plain", -mx + 0.02, my + 0.02, mz, mx - 0.02, my + 0.48, mz + 3e-3, 13948630);
21471
22382
  c.cyl("plain", 0, my + 0.28, mz + 0.03, 0.09, 0.02, 15921904, "cyl");
21472
22383
  c.rod("plain", "z", 0, my + 0.28, mz + 0.045, 0.07, 4e-3, 15263968);
21473
22384
  for (let i = 0; i < 4; i++) c.b("plain", -0.06 + i * 0.03, my + 0.34, mz + 0.047, -0.04 + i * 0.03, my + 0.37, mz + 0.05, 2763306);
@@ -21565,11 +22476,11 @@ var GameInteractablesHousehold = (() => {
21565
22476
  const sh = shell(c, { x0: -hw, x1: hw, y0: y0 + 0.012, y1, z0: -hd, z1: zb, color: body, inner: 15264492, t: 0.014, tBack: 0.012, material: "plain" });
21566
22477
  for (const sx of [-1, 1]) c.b("plain", sx * (hw - 0.04) - 0.02, y0, -hd + 0.04, sx * (hw - 0.04) + 0.02, y0 + 0.012, zb - 0.04, 2763308);
21567
22478
  const px = hw * 0.55;
21568
- c.b("plain", px, y0 + 0.012, zb - 2e-3, hw - 0.014, y1 - 0.014, zf, shade(body, 0.7));
21569
- c.cyl("metal", (sh.ix0 + px) / 2, y0 + 0.026, (sh.iz0 + zb) / 2, 0.14, 0.012, 13623526, "cyl");
21570
- c.cyl("plain", (sh.ix0 + px) / 2, y0 + 0.014, (sh.iz0 + zb) / 2, 0.03, 0.012, 8948364, "cyl6");
22479
+ c.b("plain", px, y0 + 0.014, zb, hw - 0.014, y1 - 0.016, zf, shade(body, 0.7));
22480
+ c.cyl("metal", (sh.ix0 + px) / 2, sh.iy0 + 2e-3, (sh.iz0 + zb) / 2, 0.14, 0.012, 13623526, "cyl");
22481
+ c.cyl("plain", (sh.ix0 + px) / 2, sh.iy0 - 6e-3, (sh.iz0 + zb) / 2, 0.03, 8e-3, 8948364, "cyl6");
21571
22482
  for (let i = 0; i < 6; i++) c.b("plain", px + 0.02, y1 - 0.06 - i * 0.034, zf, hw - 0.04, y1 - 0.04 - i * 0.034, zf + 4e-3, i === 5 ? 4885066 : 4869200);
21572
- c.b("plain", px + 0.02, y1 - 0.045, zf, hw - 0.04, y1 - 0.024, zf + 2e-3, 793104);
22483
+ c.b("plain", px + 0.02, y1 - 0.038, zf, hw - 0.04, y1 - 0.024, zf + 2e-3, 793104);
21573
22484
  hingedDoor(c, {
21574
22485
  id: "door",
21575
22486
  x0: sh.ix0 - 0.014 + 3e-3,
@@ -21629,10 +22540,10 @@ var GameInteractablesHousehold = (() => {
21629
22540
  [-R - 0.03, cy, dz],
21630
22541
  { kind: "hinge", axis: [0, 1, 0], angle: -1.7 },
21631
22542
  () => {
21632
- c.rod("plain", "z", 0, cy, dz + 0.02, R + 0.03, 0.04, 14869990);
21633
- c.rod("plain", "z", 0, cy, dz + 0.0405, R - 0.02, 1e-3, 9080466);
22543
+ c.rod("plain", "z", 0, cy, dz + 0.018, R + 0.03, 0.036, 14869990);
22544
+ c.rod("plain", "z", 0, cy, dz + 0.0375, R - 0.02, 3e-3, 9080466);
21634
22545
  c.rod("glass", "z", 0, cy, dz + 0.042, R - 0.035, 3e-3, 8296612);
21635
- c.b("plain", R - 0, cy - 0.04, dz + 0.02, R + 0.045, cy + 0.04, dz + 0.04, 13488338);
22546
+ c.b("plain", R - 0, cy - 0.04, dz + 0.02, R + 0.045, cy + 0.04, dz + 0.039, 13488338);
21636
22547
  },
21637
22548
  { label: "prompt.washing_door", at: [0, cy, dz + 0.06], radius: 1.3 }
21638
22549
  );
@@ -21750,7 +22661,7 @@ var GameInteractablesHousehold = (() => {
21750
22661
  var STOVE_WALL_GAP = 0.04;
21751
22662
  var STEEL = 11843772;
21752
22663
  var CHROME = 13817562;
21753
- function tap2(c, x, y, z, id, partId) {
22664
+ function tap2(c, x, y, z, id, partId, basin) {
21754
22665
  c.cyl("metal", x, y - 2e-3, z, 0.03, 0.022, STEEL, "cyl");
21755
22666
  c.cyl("metal", x, y + 0.02, z, 0.017, 0.19, CHROME, "cyl");
21756
22667
  c.cyl("metal", x, y + 0.2, z, 0.021, 0.02, STEEL, "cyl");
@@ -21769,7 +22680,7 @@ var GameInteractablesHousehold = (() => {
21769
22680
  );
21770
22681
  const outlet = [round3(x), round3(y + 0.185), round3(z + 0.18)];
21771
22682
  c.add("fixtures", { id, kind: "tap", outlet, dir: [0, -1, 0], flow: 7, part: partId, tank: "auto" });
21772
- c.add("emitters", { id: `${id}_water`, kind: "water", pos: outlet, dir: [0, -1, 0], source: id, size: 0.02, reach: 0.3 });
22683
+ c.add("emitters", { id: `${id}_water`, kind: "water", pos: outlet, dir: [0, -1, 0], source: id, size: 0.02, ...streamInto(basin, outlet) });
21773
22684
  c.interact(`use_${id}`, [round3(x + 0.05), round3(y + 0.126), round3(z)], { do: "toggle_fixture", fixture: id }, "prompt.tap", 1.3);
21774
22685
  return outlet;
21775
22686
  }
@@ -21797,7 +22708,7 @@ var GameInteractablesHousehold = (() => {
21797
22708
  c.b("plain", ox0 + 0.01, oy0 + 0.01, -hd + 0.03, ox1 - 0.01, oy1 - 0.01, -hd + 0.04, 7237490);
21798
22709
  for (const y of [0.28, 0.46]) c.b("metal", ox0 + 0.01, y, -hd + 0.04, ox1 - 0.01, y + 6e-3, zb - 0.03, 10133154);
21799
22710
  c.b("plain", -hw + 0.02, oy1 + 3e-3, zb, hw - 0.02, top, zf, body);
21800
- c.b("plain", -hw + 0.02, oy1 + 3e-3, zf - 4e-3, hw - 0.02, oy1 + 0.012, zf, shade(body, 0.8));
22711
+ c.b("plain", -hw + 0.02, oy1 + 5e-3, zf - 4e-3, hw - 0.02, oy1 + 0.012, zf + 2e-3, shade(body, 0.8));
21801
22712
  dropDoor(c, {
21802
22713
  id: "oven_door",
21803
22714
  x0: -hw + 0.012,
@@ -21814,7 +22725,7 @@ var GameInteractablesHousehold = (() => {
21814
22725
  label: "prompt.oven_door",
21815
22726
  extra: () => {
21816
22727
  c.b("plain", -hw + 0.07, 0.15, zf - 2e-3, hw - 0.07, 0.56, zf + 2e-3, shade(body, 0.8));
21817
- c.plane("glass", 0, 0.355, zf + 25e-4, c.w - 0.2, 0.36, 1842722);
22728
+ c.plane("glass", 0, 0.355, zf + 45e-4, c.w - 0.2, 0.36, 1842722);
21818
22729
  }
21819
22730
  });
21820
22731
  const bx = [-0.14, 0.14];
@@ -21834,7 +22745,7 @@ var GameInteractablesHousehold = (() => {
21834
22745
  c.cyl("metal", x, topY + 0.015, z, r * 0.4, 6e-3, 9079952, "cyl");
21835
22746
  for (const s of [-1, 1]) {
21836
22747
  c.b("metal", x - r - 0.03, topY + 0.02, z + s * r - 6e-3, x + r + 0.03, topY + 0.032, z + s * r + 6e-3, 2236964);
21837
- c.b("metal", x + s * r - 6e-3, topY + 0.02, z - r - 0.03, x + s * r + 6e-3, topY + 0.032, z + r + 0.03, 2236964);
22748
+ c.b("metal", x + s * r - 6e-3, topY + 0.018, z - r - 0.03, x + s * r + 6e-3, topY + 0.03, z + r + 0.03, 2236964);
21838
22749
  }
21839
22750
  const knobId = `knob_${n}`;
21840
22751
  const kx = knobXs[n - 1];
@@ -21881,7 +22792,7 @@ var GameInteractablesHousehold = (() => {
21881
22792
  c.b("metal", gr - 8e-3, H - 0.034, -gr + 8e-3, gr + 8e-3, H - 0.022, gr - 8e-3, shade(col, 0.7));
21882
22793
  c.cyl("metal", 0, H - 0.17, 0, 0.032, 0.1, 13148746, "cyl");
21883
22794
  c.cyl("metal", 0, H - 0.075, 0, 0.022, 0.03, 10255410, "cyl6");
21884
- c.b("metal", 0.02, H - 0.1, -0.012, 0.075, H - 0.07, 0.012, 11569716);
22795
+ c.b("metal", 0.02, H - 0.1, -0.012, 0.075, H - 0.072, 0.012, 11569716);
21885
22796
  c.part(
21886
22797
  "valve",
21887
22798
  [0, H - 0.045, 0],
@@ -21905,6 +22816,11 @@ var GameInteractablesHousehold = (() => {
21905
22816
  c.spec.colliders = [];
21906
22817
  c.collider("body", -R, 0, -R, R, H, R);
21907
22818
  }
22819
+ function streamInto(basin, outlet) {
22820
+ const [x, , z] = outlet;
22821
+ const radius = Math.max(0.01, Math.min(x - basin.from[0], basin.to[0] - x, z - basin.from[2], basin.to[2] - z));
22822
+ return { reach: round3(outlet[1] - basin.from[1]), bowl: { radius: round3(radius), depth: round3(basin.to[1] - basin.from[1]) } };
22823
+ }
21908
22824
  function counterWithBasin(c, o) {
21909
22825
  const { hw, hd } = c;
21910
22826
  const y0 = o.top - 0.04;
@@ -21929,10 +22845,16 @@ var GameInteractablesHousehold = (() => {
21929
22845
  c.b(mat, o.bx0 - 0.02, o.top, o.bz1, o.bx1 + 0.02, o.top + 4e-3, o.bz1 + 0.02, wall);
21930
22846
  c.b(mat, o.bx0 - 0.02, o.top, o.bz0, o.bx0, o.top + 4e-3, o.bz1, wall);
21931
22847
  c.b(mat, o.bx1, o.top, o.bz0, o.bx1 + 0.02, o.top + 4e-3, o.bz1, wall);
22848
+ const basin = { id: "basin", from: [round3(o.bx0), round3(yb + 0.01), round3(o.bz0)], to: [round3(o.bx1), round3(o.top), round3(o.bz1)] };
22849
+ c.add("basins", basin);
22850
+ return basin;
21932
22851
  }
21933
- function pipes(c, x, top, z) {
22852
+ var KITCHEN_BASIN_DEPTH = 0.2;
22853
+ var BATHROOM_BASIN_DEPTH = 0.14;
22854
+ var TAILPIECE_GAP = 2e-3;
22855
+ function pipes(c, x, bottom, z) {
21934
22856
  const wall = -c.hd + 2e-3;
21935
- c.cyl("metal", x, 0.2, z, 0.02, top - 0.2 - 0.12, 13159632, "cyl6");
22857
+ c.cyl("metal", x, 0.2, z, 0.02, bottom - 0.2 - TAILPIECE_GAP, 13159632, "cyl6");
21936
22858
  c.rod("plain", "x", x + 0.06, 0.2, z, 0.02, 0.14, 15263976, "cyl6");
21937
22859
  c.cyl("plain", x + 0.13, 0.07, z, 0.022, 0.15, 15263976, "cyl6");
21938
22860
  c.rod("plain", "z", x + 0.13, 0.09, (z + wall) / 2, 0.02, z - wall, 15263976, "cyl6");
@@ -21952,10 +22874,10 @@ var GameInteractablesHousehold = (() => {
21952
22874
  const bx1 = -hw * 0.05;
21953
22875
  const bz0 = -hd * 0.65;
21954
22876
  const bz1 = hd * 0.45;
21955
- counterWithBasin(c, { top, bx0, bx1, bz0, bz1, depth: 0.2, counter: 8157816, steel: true });
22877
+ const basin = counterWithBasin(c, { top, bx0, bx1, bz0, bz1, depth: KITCHEN_BASIN_DEPTH, counter: 8157816, steel: true });
21956
22878
  for (let i = 0; i < 7; i++) c.b("metal", bx1 + 0.06, top, bz0 + 0.04 + i * 0.07, hw - 0.06, top + 4e-3, bz0 + 0.052 + i * 0.07, 10133154);
21957
- tap2(c, (bx0 + bx1) / 2, top, -hd + 0.07, "tap", "tap_handle");
21958
- pipes(c, (bx0 + bx1) / 2, top, -hd + 0.17);
22879
+ tap2(c, (bx0 + bx1) / 2, top, -hd + 0.07, "tap", "tap_handle", basin);
22880
+ pipes(c, (bx0 + bx1) / 2, top - KITCHEN_BASIN_DEPTH, (bz0 + bz1) / 2);
21959
22881
  const mid = 15e-4;
21960
22882
  hingedDoor(c, { id: "door_1", x0: -hw + 3e-3, x1: -mid, y0: 0.103, y1: top - 0.043, zf, t, side: "left", color: front, inner: lining, handle: "bar_v", handleLen: 0.22, label: "prompt.door" });
21961
22883
  hingedDoor(c, { id: "door_2", x0: mid, x1: hw - 3e-3, y0: 0.103, y1: top - 0.043, zf, t, side: "right", color: front, inner: lining, handle: "bar_v", handleLen: 0.22, label: "prompt.door" });
@@ -21980,10 +22902,12 @@ var GameInteractablesHousehold = (() => {
21980
22902
  const zr = zf - t - 3e-3;
21981
22903
  const sh = shell(c, { x0: -hw, x1: hw, y0: 0.08, y1: top - 0.04, z0: -hd, z1: zr, color: body, inner: lining, t: 0.016, noTop: true, material: "plain" });
21982
22904
  c.b("plain", -hw + 0.01, 0, -hd + 0.03, hw - 0.01, 0.08, zr - 0.04, 3815478);
21983
- counterWithBasin(c, { top, bx0: -hw * 0.6, bx1: hw * 0.6, bz0: -hd * 0.5, bz1: hd * 0.55, depth: 0.14, counter: 15328474, steel: false });
22905
+ const bz0 = -hd * 0.5;
22906
+ const bz1 = hd * 0.55;
22907
+ const basin = counterWithBasin(c, { top, bx0: -hw * 0.6, bx1: hw * 0.6, bz0, bz1, depth: BATHROOM_BASIN_DEPTH, counter: 15328474, steel: false });
21984
22908
  c.b("plain", -hw, top, -hd, hw, top + 0.08, -hd + 0.015, 15328474);
21985
- tap2(c, 0, top, -hd + 0.07, "tap", "tap_handle");
21986
- pipes(c, 0, top, -hd + 0.17);
22909
+ tap2(c, 0, top, -hd + 0.07, "tap", "tap_handle", basin);
22910
+ pipes(c, 0, top - BATHROOM_BASIN_DEPTH, (bz0 + bz1) / 2);
21987
22911
  hingedDoor(c, { id: "door", x0: -hw + 3e-3, x1: hw - 3e-3, y0: 0.083, y1: top - 0.043, zf, t, side: c.M.hinge ?? "left", color: body, inner: lining, style: "flat", handle: "knob", label: "prompt.door" });
21988
22912
  c.container({
21989
22913
  id: "under_sink",
@@ -22013,7 +22937,9 @@ var GameInteractablesHousehold = (() => {
22013
22937
  c.b("plain", x0 + 0.03, tubTop - 0.278, z0 + 0.03, x1 - 0.03, tubTop - 0.276, z1 - 0.03, 15527662);
22014
22938
  c.cyl("metal", 0, tubTop - 0.276, 0, 0.035, 4e-3, 6975090, "cyl");
22015
22939
  c.b("plain", x0 + 0.04, tubTop - 0.27, z1 - 0.2, x0 + 0.04 + (x1 - x0) * 0.4, tubTop - 0.1, z1 - 0.06, 14343644, 0, 0.5);
22016
- tap2(c, 0, tubTop + 0.08, -hd + 0.08, "tap", "tap_handle");
22940
+ const tub = { id: "basin", from: [round3(x0 + 0.03), round3(tubTop - 0.276), round3(z0 + 0.03)], to: [round3(x1 - 0.03), tubTop, round3(z1 - 0.03)] };
22941
+ c.add("basins", tub);
22942
+ tap2(c, 0, tubTop + 0.08, -hd + 0.08, "tap", "tap_handle", tub);
22017
22943
  c.add("fixtures", { id: "basin", kind: "utility_sink", outlet: [0, round3(tubTop - 0.1), 0], dir: [0, -1, 0], flow: 12, tank: "auto" });
22018
22944
  }
22019
22945
  function shower(c) {
@@ -22025,15 +22951,15 @@ var GameInteractablesHousehold = (() => {
22025
22951
  for (let i = 0; i < 4; i++) c.b("plain", -0.04, 0.076, -0.03 + i * 0.02, 0.04, 0.078, -0.022 + i * 0.02, 6975090);
22026
22952
  c.b("plain", -hw, 0.07, -hd, hw, h, -hd + 0.03, tile);
22027
22953
  c.b("plain", -hw, 0.07, -hd + 0.03, -hw + 0.03, h, hd - 0.05, tile);
22954
+ const f = 0.02;
22028
22955
  for (let y = 0.4; y < h - 0.2; y += 0.3) {
22029
- c.b("plain", -hw + 0.03, y, -hd + 0.03, hw, y + 6e-3, -hd + 0.033, 12764872);
22956
+ c.b("plain", -hw + 0.03, y, -hd + 0.03, hw - f, y + 6e-3, -hd + 0.033, 12764872);
22030
22957
  c.b("plain", -hw + 0.03, y, -hd + 0.033, -hw + 0.033, y + 6e-3, hd - 0.05, 12764872);
22031
22958
  }
22032
- c.b("plain", -hw + 0.03, 1, -hd + 0.033, hw, 1.12, -hd + 0.036, 9086644);
22033
- const f = 0.02;
22034
- c.b("metal", -hw + 0.03, h - f, hd - 0.05, hw, h, hd, 12896460);
22959
+ c.b("plain", -hw + 0.03, 1, -hd + 0.033, hw - f, 1.12, -hd + 0.036, 9086644);
22960
+ c.b("metal", -hw + 0.03, h - f, hd - 0.05, hw - f, h, hd, 12896460);
22035
22961
  c.b("metal", hw - f, 0.07, -hd + 0.03, hw, h, hd, 12896460);
22036
- c.b("metal", -hw + 0.03, h - f, -hd + 0.03, hw, h, -hd + 0.03 + 1e-3, 12896460);
22962
+ c.b("metal", -hw + 0.03, h - f, -hd + 0.03, hw - f, h, -hd + 0.04, 12896460);
22037
22963
  const hy = 1.95;
22038
22964
  c.b("metal", -0.015, hy, -hd + 0.03, 0.015, hy + 0.02, -hd + 0.2, CHROME);
22039
22965
  c.cyl("metal", 0, hy - 0.02, -hd + 0.2, 0.075, 0.03, 15264492, "cyl");
@@ -22062,7 +22988,7 @@ var GameInteractablesHousehold = (() => {
22062
22988
  [dx1 - dw / 2, gy, zSlide],
22063
22989
  { kind: "slide", axis: [-1, 0, 0], distance: round3(dw - 0.06) },
22064
22990
  () => {
22065
- c.b("glass", dx1 - dw, gy, zSlide - 4e-3, dx1, gy + gh, zSlide + 4e-3, gl);
22991
+ c.b("glass", dx1 - dw + 2e-3, gy + 2e-3, zSlide - 4e-3, dx1 - 2e-3, gy + gh - 2e-3, zSlide + 4e-3, gl);
22066
22992
  c.b("metal", dx1 - dw, gy, zSlide - 8e-3, dx1, gy + 0.015, zSlide + 8e-3, 12896460);
22067
22993
  c.b("metal", dx1 - dw, gy + gh - 0.015, zSlide - 8e-3, dx1, gy + gh, zSlide + 8e-3, 12896460);
22068
22994
  c.b("metal", dx1 - dw, gy + gh * 0.45, zSlide + 4e-3, dx1 - dw + 0.02, gy + gh * 0.45 + 0.3, zSlide + 0.024, 12896460);
@@ -22076,31 +23002,45 @@ var GameInteractablesHousehold = (() => {
22076
23002
  c.collider("wall_back", -hw, 0, -hd, hw, h, -hd + 0.03);
22077
23003
  c.collider("wall_left", -hw, 0, -hd + 0.03, -hw + 0.03, h, hd - 0.05);
22078
23004
  }
23005
+ var FLUSH_TRAVEL = 8e-3;
23006
+ var BOWL_Z = 0.12;
23007
+ var BOWL_PROFILE = [
23008
+ [0, 0],
23009
+ [0.12, 0],
23010
+ [0.11, 0.16],
23011
+ [0.15, 0.24],
23012
+ [0.185, 0.31],
23013
+ [0.19, 0.36],
23014
+ [0.19, 0.4],
23015
+ [0.15, 0.4],
23016
+ [0.145, 0.37],
23017
+ [0.12, 0.32],
23018
+ [0.08, 0.28],
23019
+ [0.04, 0.255],
23020
+ [0, 0.25]
23021
+ ];
23022
+ var SEAT_PROFILE = [[0.135, 0.4], [0.2, 0.4], [0.2, 0.425], [0.135, 0.425], [0.135, 0.4]];
22079
23023
  function toilet(c) {
22080
23024
  const { hd } = c;
22081
23025
  const w = c.main(16053748);
22082
23026
  const sh = shade(w, 0.94);
22083
- c.cyl("plain", 0, 0, -0.02, 0.13, 0.28, sh, "cyl");
22084
- c.cyl("plain", 0, 0.2, 0.02, 0.19, 0.2, w, "sphere");
22085
- c.b("plain", -0.17, 0.36, -0.2, 0.17, 0.4, -0.02, w);
22086
- c.cyl("plain", 0, 0.36, 0.12, 0.19, 0.04, w, "cyl");
22087
- c.cyl("plain", 0, 0.395, 0.12, 0.14, 5e-3, 14674156, "cyl");
23027
+ c.lathe("plain", 0, 0, BOWL_Z, BOWL_PROFILE, w);
23028
+ c.b("plain", -0.17, 0.362, -0.2, 0.17, 0.398, -0.04, sh);
22088
23029
  const ty = 0.42;
22089
23030
  const th = 0.8 - ty - 0.025;
22090
23031
  c.b("plain", -0.19, ty, -hd, 0.19, ty + th, -hd + 0.2, w);
22091
23032
  c.b("plain", -0.195, ty + th, -hd - 0, 0.195, ty + th + 0.025, -hd + 0.205, sh);
22092
23033
  c.b("plain", -0.185, ty + 0.01, -hd + 0.2, 0.185, ty + 0.03, -hd + 0.215, sh);
22093
23034
  const seatY = 0.4;
22094
- c.cyl("plain", 0, seatY, 0.12, 0.2, 0.025, 15659248, "cyl");
22095
- c.cyl("plain", 0, seatY + 0.025, 0.12, 0.13, 2e-3, 14674156, "cyl");
22096
- c.b("plain", -0.17, seatY, -0.07, 0.17, seatY + 0.025, 0, 15659248);
23035
+ c.lathe("plain", 0, 0, BOWL_Z, SEAT_PROFILE, 15659248);
23036
+ c.b("plain", -0.17, seatY + 2e-3, -0.07, 0.17, seatY + 0.023, -0.03, 15659248);
22097
23037
  c.part(
22098
23038
  "lid",
22099
23039
  [0, seatY + 0.025, -0.06],
22100
23040
  { kind: "hinge", axis: [1, 0, 0], angle: -1.65 },
22101
23041
  () => {
22102
23042
  c.cyl("plain", 0, seatY + 0.027, 0.12, 0.2, 0.012, w, "cyl");
22103
- c.b("plain", -0.17, seatY + 0.027, -0.07, 0.17, seatY + 0.039, 0, w);
23043
+ c.b("plain", -0.17, seatY + 0.029, -0.07, 0.17, seatY + 0.037, 0, w);
22104
23044
  c.cyl("plain", 0, seatY + 0.039, 0.12, 0.17, 3e-3, shade(w, 1.02), "cyl");
22105
23045
  },
22106
23046
  { label: "prompt.toilet_lid", at: [0, seatY + 0.05, 0.14] }
@@ -22108,15 +23048,18 @@ var GameInteractablesHousehold = (() => {
22108
23048
  c.part(
22109
23049
  "flush_button",
22110
23050
  [0, ty + th + 0.025, -hd + 0.1],
22111
- { kind: "slide", axis: [0, -1, 0], distance: 0.012 },
23051
+ { kind: "slide", axis: [0, -1, 0], distance: FLUSH_TRAVEL },
22112
23052
  () => {
22113
23053
  c.cyl("metal", 0, ty + th + 0.025, -hd + 0.1, 0.04, 0.012, 13817562, "cyl");
22114
23054
  c.cyl("metal", 0, ty + th + 0.037, -hd + 0.1, 0.03, 2e-3, 15133422, "cyl");
22115
23055
  },
22116
23056
  { label: "prompt.flush", at: false, noSweep: true }
22117
23057
  );
22118
- c.add("fixtures", { id: "flush", kind: "flush", outlet: [0, 0.36, 0.12], dir: [0, -1, 0], volume: 6, part: "flush_button", tank: "auto" });
22119
- c.add("emitters", { id: "flush_water", kind: "water", pos: [0, 0.38, 0.12], dir: [0, -1, 0], source: "flush", size: 0.2, reach: 0.12 });
23058
+ c.add("fixtures", { id: "flush", kind: "flush", outlet: [0, 0.36, BOWL_Z], dir: [0, -1, 0], volume: 6, part: "flush_button", tank: "auto" });
23059
+ const bowl = { id: "bowl", from: [-0.12, 0.26, BOWL_Z - 0.12], to: [0.12, 0.36, BOWL_Z + 0.12], shape: "round" };
23060
+ c.add("basins", bowl);
23061
+ const rim = [0, 0.385, BOWL_Z];
23062
+ c.add("emitters", { id: "flush_water", kind: "water", pos: rim, dir: [0, -1, 0], source: "flush", size: 0.08, ...streamInto(bowl, rim) });
22120
23063
  c.interact("use_flush", [0, ty + th + 0.05, -hd + 0.1], { do: "toggle_fixture", fixture: "flush" }, "prompt.flush");
22121
23064
  c.add("damage", { target: "self", kind: "plastic", hp: 60 });
22122
23065
  }
@@ -22305,7 +23248,7 @@ var GameInteractablesHousehold = (() => {
22305
23248
  function sleeve(side, u, v, len, width, angle, color) {
22306
23249
  const du = Math.sin(angle) * side;
22307
23250
  const dv = -Math.cos(angle);
22308
- return piece("sleeve", u + du * len / 2, v + dv * len / 2, width, len, color, { t: CLOTH - 1e-3, tilt: side * angle });
23251
+ return piece("sleeve", u + du * len / 2, v + dv * len / 2, width, len, color, { t: CLOTH - 4e-3, tilt: side * angle });
22309
23252
  }
22310
23253
  function tshirt(col) {
22311
23254
  const p = [];
@@ -22314,9 +23257,9 @@ var GameInteractablesHousehold = (() => {
22314
23257
  p.push(span("body", -bw, TOP - 0.07, bw, -0.6, col));
22315
23258
  for (const s of [-1, 1]) p.push(span("shoulder", s * 0.045, TOP, s * (bw + 0.01), TOP - 0.07, col, { t: 0.014 }));
22316
23259
  p.push(span("inside", -0.045, TOP - 5e-3, 0.045, TOP - 0.05, shade(col, 0.55), { n: -CLOTH }));
22317
- p.push(span("collar", -0.052, TOP - 0.045, 0.052, TOP - 0.06, trim, { t: 0.015 }));
23260
+ p.push(span("collar", -0.052, TOP - 0.045, 0.052, TOP - 0.06, trim, { t: 0.018 }));
22318
23261
  for (const s of [-1, 1]) p.push(sleeve(s, s * (bw + 5e-3), TOP - 0.04, 0.2, 0.115, 0.95, shade(col, 0.96)));
22319
- p.push(span("trim", -bw, -0.585, bw, -0.6, trim, { t: 0.014 }));
23262
+ p.push(span("trim", -bw, -0.585, bw, -0.602, trim, { t: 0.016 }));
22320
23263
  p.push(span("pocket", 0.05, -0.2, 0.13, -0.27, shade(col, 0.9), { t: 0.016 }));
22321
23264
  return { kind: "tshirt", pieces: p, width: 0.62, height: 0.6, pegs: [-0.16, 0.16] };
22322
23265
  }
@@ -22325,7 +23268,7 @@ var GameInteractablesHousehold = (() => {
22325
23268
  g.kind = "shirt";
22326
23269
  g.pieces = g.pieces.filter((q) => q.role !== "sleeve" && q.role !== "pocket");
22327
23270
  for (const s of [-1, 1]) g.pieces.push(sleeve(s, s * 0.205, TOP - 0.04, 0.5, 0.085, 0.16, shade(col, 0.96)));
22328
- g.pieces.push(span("trim", -0.01, -0.07, 0.01, -0.6, shade(col, 0.78), { t: 0.016 }));
23271
+ g.pieces.push(span("trim", -0.01, -0.07, 0.01, -0.604, shade(col, 0.78), { t: 0.024 }));
22329
23272
  g.width = 0.5;
22330
23273
  return g;
22331
23274
  }
@@ -22336,7 +23279,7 @@ var GameInteractablesHousehold = (() => {
22336
23279
  g.pieces = g.pieces.filter((q) => q.role !== "trim");
22337
23280
  g.pieces.push(span("trim", -0.205, -0.7, 0.205, -0.72, dark, { t: 0.017 }));
22338
23281
  g.pieces.push(span("body", -0.2, -0.6, 0.2, -0.7, col));
22339
- g.pieces.push(span("trim", -0.012, -0.07, 0.012, -0.72, dark, { t: 0.018 }));
23282
+ g.pieces.push(span("trim", -0.012, -0.07, 0.012, -0.724, dark, { t: 0.022 }));
22340
23283
  for (const s of [-1, 1]) g.pieces.push(span("trim", s * 0.07, -0.34, s * 0.16, -0.4, dark, { t: 0.018 }));
22341
23284
  g.height = 0.72;
22342
23285
  return g;
@@ -22347,10 +23290,10 @@ var GameInteractablesHousehold = (() => {
22347
23290
  p.push(span("waist", -0.17, TOP, 0.17, TOP - 0.05, dark, { t: 0.015 }));
22348
23291
  p.push(span("crotch", -0.16, TOP - 0.05, 0.16, TOP - 0.2, col));
22349
23292
  for (const s of [-1, 1]) {
22350
- p.push(piece("leg", s * 0.085, TOP - 0.2 - 0.27, 0.155, 0.54, s > 0 ? col : shade(col, 0.94), { tilt: s * 0.02 }));
23293
+ p.push(piece("leg", s * 0.085, TOP - 0.2 - 0.27, 0.155, 0.54, s > 0 ? col : shade(col, 0.94), { tilt: s * 0.02, t: CLOTH - 4e-3 }));
22351
23294
  p.push(span("trim", s * 0.01 + s * 0, -0.74, s * 0.165, -0.76, dark, { t: 0.015 }));
22352
23295
  }
22353
- p.push(span("seam", -4e-3, TOP - 0.05, 4e-3, TOP - 0.2, dark, { t: 0.016 }));
23296
+ p.push(span("seam", -4e-3, TOP - 0.052, 4e-3, TOP - 0.198, dark, { t: 0.016 }));
22354
23297
  for (const s of [-1, 1]) p.push(span("trim", s * 0.09, TOP - 0.08, s * 0.15, TOP - 0.15, shade(col, 0.88), { t: 0.016 }));
22355
23298
  return { kind: "trousers", pieces: p, width: 0.34, height: 0.76, pegs: [-0.14, 0.14] };
22356
23299
  }
@@ -22359,15 +23302,15 @@ var GameInteractablesHousehold = (() => {
22359
23302
  const stripe = mix(col, 16777215, 0.55);
22360
23303
  p.push(span("body", -0.25, TOP, 0.25, -0.82, col, { t: 0.014, n: 9e-3 }));
22361
23304
  p.push(span("body", -0.25, TOP, 0.25, -0.74, shade(col, 0.93), { t: 0.014, n: -9e-3 }));
22362
- p.push(span("trim", -0.25, -0.62, 0.25, -0.67, stripe, { t: 0.017, n: 9e-3 }));
22363
- p.push(span("trim", -0.25, -0.7, 0.25, -0.72, stripe, { t: 0.017, n: 9e-3 }));
23305
+ p.push(span("trim", -0.252, -0.62, 0.252, -0.67, stripe, { t: 0.017, n: 9e-3 }));
23306
+ p.push(span("trim", -0.252, -0.7, 0.252, -0.72, stripe, { t: 0.017, n: 9e-3 }));
22364
23307
  for (let i = 0; i < 12; i++) p.push(span("fringe", -0.245 + i * 0.0417, -0.82, -0.215 + i * 0.0417, -0.86, shade(col, 1.04), { t: 0.01, n: 9e-3 }));
22365
23308
  return { kind: "towel", pieces: p, width: 0.5, height: 0.86, pegs: [-0.2, 0.2] };
22366
23309
  }
22367
23310
  function dress(col) {
22368
23311
  const p = [];
22369
23312
  const trim = shade(col, 0.8);
22370
- for (const s of [-1, 1]) p.push(span("strap", s * 0.05, TOP, s * 0.075, TOP - 0.12, trim, { t: 0.01 }));
23313
+ for (const s of [-1, 1]) p.push(span("strap", s * 0.05, TOP, s * 0.075, TOP - 0.12, trim, { t: 8e-3 }));
22371
23314
  p.push(span("body", -0.1, TOP - 0.1, 0.1, -0.34, col));
22372
23315
  p.push(span("trim", -0.105, -0.34, 0.105, -0.37, trim, { t: 0.015 }));
22373
23316
  const steps = 11;
@@ -22388,8 +23331,8 @@ var GameInteractablesHousehold = (() => {
22388
23331
  p.push(span("cuff", u - 0.037, TOP, u + 0.037, TOP - 0.035, toe, { t: 0.014 }));
22389
23332
  p.push(span("leg", u - 0.033, TOP - 0.035, u + 0.033, -0.17, c));
22390
23333
  p.push(span("foot", u - 0.033 * s, -0.17, u + 0.105 * s, -0.235, c));
22391
- p.push(span("toe", u + 0.07 * s, -0.17, u + 0.105 * s, -0.235, toe, { t: 0.014 }));
22392
- p.push(span("heel", u - 0.033 * s, -0.17, u - 1e-3 * s, -0.235, shade(c, 0.8), { t: 0.014 }));
23334
+ p.push(span("toe", u + 0.07 * s, -0.168, u + 0.107 * s, -0.237, toe, { t: 0.016 }));
23335
+ p.push(span("heel", u - 0.035 * s, -0.168, u - 1e-3 * s, -0.237, shade(c, 0.8), { t: 0.016 }));
22393
23336
  }
22394
23337
  return { kind: "socks", pieces: p, width: 0.36, height: 0.235, pegs: [-0.075, 0.075] };
22395
23338
  }
@@ -22424,8 +23367,8 @@ var GameInteractablesHousehold = (() => {
22424
23367
  function pegs(g, color) {
22425
23368
  const out = [];
22426
23369
  for (const u of g.pegs) {
22427
- out.push({ m: "plain", u, v: TOP / 2 - 0.012, w: 0.018, h: 0.065, t: 0.032, color, role: "peg" });
22428
- out.push({ m: "plain", u, v: TOP / 2 + 0.017, w: 0.022, h: 0.012, t: 0.036, color: shade(color, 0.8), role: "peg" });
23370
+ out.push({ m: "plain", u, v: TOP / 2 - 0.012, w: 0.018, h: 0.065, t: 0.036, color, role: "peg" });
23371
+ out.push({ m: "plain", u, v: TOP / 2 + 0.017, w: 0.022, h: 0.012, t: 0.04, color: shade(color, 0.8), role: "peg" });
22429
23372
  }
22430
23373
  return out;
22431
23374
  }
@@ -22436,13 +23379,14 @@ var GameInteractablesHousehold = (() => {
22436
23379
  const len = Math.hypot(half, rise);
22437
23380
  const ang = Math.atan2(rise, half);
22438
23381
  const out = [
22439
- { m: "metal", u: 0, v: -0.03, w: 5e-3, h: 0.06, t: 5e-3, color: col, role: "hanger" },
23382
+ { m: "metal", u: 0, v: -0.03, w: 5e-3, h: 0.06, t: 8e-3, color: col, role: "hanger" },
23383
+ // thicker than the wires it meets (CLAUDE.md §13)
22440
23384
  { m: "metal", u: 0, v: 0.013, w: 0.026, h: 5e-3, t: 5e-3, color: col, role: "hanger" }
22441
23385
  ];
22442
23386
  for (const s of [-1, 1]) {
22443
23387
  out.push({ m: "metal", u: s * half / 2, v: -0.06 - rise / 2, w: len, h: 4e-3, t: 4e-3, color: col, tilt: s > 0 ? -ang : ang, role: "hanger" });
22444
23388
  }
22445
- out.push({ m: "metal", u: 0, v: -0.06 - rise, w: half * 2, h: 4e-3, t: 4e-3, color: col, role: "hanger" });
23389
+ out.push({ m: "metal", u: 0, v: -0.06 - rise, w: half * 2, h: 4e-3, t: 8e-3, color: col, role: "hanger" });
22446
23390
  return out;
22447
23391
  }
22448
23392
  function drawPieces(c, pieces, f) {
@@ -22585,7 +23529,7 @@ var GameInteractablesHousehold = (() => {
22585
23529
  label: "prompt.fridge_door",
22586
23530
  extra: () => doorLedge(c, dx0 + 0.04, dx1 - 0.04, trayY, zdi, 0.08, 15003376)
22587
23531
  });
22588
- dropDoor(c, { id: "door_freezer", x0: dx0, x1: dx1, y0: yd + 0.015 + 2e-3, y1: h - 4e-3, zf, t: dt, color: shade(body, 0.97), inner: lining, angle: 1.45, handle: "bar_h", handleLen: 0.16, label: "prompt.freezer_door" });
23532
+ dropDoor(c, { id: "door_freezer", x0: dx0 + 2e-3, x1: dx1 - 2e-3, y0: yd + 0.015 + 2e-3, y1: h - 4e-3, zf, t: dt, color: shade(body, 0.97), inner: lining, angle: 1.45, handle: "bar_h", handleLen: 0.16, label: "prompt.freezer_door" });
22589
23533
  const slots = [
22590
23534
  ...c.row(sh.ix0 + 0.02, sh.ix1 - 0.02, fy0, zc, 1, [0.4, 0.2, 0.3]),
22591
23535
  ...c.row(sh.ix0 + 0.02, sh.ix1 - 0.02, mid, zc, 1, [0.4, yd - mid - 0.02, 0.3]),
@@ -23023,7 +23967,8 @@ var GameInteractablesHousehold = (() => {
23023
23967
  const px = ix0 + 0.05 + c.rnd() * (ix1 - ix0 - 0.14);
23024
23968
  const pz = iz0 + 0.05 + c.rnd() * (iz1 - iz0 - 0.14);
23025
23969
  const s = 0.04 + c.rnd() * 0.04;
23026
- c.b("plain", px, bedY + 0.03, pz, px + s, bedY + 0.03 + s * 0.8, pz + s, c.rnd() < 0.3 ? 5592405 : 1842206, c.rnd() * 3, 0, 0);
23970
+ const sink = 1e-3 + i * 14e-4;
23971
+ c.b("plain", px, bedY + 0.03 - sink, pz, px + s, bedY + 0.03 + 0.032 + i * 17e-4, pz + s, c.rnd() < 0.3 ? 5592405 : 1842206, c.rnd() * 3, 0, 0);
23027
23972
  }
23028
23973
  const gy = 0.88;
23029
23974
  for (const s of [-1, 1]) c.b("metal", s < 0 ? ix0 : ix1 - 0.015, gy - 0.02, iz0, s < 0 ? ix0 + 0.015 : ix1, gy, iz1, 2763824);
@@ -23043,7 +23988,7 @@ var GameInteractablesHousehold = (() => {
23043
23988
  bricks(c, sx0, topChamber + 0.36, -hd, sx1, stackTop, -hd + 0.32, brick);
23044
23989
  c.b("plain", sx0 - 0.02, stackTop, -hd - 0, sx1 + 0.02, stackTop + 0.03, -hd + 0.34, 14209732);
23045
23990
  c.cyl("metal", (sx0 + sx1) / 2, stackTop + 0.03, -hd + 0.16, 0.085, h - stackTop - 0.03, 6975090, "cyl");
23046
- c.cyl("metal", (sx0 + sx1) / 2, stackTop + 0.03, -hd + 0.16, 0.06, h - stackTop - 0.028, 1842206, "cyl");
23991
+ c.cyl("metal", (sx0 + sx1) / 2, stackTop + 0.032, -hd + 0.16, 0.06, h - stackTop - 0.03, 1842206, "cyl");
23047
23992
  const topC = 0.9;
23048
23993
  bricks(c, cx0, 0, -hd, cx1, topC - 0.04, -hd + 0.1, brick);
23049
23994
  bricks(c, cx0, 0, -hd + 0.1, cx0 + 0.08, topC - 0.04, zf, brick);
@@ -23059,7 +24004,7 @@ var GameInteractablesHousehold = (() => {
23059
24004
  c.b("plain", lx0, 0.05, lz0, lx1, topC - 0.12, lz0 + 4e-3, 14210248);
23060
24005
  c.b("plain", lx0, 0.05, lz0 + 4e-3, lx0 + 4e-3, topC - 0.12, lz1, 13157560);
23061
24006
  c.b("plain", lx1 - 4e-3, 0.05, lz0 + 4e-3, lx1, topC - 0.12, lz1, 13157560);
23062
- c.b("plain", lx0, 0.4, lz0, lx1, 0.416, lz1, 13157560);
24007
+ c.b("plain", lx0 + 4e-3, 0.4, lz0 + 4e-3, lx1 - 4e-3, 0.416, lz1 - 4e-3, 13157560);
23063
24008
  hingedDoor(c, {
23064
24009
  id: "counter_door",
23065
24010
  x0: lx0 + 2e-3,
@@ -23190,17 +24135,18 @@ var GameInteractablesHousehold = (() => {
23190
24135
  c.b("plain", -hw + 0.02, 0, hd - 0.07, -hw + 0.07, 0.015, hd - 0.02, DARK);
23191
24136
  c.b("plain", hw - 0.07, 0, hd - 0.07, hw - 0.02, 0.015, hd - 0.02, DARK);
23192
24137
  for (const s of [-1, 1]) c.b("plain", s * hw, top - 0.1, -0.1, s * hw + s * 0.015, top - 0.07, 0.1, DARK);
23193
- c.b("plain", hw - 3e-3, 0.05, hd - 0.14, hw, 0.09, hd - 0.1, DARK);
24138
+ c.b("plain", hw - 2e-3, 0.05, hd - 0.14, hw + 4e-3, 0.09, hd - 0.1, DARK);
23194
24139
  c.part(
23195
24140
  "lid",
23196
24141
  [0, h, -hd],
23197
24142
  { kind: "hinge", axis: [1, 0, 0], angle: -1.5 },
23198
24143
  () => {
23199
24144
  c.b("plain", -hw, top, -hd, hw, h, hd, white);
23200
- c.b("plain", -hw + 0.02, top - 0.012, -hd + 0.02, hw - 0.02, top, hd - 0.02, shade(white, 0.92));
23201
- c.b("plain", -0.09, h - 0.012, hd - 0.05, 0.09, h, hd, shade(body, 0.8));
23202
- c.b("plain", -hw + 0.04, h - 6e-3, -hd + 0.04, -hw + 0.07, h, hd - 0.04, shade(white, 0.9));
23203
- c.b("plain", hw - 0.07, h - 6e-3, -hd + 0.04, hw - 0.04, h, hd - 0.04, shade(white, 0.9));
24145
+ const rim = t + 4e-3 + 2e-3;
24146
+ c.b("plain", -hw + rim, top - 0.012, -hd + rim, hw - rim, top, hd - rim, shade(white, 0.92));
24147
+ c.b("plain", -0.09, h - 0.012, hd - 0.05, 0.09, h + 3e-3, hd + 4e-3, shade(body, 0.8));
24148
+ c.b("plain", -hw + 0.04, h - 2e-3, -hd + 0.04, -hw + 0.07, h + 4e-3, hd - 0.04, shade(white, 0.9));
24149
+ c.b("plain", hw - 0.07, h - 2e-3, -hd + 0.04, hw - 0.04, h + 4e-3, hd - 0.04, shade(white, 0.9));
23204
24150
  },
23205
24151
  { label: "prompt.cooler_lid", at: [0, h, hd - 0.03], radius: 1.6 }
23206
24152
  );
@@ -23223,7 +24169,8 @@ var GameInteractablesHousehold = (() => {
23223
24169
  const px = Math.sin(a) * r;
23224
24170
  const pz = Math.cos(a) * r;
23225
24171
  const s = 0.17 + c.rnd() * 0.06;
23226
- c.box("plain", px, 0, pz, s, 0.13 + c.rnd() * 0.05, s * 0.9, shade(9275778, 0.7 + c.rnd() * 0.5), a + c.rnd() * 0.5);
24172
+ const sink = i % 5 * 2e-3;
24173
+ c.box("plain", px, -sink, pz, s, sink + 0.13 + i % 5 * 0.011 + c.rnd() * 4e-3, s * 0.9, shade(9275778, 0.7 + c.rnd() * 0.5), a + c.rnd() * 0.5);
23227
24174
  if (i % 3 === 0) c.box("plain", px * 0.96, 0.13, pz * 0.96, s * 0.8, 0.08, s * 0.7, shade(9275778, 0.8 + c.rnd() * 0.4), a);
23228
24175
  }
23229
24176
  c.cyl("plain", 0, 1e-3, 0, ringR - 0.1, 0.03, 3815478, "cyl");
@@ -23278,7 +24225,7 @@ var GameInteractablesHousehold = (() => {
23278
24225
  for (const a of [0, 2.094, 4.189]) {
23279
24226
  const px = Math.sin(a) * 0.085;
23280
24227
  const pz = Math.cos(a) * 0.085;
23281
- c.b("metal", px - 8e-3, burnerY + 0.02, pz - 8e-3, px + 8e-3, Y + h - 5e-3, pz + 8e-3, DARK);
24228
+ c.b("metal", px - 8e-3, burnerY + 0.02, pz - 8e-3, px + 8e-3, Y + h - 2e-3, pz + 8e-3, DARK);
23282
24229
  }
23283
24230
  c.cyl("metal", 0, Y + h - 0.012, 0, 0.1, 8e-3, DARK, "cyl6");
23284
24231
  c.b("metal", -hw + 5e-3, burnerY, -hd + 5e-3, -hw + 0.012, Y + h - 0.01, zf - 0.04, shade(steel, 0.9));
@@ -23315,7 +24262,7 @@ var GameInteractablesHousehold = (() => {
23315
24262
  const col = Number.parseInt(g.color.replace("#", ""), 16);
23316
24263
  c.cyl("metal", 0, Y + 1e-3, 0, R * 0.96, 0.011, 6975090, "cyl");
23317
24264
  c.cyl("metal", 0, Y + 0.012, 0, R, H - 0.012 - 0.045, col, "cyl");
23318
- c.cyl("metal", 0, Y + 0.012 + (H - 0.057) * 0.35, 0, R + 1e-3, (H - 0.057) * 0.3, 15789280, "cyl");
24265
+ c.cyl("metal", 0, Y + 0.012 + (H - 0.057) * 0.35, 0, R + 2e-3, (H - 0.057) * 0.3, 15789280, "cyl");
23319
24266
  c.cyl("metal", 0, Y + H - 0.075, 0, R * 0.96, 0.04, col, "sphere");
23320
24267
  c.cyl("metal", 0, Y + H - 0.05, 0, R * 0.45, 0.012, 10133154, "cyl");
23321
24268
  c.cyl("metal", 0, Y + H - 0.04, 0, R * 0.3, 0.02, 11569716, "cyl6");
@@ -23499,7 +24446,7 @@ var GameInteractablesHousehold = (() => {
23499
24446
  c.b("plain", x0 + t, by0 + 0.03, zb + t, x1 - t, top - 5e-3, zb + t + 0.015, brick);
23500
24447
  c.b("plain", x0 + t, by0 + 0.03, zb + t + 0.015, x0 + t + 0.015, top - 5e-3, zf - 0.03, mix(brick, 16777215, 0.08));
23501
24448
  c.b("plain", x1 - t - 0.015, by0 + 0.03, zb + t + 0.015, x1 - t, top - 5e-3, zf - 0.03, mix(brick, 16777215, 0.08));
23502
- c.b("plain", x0 + t, top - 0.02, zb + t + 0.015, x1 - t, top - 5e-3, zf - 0.03, mix(brick, 0, 0.2));
24449
+ c.b("plain", x0 + t + 0.015, top - 0.02, zb + t + 0.015, x1 - t - 0.015, top - 7e-3, zf - 0.032, mix(brick, 0, 0.2));
23503
24450
  c.b("plain", x0 + t + 0.03, by0 + 0.03, zb + t + 0.03, x1 - t - 0.03, by0 + 0.06, zf - 0.08, 5917250);
23504
24451
  for (let i = 0; i < 5; i++) c.b("metal", x0 + t + 0.03, by0 + 0.06, zb + t + 0.04 + i * 0.06, x1 - t - 0.03, by0 + 0.07, zb + t + 0.05 + i * 0.06, shade(iron, 1.4));
23505
24452
  const potX = 0;
@@ -23511,7 +24458,7 @@ var GameInteractablesHousehold = (() => {
23511
24458
  c.cyl("metal", fx, pipeBase, fz, 0.07, flueTop - pipeBase, shade(iron, 1.1), "cyl");
23512
24459
  for (let y = pipeBase + 0.25; y < flueTop - 0.12; y += 0.45) c.cyl("metal", fx, y, fz, 0.076, 0.03, shade(iron, 1.5), "cyl");
23513
24460
  c.cyl("metal", fx, flueTop - 0.05, fz, 0.1, 0.03, shade(iron, 0.9), "cyl");
23514
- c.cyl("metal", fx, flueTop - 2e-3, fz, 0.052, 2e-3, 4866106, "cyl");
24461
+ c.cyl("metal", fx, flueTop - 1e-3, fz, 0.052, 3e-3, 4866106, "cyl");
23515
24462
  c.b("metal", fx + 0.07, pipeBase + 0.2, fz - 8e-3, fx + 0.17, pipeBase + 0.212, fz + 8e-3, shade(iron, 1.6));
23516
24463
  const side = c.M.hinge ?? "left";
23517
24464
  const dx0 = ox0 + 6e-3;
@@ -23530,7 +24477,7 @@ var GameInteractablesHousehold = (() => {
23530
24477
  c.b("metal", dx0, dy0, zf, dx1, dy1, zf + dt, iron);
23531
24478
  c.b("metal", dx0 + 0.025, dy0 + 0.025, zf + dt, dx1 - 0.025, dy1 - 0.025, zf + dt + 4e-3, shade(iron, 1.5));
23532
24479
  c.plane("glass", (dx0 + dx1) / 2, (dy0 + dy1) / 2, zf + dt + 65e-4, dx1 - dx0 - 0.07, dy1 - dy0 - 0.07, 5913130);
23533
- c.b("metal", hx - 8e-3, (dy0 + dy1) / 2 - 0.05, zf + dt, hx + 8e-3, (dy0 + dy1) / 2 + 0.05, zf + dt + 0.03, 11843772);
24480
+ c.b("metal", hx - 8e-3, (dy0 + dy1) / 2 - 0.05, zf + dt + 2e-3, hx + 8e-3, (dy0 + dy1) / 2 + 0.05, zf + dt + 0.03, 11843772);
23534
24481
  },
23535
24482
  { label: "prompt.firebox_door", at: [(dx0 + dx1) / 2, (dy0 + dy1) / 2, zf + dt + HANDLE] }
23536
24483
  );
@@ -23643,8 +24590,8 @@ var GameInteractablesHousehold = (() => {
23643
24590
  c.b("wood", xa, 0.05, bz0 + t + i * bd + 2e-3, xa + t, wallTop, bz0 + t + (i + 1) * bd - 2e-3, col);
23644
24591
  }
23645
24592
  }
23646
- boards(c, -bx, dx0, 0.05, wallTop, bz1 - t, t, wood);
23647
- boards(c, dx1, bx, 0.05, wallTop, bz1 - t, t, wood);
24593
+ boards(c, -bx + t, dx0, 0.05, wallTop, bz1 - t, t, wood);
24594
+ boards(c, dx1, bx - t, 0.05, wallTop, bz1 - t, t, wood);
23648
24595
  boards(c, dx0, dx1, doorTop, wallTop, bz1 - t, t, wood);
23649
24596
  const roofY = wallTop + 0.07;
23650
24597
  c.b("wood", -hw, roofY, -hd, hw, roofY + 0.04, hd, shade(wood, 0.8), 0, -0.08);
@@ -23654,8 +24601,8 @@ var GameInteractablesHousehold = (() => {
23654
24601
  const sz1 = sz0 + 0.46;
23655
24602
  const sx = bx - t;
23656
24603
  c.b("wood", -sx, 0.05, sz1 - 0.025, sx, seatY - 0.03, sz1, shade(wood, 1.05));
23657
- c.b("wood", -sx, 0.05, sz0, -sx + 0.025, seatY - 0.03, sz1, shade(wood, 0.95));
23658
- c.b("wood", sx - 0.025, 0.05, sz0, sx, seatY - 0.03, sz1, shade(wood, 0.95));
24604
+ c.b("wood", -sx, 0.05, sz0, -sx + 0.025, seatY - 0.03, sz1 - 0.025, shade(wood, 0.95));
24605
+ c.b("wood", sx - 0.025, 0.05, sz0, sx, seatY - 0.03, sz1 - 0.025, shade(wood, 0.95));
23659
24606
  c.b("plain", -sx + 0.025, 0.05, sz0, sx - 0.025, 0.07, sz1 - 0.025, 3878695);
23660
24607
  const hc = (sz0 + sz1) / 2;
23661
24608
  const hr = 0.14;
@@ -23766,22 +24713,25 @@ var GameInteractablesHousehold = (() => {
23766
24713
  const a = (i + course * 0.5) / n * Math.PI * 2;
23767
24714
  const px = Math.sin(a) * rMid;
23768
24715
  const pz = Math.cos(a) * rMid;
23769
- c.box("plain", px, course * 0.45 + 4e-3, pz, bwid, 0.442, 0.17, shade(stoneCol, 0.85 + c.rnd() * 0.3), Math.atan2(px, pz));
24716
+ const k = i % 2 ? 2e-3 : 0;
24717
+ c.box("plain", px, course * 0.45 + 4e-3 + k, pz, bwid, 0.442 - 2 * k, 0.17, shade(stoneCol, 0.85 + c.rnd() * 0.3), Math.atan2(px, pz));
23770
24718
  }
23771
24719
  }
23772
24720
  for (let i = 0; i < n; i++) {
23773
24721
  const a = (i + 0.25) / n * Math.PI * 2;
23774
24722
  const px = Math.sin(a) * 0.47;
23775
24723
  const pz = Math.cos(a) * 0.47;
23776
- c.box("plain", px, rim, pz, bwid + 0.03, 0.05, 0.25, shade(stoneCol, 1.05 + c.rnd() * 0.12), Math.atan2(px, pz));
24724
+ const k = i % 2 ? 2e-3 : 0;
24725
+ c.box("plain", px, rim + k, pz, bwid + 0.03, 0.05 - 2 * k, 0.25, shade(stoneCol, 1.05 + c.rnd() * 0.12), Math.atan2(px, pz));
23777
24726
  }
23778
24727
  c.cyl("plain", 0, 0, 0, rIn + 0.01, 0.1, 4867906, "cyl");
23779
24728
  c.cyl("water", 0, 0.1, 0, rIn, 0.01, 3828358, "cyl");
23780
- for (const s of [-1, 1]) c.b("wood", s * 0.62 - 0.05, 0, -0.05, s * 0.62 + 0.05, 1.9, 0.05, wood);
24729
+ for (const s of [-1, 1]) c.b("wood", s * 0.62 - 0.05, 0, -0.05, s * 0.62 + 0.05, 1.898, 0.05, wood);
23781
24730
  c.b("wood", -0.68, 1.8, -0.06, 0.68, 1.9, 0.06, shade(wood, 0.9));
23782
24731
  for (const s of [-1, 1]) {
23783
- c.box("wood", 0, 1.99, s * 0.33, 1.46, 0.04, 0.8, shade(wood, 0.85), 0, s * 0.5);
23784
- c.box("plain", 0, 2.02, s * 0.33, 1.44, 0.01, 0.78, 5654074, 0, s * 0.5);
24732
+ const e = s > 0 ? 0 : 4e-3;
24733
+ c.box("wood", 0, 1.99, s * 0.33, 1.46 - e, 0.04, 0.8, shade(wood, 0.85), 0, s * 0.5);
24734
+ c.box("plain", 0, 2.02, s * 0.33, 1.44 - e, 0.01, 0.78, 5654074, 0, s * 0.5);
23785
24735
  }
23786
24736
  c.b("wood", -0.69, 2.05, -0.03, 0.69, 2.12, 0.03, shade(wood, 0.7));
23787
24737
  const tz0 = 0.58;
@@ -23802,7 +24752,7 @@ var GameInteractablesHousehold = (() => {
23802
24752
  () => {
23803
24753
  c.rod("wood", "x", 0, spindleY, 0, 0.045, 1.24, shade(wood, 1.1));
23804
24754
  c.b("wood", 0.62, spindleY - 0.01, -0.025, 0.69, spindleY + 0.01, 0.025, shade(wood, 0.9));
23805
- c.b("wood", 0.66, spindleY - 0.01, -0.025, 0.69, spindleY + 0.2, 0.025, shade(wood, 0.9));
24755
+ c.b("wood", 0.662, spindleY - 8e-3, -0.023, 0.688, spindleY + 0.2, 0.023, shade(wood, 0.9));
23806
24756
  c.rod("wood", "x", 0.7, spindleY + 0.2, 0, 0.022, 0.08, shade(wood, 0.7));
23807
24757
  },
23808
24758
  { label: "prompt.well_crank", at: false, noSweep: true, group: "draw" }
@@ -23883,8 +24833,8 @@ var GameInteractablesHousehold = (() => {
23883
24833
  const { hw, hd, h } = c;
23884
24834
  const col = c.main(4157004);
23885
24835
  const rim = h - 0.04;
23886
- const b = binBody(c, { x0: -hw, x1: hw, z0: -hd, z1: hd, y0: 0, y1: rim, t: 0.02, color: col, inner: 11120820 });
23887
- frame(c, -hw - 6e-3, -hd - 6e-3, hw + 6e-3, hd + 6e-3, rim - 0.03, rim, 0.026, shade(col, 1.12));
24836
+ const b = binBody(c, { x0: -hw, x1: hw, z0: -hd, z1: hd, y0: 6e-3, y1: rim - 4e-3, t: 0.02, color: col, inner: 11120820 });
24837
+ frame(c, -hw - 6e-3, -hd - 6e-3, hw + 6e-3, hd + 6e-3, rim - 0.03, rim, 0.022, shade(col, 1.12));
23888
24838
  c.b("plain", -hw + 0.04, 0, -hd + 0.04, hw - 0.04, 0.012, hd - 0.04, 1974306);
23889
24839
  const hy = h - 0.04;
23890
24840
  const top = hy + 0.036;
@@ -23909,17 +24859,23 @@ var GameInteractablesHousehold = (() => {
23909
24859
  const col = c.main(3103370);
23910
24860
  const rim = h - 0.08;
23911
24861
  const t = 0.025;
23912
- const b = binBody(c, { x0: -hw + 0.03, x1: hw - 0.03, z0: -hd + 0.05, z1: hd, y0: 0.08, y1: rim, t, color: col, inner: 8293010 });
23913
- frame(c, -hw, -hd + 0.03, hw, hd, rim - 0.06, rim, 0.05, shade(col, 1.1));
23914
- for (let i = 0; i < 3; i++) c.b("plain", -hw + 0.1 + i * ((c.w - 0.2) / 2) - 0.01, 0.2, hd - 3e-3, -hw + 0.1 + i * ((c.w - 0.2) / 2) + 0.01, rim - 0.1, hd, shade(col, 0.85));
24862
+ const lip = 0.016;
24863
+ const zBody = hd - 0.028;
24864
+ const b = binBody(c, { x0: -hw + 0.03, x1: hw - 0.03, z0: -hd + 0.05, z1: zBody, y0: 0.08, y1: rim - 4e-3, t, color: col, inner: 8293010 });
24865
+ frame(c, -hw + lip, -hd + 0.03, hw - lip, hd - lip, rim - 0.06, rim, 0.05, shade(col, 1.1));
24866
+ for (let i = 0; i < 3; i++) {
24867
+ const rx = -hw + 0.1 + i * ((c.w - 0.2) / 2);
24868
+ c.b("plain", rx - 0.01, 0.2, zBody - 3e-3, rx + 0.01, rim - 0.1, zBody + 6e-3, shade(col, 0.85));
24869
+ }
23915
24870
  c.rod("metal", "x", 0, 0.1, -hd + 0.1, 0.012, c.w - 0.04, 9080466);
23916
24871
  for (const s of [-1, 1]) {
23917
- c.rod("plain", "x", s * (hw - 0.03), 0.1, -hd + 0.1, 0.1, 0.05, 1842206);
23918
- c.rod("plain", "x", s * (hw - 0.03), 0.1, -hd + 0.1, 0.05, 0.056, 9080466);
24872
+ c.rod("plain", "x", s * (hw - 0.026), 0.1, -hd + 0.1, 0.1, 0.05, 1842206);
24873
+ c.rod("plain", "x", s * (hw - 0.026), 0.1, -hd + 0.1, 0.05, 0.056, 9080466);
23919
24874
  }
23920
24875
  c.b("plain", -hw + 0.06, rim - 0.05, -hd + 0, hw - 0.06, rim - 0.01, -hd + 0.05, shade(col, 0.7));
23921
- c.b("plain", -0.1, 0.05, hd - 0.1, 0.1, 0.1, hd, 1842206);
24876
+ c.b("plain", -0.1, 0.05, zBody - 0.07, 0.1, 0.1, zBody + 0.01, 1842206);
23922
24877
  const hy = rim;
24878
+ const sk = lip - 2e-3;
23923
24879
  c.part(
23924
24880
  "lid",
23925
24881
  [0, hy, -hd + 0.06],
@@ -23927,9 +24883,9 @@ var GameInteractablesHousehold = (() => {
23927
24883
  () => {
23928
24884
  c.b("plain", -hw, hy, -hd + 0.05, hw, hy + 0.03, hd, shade(col, 1.04));
23929
24885
  c.b("plain", -hw + 0.04, hy + 0.03, -hd + 0.09, hw - 0.04, hy + 0.045, hd - 0.04, shade(col, 1.2));
23930
- c.b("plain", -hw, hy - 0.04, -hd + 0.05, -hw + 0.02, hy, hd, shade(col, 0.9));
23931
- c.b("plain", hw - 0.02, hy - 0.04, -hd + 0.05, hw, hy, hd, shade(col, 0.9));
23932
- c.b("plain", -hw, hy - 0.04, hd - 0.02, hw, hy, hd, shade(col, 0.9));
24886
+ c.b("plain", -hw, hy - 0.04, -hd + 0.05, -hw + sk, hy, hd, shade(col, 0.9));
24887
+ c.b("plain", hw - sk, hy - 0.04, -hd + 0.05, hw, hy, hd, shade(col, 0.9));
24888
+ c.b("plain", -hw + sk, hy - 0.04, hd - sk, hw - sk, hy, hd, shade(col, 0.9));
23933
24889
  },
23934
24890
  { label: "prompt.bin_lid", at: [0, hy + 0.05, hd - 0.1], radius: 1.8 }
23935
24891
  );
@@ -23946,9 +24902,9 @@ var GameInteractablesHousehold = (() => {
23946
24902
  const bh = 0.24;
23947
24903
  const bw = Math.min(c.w, 0.3) - (style === "post" ? 0.04 : 0);
23948
24904
  const zf = hd - HANDLE - 0.01;
23949
- c.b(style === "post" ? "wood" : "metal", -0.035, 1e-3, -0.035 - hd + 0.18, 0.035, by, 0.035 - hd + 0.18, postCol);
24905
+ c.b(style === "post" ? "wood" : "metal", -0.035, 1e-3, -0.035 - hd + 0.18, 0.035, by - 4e-3, 0.035 - hd + 0.18, postCol);
23950
24906
  c.b("plain", -0.1, 0, -hd + 0.08, 0.1, 0.06, -hd + 0.28, 9079428);
23951
- c.b(style === "post" ? "wood" : "metal", -0.035, by - 0.06, -hd + 0.18 - 0.035, 0.035, by, hd - 0.1, shade(postCol, 0.9));
24907
+ c.b(style === "post" ? "wood" : "metal", -0.03, by - 0.06, -hd + 0.18 - 0.03, 0.03, by, hd - 0.1, shade(postCol, 0.9));
23952
24908
  const t = 0.012;
23953
24909
  const x0 = -bw / 2;
23954
24910
  const x1 = bw / 2;
@@ -23958,9 +24914,9 @@ var GameInteractablesHousehold = (() => {
23958
24914
  c.b("metal", x1 - t, by + t, z0, x1, by + bh, zf, col);
23959
24915
  c.b("metal", x0 + t, by + t, z0, x1 - t, by + bh, z0 + t, shade(col, 0.9));
23960
24916
  const lin = 14343388;
23961
- c.b("plain", x0 + t, by + t, z0 + t, x1 - t, by + t + 3e-3, zf, lin);
23962
- c.b("plain", x0 + t, by + t + 3e-3, z0 + t, x0 + t + 3e-3, by + bh - 0.01, zf, lin);
23963
- c.b("plain", x1 - t - 3e-3, by + t + 3e-3, z0 + t, x1 - t, by + bh - 0.01, zf, lin);
24917
+ c.b("plain", x0 + t, by + t, z0 + t, x1 - t, by + t + 3e-3, zf - 4e-3, lin);
24918
+ c.b("plain", x0 + t, by + t + 3e-3, z0 + t, x0 + t + 3e-3, by + bh - 0.01, zf - 4e-3, lin);
24919
+ c.b("plain", x1 - t - 3e-3, by + t + 3e-3, z0 + t, x1 - t, by + bh - 0.01, zf - 4e-3, lin);
23964
24920
  if (style === "post") {
23965
24921
  c.rod("metal", "z", 0, by + bh - bw / 2, (z0 + zf) / 2, bw / 2, zf - z0, col, "cyl");
23966
24922
  c.b("metal", x0, by + t, z0, x1, by + bh - bw / 2, zf, col);
@@ -24016,6 +24972,7 @@ var GameInteractablesHousehold = (() => {
24016
24972
  const trim = 15260864;
24017
24973
  const inner = 14204042;
24018
24974
  const floorCol = 13215092;
24975
+ const roofCol = 5917242;
24019
24976
  const bw = c.w - 0.12;
24020
24977
  const x0 = -bw / 2;
24021
24978
  const x1 = bw / 2;
@@ -24023,61 +24980,70 @@ var GameInteractablesHousehold = (() => {
24023
24980
  const z1 = hd - 0.22;
24024
24981
  const y0 = 0.06;
24025
24982
  const wallH = 0.58;
24983
+ const wallTop = y0 + wallH;
24026
24984
  const t = 0.03;
24027
- for (const sx of [-1, 1]) for (const sz of [0, 1]) c.b("wood", sx < 0 ? x0 : x1 - 0.06, 0, sz ? z1 - 0.06 : z0, sx < 0 ? x0 + 0.06 : x1, y0, sz ? z1 : z0 + 0.06, 5914664);
24985
+ const l = 4e-3;
24986
+ for (const sx of [-1, 1]) for (const sz of [0, 1]) c.b("wood", sx < 0 ? x0 : x1 - 0.06, 0, sz ? z1 - 0.06 : z0, sx < 0 ? x0 + 0.06 : x1, y0 - 0.02, sz ? z1 : z0 + 0.06, 5914664);
24028
24987
  c.b("wood", x0 - 0.01, y0 - 0.02, z0 - 0.01, x1 + 0.01, y0, z1 + 0.01, 8018490);
24029
24988
  c.b("wood", x0 + t, y0, z0 + t, x1 - t, y0 + 0.012, z1 - t, floorCol);
24030
- for (let i = 1; i < 6; i++) c.b("wood", x0 + t, y0 + 0.012, z0 + t + i * ((z1 - z0 - 2 * t) / 6) - 2e-3, x1 - t, y0 + 0.0125, z0 + t + i * ((z1 - z0 - 2 * t) / 6) + 2e-3, shade(floorCol, 0.85));
24031
- c.b("wood", x0, y0, z0, x1, y0 + wallH, z0 + t, paint);
24032
- c.b("wood", x0, y0, z0 + t, x0 + t, y0 + wallH, z1, shade(paint, 0.96));
24033
- c.b("wood", x1 - t, y0, z0 + t, x1, y0 + wallH, z1, shade(paint, 0.96));
24989
+ const pitch = (z1 - z0 - 2 * t) / 6;
24990
+ for (let i = 1; i < 6; i++) c.b("wood", x0 + t + l, y0 + 0.012, z0 + t + i * pitch - 2e-3, x1 - t - l, y0 + 0.014, z0 + t + i * pitch + 2e-3, shade(floorCol, 0.85));
24991
+ c.b("wood", x0 + t, y0, z0, x1 - t, wallTop, z0 + t, paint);
24992
+ c.b("wood", x0, y0, z0, x0 + t, wallTop + 4e-3, z1, shade(paint, 0.96));
24993
+ c.b("wood", x1 - t, y0, z0, x1, wallTop + 4e-3, z1, shade(paint, 0.96));
24034
24994
  const ow = 0.36;
24035
24995
  const oh = 0.46;
24036
- c.b("wood", x0 + t, y0, z1 - t, -ow / 2, y0 + wallH, z1, paint);
24037
- c.b("wood", ow / 2, y0, z1 - t, x1 - t, y0 + wallH, z1, paint);
24038
- c.b("wood", -ow / 2, y0 + oh, z1 - t, ow / 2, y0 + wallH, z1, paint);
24039
- c.b("wood", x0, y0, z1 - t, x0 + t, y0 + wallH, z1, shade(paint, 0.96));
24040
- c.b("wood", x1 - t, y0, z1 - t, x1, y0 + wallH, z1, shade(paint, 0.96));
24041
- c.b("wood", -ow / 2 - 0.025, y0, z1, -ow / 2, y0 + oh + 0.025, z1 + 0.012, trim);
24042
- c.b("wood", ow / 2, y0, z1, ow / 2 + 0.025, y0 + oh + 0.025, z1 + 0.012, trim);
24996
+ c.b("wood", x0 + t, y0, z1 - t, -ow / 2, wallTop, z1, paint);
24997
+ c.b("wood", ow / 2, y0, z1 - t, x1 - t, wallTop, z1, paint);
24998
+ c.b("wood", -ow / 2, y0 + oh, z1 - t, ow / 2, wallTop, z1, paint);
24999
+ c.b("wood", -ow / 2 - 0.025, y0, z1, -ow / 2, y0 + oh, z1 + 0.012, trim);
25000
+ c.b("wood", ow / 2, y0, z1, ow / 2 + 0.025, y0 + oh, z1 + 0.012, trim);
24043
25001
  c.b("wood", -ow / 2 - 0.025, y0 + oh, z1, ow / 2 + 0.025, y0 + oh + 0.025, z1 + 0.012, trim);
24044
- const l = 4e-3;
24045
- c.b("plain", x0 + t, y0 + 0.012, z0 + t, x1 - t, y0 + wallH, z0 + t + l, inner);
24046
- c.b("plain", x0 + t, y0 + 0.012, z0 + t + l, x0 + t + l, y0 + wallH, z1 - t, mix(inner, paint, 0.1));
24047
- c.b("plain", x1 - t - l, y0 + 0.012, z0 + t + l, x1 - t, y0 + wallH, z1 - t, mix(inner, paint, 0.1));
24048
- c.b("plain", x0 + t + l, y0 + 0.012, z1 - t - l, -ow / 2, y0 + wallH, z1 - t, shade(inner, 0.95));
24049
- c.b("plain", ow / 2, y0 + 0.012, z1 - t - l, x1 - t - l, y0 + wallH, z1 - t, shade(inner, 0.95));
24050
- c.b("plain", -ow / 2, y0 + oh - l, z1 - t - l, ow / 2, y0 + wallH, z1 - t, shade(inner, 0.95));
24051
- const rise = h - 0.02 - (y0 + wallH);
24052
- const steps = 5;
24053
- for (let i = 0; i < steps; i++) {
24054
- const f = 1 - (i + 0.5) / steps;
24055
- const gx = bw / 2 * f;
24056
- const yy = y0 + wallH + i * rise / steps;
24057
- c.b("wood", -gx, yy, z1 - t, gx, yy + rise / steps + 2e-3, z1, shade(paint, 0.98));
24058
- c.b("wood", -gx, yy, z0, gx, yy + rise / steps + 2e-3, z0 + t, shade(paint, 0.98));
24059
- }
24060
- const half = Math.min(hw - 0.015, bw / 2 + 0.05);
24061
- const run = half;
25002
+ c.b("plain", x0 + t, y0 + 0.012, z0 + t, x1 - t, wallTop, z0 + t + l, inner);
25003
+ c.b("plain", x0 + t, y0 + 0.012, z0 + t + l, x0 + t + l, wallTop, z1 - t, mix(inner, paint, 0.1));
25004
+ c.b("plain", x1 - t - l, y0 + 0.012, z0 + t + l, x1 - t, wallTop, z1 - t, mix(inner, paint, 0.1));
25005
+ c.b("plain", x0 + t + l, y0 + 0.012, z1 - t - l, -ow / 2, wallTop, z1 - t, shade(inner, 0.95));
25006
+ c.b("plain", ow / 2, y0 + 0.012, z1 - t - l, x1 - t - l, wallTop, z1 - t, shade(inner, 0.95));
25007
+ c.b("plain", -ow / 2, y0 + oh - l, z1 - t - l, ow / 2, wallTop, z1 - t, shade(inner, 0.95));
25008
+ const top = h - 0.02;
25009
+ const rise = top - wallTop;
25010
+ const run = Math.min(hw - 0.015, bw / 2 + 0.05);
24062
25011
  const L = Math.hypot(run, rise);
24063
25012
  const ang = Math.atan2(rise, run);
25013
+ const sin = Math.sin(ang);
25014
+ const cos = Math.cos(ang);
24064
25015
  const roofT = 0.03;
24065
25016
  const rz0 = z0 - 0.04;
24066
25017
  const rz1 = z1 + 0.06;
25018
+ const onSlope = (m, s, u0, u1, v0, v1, za, zb, color) => {
25019
+ const u = (u0 + u1) / 2;
25020
+ const v = (v0 + v1) / 2;
25021
+ const cx = s * (u * cos + v * sin);
25022
+ const cy = top - u * sin + v * cos;
25023
+ c.box(m, cx, cy - (v1 - v0) / 2, (za + zb) / 2, u1 - u0, v1 - v0, zb - za, color, 0, 0, -s * ang);
25024
+ };
25025
+ const cut = roofT / 2 * Math.tan(ang);
24067
25026
  for (const s of [-1, 1]) {
24068
- const cx = s * run / 2;
24069
- const cy = y0 + wallH + rise / 2 + roofT / 2;
24070
- c.box("wood", cx, cy - roofT / 2, (rz0 + rz1) / 2, L, roofT, rz1 - rz0, 5917242, 0, 0, -s * ang);
24071
- for (let i = 1; i < 5; i++) c.box("wood", cx, cy - roofT / 2 + 0.017, rz0 + i * ((rz1 - rz0) / 5), L - 0.02, 4e-3, 6e-3, shade(5917242, 0.8), 0, 0, -s * ang);
25027
+ onSlope("wood", s, cut, L, -roofT / 2, roofT / 2, rz0, rz1, roofCol);
25028
+ for (let i = 1; i < 5; i++) {
25029
+ const zz = rz0 + i * ((rz1 - rz0) / 5);
25030
+ onSlope("wood", s, cut + 0.03, L - 0.01, roofT / 2, roofT / 2 + 4e-3, zz - 3e-3, zz + 3e-3, shade(roofCol, 0.8));
25031
+ }
25032
+ const g = s < 0 ? 2e-3 : 4e-3;
25033
+ const vTop = -roofT / 2 - 2e-3;
25034
+ const vBottom = -rise * cos - 5e-3;
25035
+ const uEnd = (bw / 2 - vTop * sin) / cos;
25036
+ onSlope("wood", s, 0, uEnd, vBottom, vTop, z1 - t + g, z1 - g, shade(paint, 0.98));
25037
+ onSlope("wood", s, 0, uEnd, vBottom, vTop, z0 + g, z0 + t - g, shade(paint, 0.98));
24072
25038
  }
24073
- c.b("wood", -0.03, y0 + wallH + rise - 5e-3, rz0, 0.03, y0 + wallH + rise + 0.03, rz1, shade(5917242, 0.7));
24074
- c.b("fabric", x0 + t + 0.03, y0 + 0.012, z0 + t + 0.03, x1 - t - 0.03, y0 + 0.07, z1 - t - 0.2, c.accent(4876954));
25039
+ c.b("wood", -0.03, top - 5e-3, rz0 - 0.01, 0.03, top + roofT / 2 / cos + 0.012, rz1 + 0.01, shade(roofCol, 0.7));
25040
+ c.b("fabric", x0 + t + 0.03, y0 + 0.014, z0 + t + 0.03, x1 - t - 0.03, y0 + 0.07, z1 - t - 0.2, c.accent(4876954));
24075
25041
  c.b("fabric", x0 + t + 0.05, y0 + 0.07, z0 + t + 0.05, x1 - t - 0.05, y0 + 0.075, z1 - t - 0.22, mix(c.accent(4876954), 16777215, 0.15));
24076
25042
  if (c.M.variant !== "no_bowl") {
24077
25043
  const bx = x1 - 0.1;
24078
25044
  const bz = z1 + 0.11;
24079
25045
  c.cyl("metal", bx, 0, bz, 0.085, 0.045, 11843772, "cyl");
24080
- c.cyl("plain", bx, 0.04, bz, 0.07, 6e-3, 8018480, "cyl");
25046
+ c.cyl("plain", bx, 0.045, bz, 0.07, 4e-3, 8018480, "cyl");
24081
25047
  }
24082
25048
  }
24083
25049
 
@@ -24184,6 +25150,7 @@ var GameInteractablesHousehold = (() => {
24184
25150
  leaf: (M, x, y, z, w, h, color, ry, rx) => push({ kind: "leaf", M, x, y, z, w, h, color, ry, rx }),
24185
25151
  plane: (M, material, x, y, z, w, h, color, ry, rx, rz, uv) => push({ kind: "plane", M, material, x, y, z, w, h, color, ry, rx, rz, uv }),
24186
25152
  light: (M, x, y, z, color, range, lightKind) => push({ kind: "light", M, x, y, z, color, range, lightKind }),
25153
+ lathe: (M, material, x, y, z, points, color) => push({ kind: "lathe", M, material, x, y, z, points, color }),
24187
25154
  part(id, pivot, ry, draw) {
24188
25155
  const rec = { id, pivot, ry, primitives: [] };
24189
25156
  parts2[id] = rec;