@adatechnology/game-items 0.8.0 → 0.9.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
@@ -791,7 +791,7 @@ function createFindsProvider(catalog, options = {}) {
791
791
  }
792
792
 
793
793
  // src/finds/place-finds.ts
794
- import { fitsSize } from "@adatechnology/game-interactables";
794
+ import { fitsSize, laidSize } from "@adatechnology/game-interactables";
795
795
  var placeFinds = (stacks, slots, catalog) => {
796
796
  const contents = slots.map(() => null);
797
797
  const leftover = [];
@@ -800,7 +800,7 @@ var placeFinds = (stacks, slots, catalog) => {
800
800
  const stackMax = item.stack ?? 1;
801
801
  let remaining = stack.count;
802
802
  while (remaining > 0) {
803
- const index = slots.findIndex((slot, position) => contents[position] === null && fitsSize(item.size, slot.max));
803
+ const index = slots.findIndex((slot, position) => contents[position] === null && fitsSize(laidSize(item.size, slot.lay), slot.max));
804
804
  if (index < 0) break;
805
805
  const qty = Math.min(remaining, stackMax);
806
806
  contents[index] = { type: item.id, qty, ...stack.data ? { data: { ...stack.data } } : {} };
@@ -2085,6 +2085,111 @@ var hand_uses_default = [
2085
2085
  }
2086
2086
  ]
2087
2087
  },
2088
+ {
2089
+ id: "rinse_dish",
2090
+ body: "two_hands",
2091
+ duration: 3,
2092
+ note: "the scrubbed dish brought under the running tap and turned so the water runs over one face and then the other, the foam and the rest of the dirt going with it, and back; played again while foam is left; the rinsing keys reach under the tap (aimHandUse)",
2093
+ keys: [
2094
+ {
2095
+ t: 0,
2096
+ position: [
2097
+ 0.22,
2098
+ -0.2,
2099
+ -0.4
2100
+ ],
2101
+ rotation: [
2102
+ 0,
2103
+ 0,
2104
+ 0
2105
+ ]
2106
+ },
2107
+ {
2108
+ t: 0.4,
2109
+ position: [
2110
+ 0,
2111
+ -0.55,
2112
+ -0.43
2113
+ ],
2114
+ rotation: [
2115
+ -0.5,
2116
+ 0,
2117
+ 0
2118
+ ],
2119
+ reach: true
2120
+ },
2121
+ {
2122
+ t: 0.95,
2123
+ position: [
2124
+ 0.02,
2125
+ -0.55,
2126
+ -0.43
2127
+ ],
2128
+ rotation: [
2129
+ -0.9,
2130
+ 0,
2131
+ 0.25
2132
+ ],
2133
+ reach: true
2134
+ },
2135
+ {
2136
+ t: 1.5,
2137
+ position: [
2138
+ -0.02,
2139
+ -0.55,
2140
+ -0.43
2141
+ ],
2142
+ rotation: [
2143
+ -0.2,
2144
+ 0,
2145
+ -0.25
2146
+ ],
2147
+ reach: true,
2148
+ action: "rinse"
2149
+ },
2150
+ {
2151
+ t: 2.05,
2152
+ position: [
2153
+ 0.02,
2154
+ -0.55,
2155
+ -0.43
2156
+ ],
2157
+ rotation: [
2158
+ -0.9,
2159
+ 0,
2160
+ 0.25
2161
+ ],
2162
+ reach: true
2163
+ },
2164
+ {
2165
+ t: 2.6,
2166
+ position: [
2167
+ 0,
2168
+ -0.55,
2169
+ -0.43
2170
+ ],
2171
+ rotation: [
2172
+ -0.5,
2173
+ 0,
2174
+ 0
2175
+ ],
2176
+ reach: true
2177
+ },
2178
+ {
2179
+ t: 3,
2180
+ position: [
2181
+ 0.22,
2182
+ -0.2,
2183
+ -0.4
2184
+ ],
2185
+ rotation: [
2186
+ 0,
2187
+ 0,
2188
+ 0
2189
+ ]
2190
+ }
2191
+ ]
2192
+ },
2088
2193
  {
2089
2194
  id: "fill_cup",
2090
2195
  body: "hand",
@@ -2373,6 +2478,849 @@ var hand_uses_default = [
2373
2478
  ]
2374
2479
  }
2375
2480
  ]
2481
+ },
2482
+ {
2483
+ id: "lather_body",
2484
+ body: "body",
2485
+ duration: 6.4,
2486
+ note: "bar soap rubbed between wet hands, then over the other forearm, the chest and the belly; foam left on each",
2487
+ keys: [
2488
+ {
2489
+ t: 0,
2490
+ position: [
2491
+ 0.22,
2492
+ -0.2,
2493
+ -0.4
2494
+ ],
2495
+ rotation: [
2496
+ 0,
2497
+ 0,
2498
+ 0
2499
+ ]
2500
+ },
2501
+ {
2502
+ t: 0.4,
2503
+ position: [
2504
+ 0.02,
2505
+ -0.22,
2506
+ -0.32
2507
+ ],
2508
+ rotation: [
2509
+ 0,
2510
+ 0,
2511
+ 1.5
2512
+ ]
2513
+ },
2514
+ {
2515
+ t: 0.7,
2516
+ position: [
2517
+ -0.04,
2518
+ -0.22,
2519
+ -0.32
2520
+ ],
2521
+ rotation: [
2522
+ 0,
2523
+ 0,
2524
+ 1.5
2525
+ ],
2526
+ action: "dose"
2527
+ },
2528
+ {
2529
+ t: 1,
2530
+ position: [
2531
+ 0.05,
2532
+ -0.22,
2533
+ -0.32
2534
+ ],
2535
+ rotation: [
2536
+ 0,
2537
+ 0,
2538
+ 1.5
2539
+ ],
2540
+ action: "lather",
2541
+ surface: "hands"
2542
+ },
2543
+ {
2544
+ t: 1.3,
2545
+ position: [
2546
+ -0.04,
2547
+ -0.22,
2548
+ -0.32
2549
+ ],
2550
+ rotation: [
2551
+ 0,
2552
+ 0,
2553
+ 1.5
2554
+ ]
2555
+ },
2556
+ {
2557
+ t: 1.75,
2558
+ position: [
2559
+ -0.2,
2560
+ -0.3,
2561
+ -0.3
2562
+ ],
2563
+ rotation: [
2564
+ 0,
2565
+ 0,
2566
+ 1.2
2567
+ ]
2568
+ },
2569
+ {
2570
+ t: 2.2,
2571
+ position: [
2572
+ -0.24,
2573
+ -0.2,
2574
+ -0.26
2575
+ ],
2576
+ rotation: [
2577
+ 0,
2578
+ 0,
2579
+ 1.2
2580
+ ],
2581
+ action: "lather",
2582
+ surface: "arms"
2583
+ },
2584
+ {
2585
+ t: 2.65,
2586
+ position: [
2587
+ -0.2,
2588
+ -0.3,
2589
+ -0.3
2590
+ ],
2591
+ rotation: [
2592
+ 0,
2593
+ 0,
2594
+ 1.2
2595
+ ]
2596
+ },
2597
+ {
2598
+ t: 3.1,
2599
+ position: [
2600
+ -0.24,
2601
+ -0.2,
2602
+ -0.26
2603
+ ],
2604
+ rotation: [
2605
+ 0,
2606
+ 0,
2607
+ 1.2
2608
+ ],
2609
+ action: "lather",
2610
+ surface: "arms"
2611
+ },
2612
+ {
2613
+ t: 3.55,
2614
+ position: [
2615
+ 0,
2616
+ -0.32,
2617
+ -0.24
2618
+ ],
2619
+ rotation: [
2620
+ 0,
2621
+ 0,
2622
+ 1.5
2623
+ ]
2624
+ },
2625
+ {
2626
+ t: 4,
2627
+ position: [
2628
+ -0.08,
2629
+ -0.34,
2630
+ -0.24
2631
+ ],
2632
+ rotation: [
2633
+ 0,
2634
+ 0,
2635
+ 1.5
2636
+ ],
2637
+ action: "lather",
2638
+ surface: "torso"
2639
+ },
2640
+ {
2641
+ t: 4.45,
2642
+ position: [
2643
+ 0.06,
2644
+ -0.32,
2645
+ -0.24
2646
+ ],
2647
+ rotation: [
2648
+ 0,
2649
+ 0,
2650
+ 1.5
2651
+ ]
2652
+ },
2653
+ {
2654
+ t: 4.9,
2655
+ position: [
2656
+ 0,
2657
+ -0.5,
2658
+ -0.26
2659
+ ],
2660
+ rotation: [
2661
+ 0,
2662
+ 0,
2663
+ 1.5
2664
+ ]
2665
+ },
2666
+ {
2667
+ t: 5.35,
2668
+ position: [
2669
+ -0.08,
2670
+ -0.52,
2671
+ -0.26
2672
+ ],
2673
+ rotation: [
2674
+ 0,
2675
+ 0,
2676
+ 1.5
2677
+ ],
2678
+ action: "lather",
2679
+ surface: "torso"
2680
+ },
2681
+ {
2682
+ t: 5.8,
2683
+ position: [
2684
+ 0.06,
2685
+ -0.5,
2686
+ -0.26
2687
+ ],
2688
+ rotation: [
2689
+ 0,
2690
+ 0,
2691
+ 1.5
2692
+ ]
2693
+ },
2694
+ {
2695
+ t: 6.4,
2696
+ position: [
2697
+ 0.22,
2698
+ -0.2,
2699
+ -0.4
2700
+ ],
2701
+ rotation: [
2702
+ 0,
2703
+ 0,
2704
+ 0
2705
+ ]
2706
+ }
2707
+ ]
2708
+ },
2709
+ {
2710
+ id: "shampoo_hair",
2711
+ body: "scalp",
2712
+ duration: 4.5,
2713
+ note: "shampoo poured from the bottle into the palm, then both hands rub the hair at the top of the head; foam left in the hair",
2714
+ keys: [
2715
+ {
2716
+ t: 0,
2717
+ position: [
2718
+ 0.22,
2719
+ -0.2,
2720
+ -0.4
2721
+ ],
2722
+ rotation: [
2723
+ 0,
2724
+ 0,
2725
+ 0
2726
+ ]
2727
+ },
2728
+ {
2729
+ t: 0.45,
2730
+ position: [
2731
+ 0.02,
2732
+ -0.16,
2733
+ -0.32
2734
+ ],
2735
+ rotation: [
2736
+ -2.4,
2737
+ 0,
2738
+ 0
2739
+ ]
2740
+ },
2741
+ {
2742
+ t: 0.8,
2743
+ position: [
2744
+ 0.02,
2745
+ -0.16,
2746
+ -0.32
2747
+ ],
2748
+ rotation: [
2749
+ -2.6,
2750
+ 0,
2751
+ 0
2752
+ ],
2753
+ action: "dose"
2754
+ },
2755
+ {
2756
+ t: 1.2,
2757
+ position: [
2758
+ 0.02,
2759
+ -0.2,
2760
+ -0.34
2761
+ ],
2762
+ rotation: [
2763
+ 0,
2764
+ 0,
2765
+ 0
2766
+ ]
2767
+ },
2768
+ {
2769
+ t: 1.65,
2770
+ position: [
2771
+ -0.05,
2772
+ 0.1,
2773
+ -0.06
2774
+ ],
2775
+ rotation: [
2776
+ 0,
2777
+ 0,
2778
+ 1.2
2779
+ ]
2780
+ },
2781
+ {
2782
+ t: 2.1,
2783
+ position: [
2784
+ 0.05,
2785
+ 0.1,
2786
+ -0.06
2787
+ ],
2788
+ rotation: [
2789
+ 0,
2790
+ 0,
2791
+ 1.2
2792
+ ],
2793
+ action: "lather",
2794
+ surface: "hair"
2795
+ },
2796
+ {
2797
+ t: 2.55,
2798
+ position: [
2799
+ -0.05,
2800
+ 0.1,
2801
+ -0.06
2802
+ ],
2803
+ rotation: [
2804
+ 0,
2805
+ 0,
2806
+ 1.2
2807
+ ]
2808
+ },
2809
+ {
2810
+ t: 3,
2811
+ position: [
2812
+ 0.05,
2813
+ 0.1,
2814
+ -0.06
2815
+ ],
2816
+ rotation: [
2817
+ 0,
2818
+ 0,
2819
+ 1.2
2820
+ ],
2821
+ action: "lather",
2822
+ surface: "hair"
2823
+ },
2824
+ {
2825
+ t: 3.45,
2826
+ position: [
2827
+ -0.05,
2828
+ 0.1,
2829
+ -0.06
2830
+ ],
2831
+ rotation: [
2832
+ 0,
2833
+ 0,
2834
+ 1.2
2835
+ ]
2836
+ },
2837
+ {
2838
+ t: 3.9,
2839
+ position: [
2840
+ 0.05,
2841
+ 0.1,
2842
+ -0.06
2843
+ ],
2844
+ rotation: [
2845
+ 0,
2846
+ 0,
2847
+ 1.2
2848
+ ],
2849
+ action: "lather",
2850
+ surface: "hair"
2851
+ },
2852
+ {
2853
+ t: 4.5,
2854
+ position: [
2855
+ 0.22,
2856
+ -0.2,
2857
+ -0.4
2858
+ ],
2859
+ rotation: [
2860
+ 0,
2861
+ 0,
2862
+ 0
2863
+ ]
2864
+ }
2865
+ ]
2866
+ },
2867
+ {
2868
+ id: "brush_teeth",
2869
+ body: "mouth",
2870
+ duration: 5.9,
2871
+ note: "toothpaste squeezed on the brush, the brush scrubbed side to side in the mouth, foam spat into the basin, the brush rinsed under the tap",
2872
+ keys: [
2873
+ {
2874
+ t: 0,
2875
+ position: [
2876
+ 0.22,
2877
+ -0.2,
2878
+ -0.4
2879
+ ],
2880
+ rotation: [
2881
+ 0,
2882
+ 0,
2883
+ 0
2884
+ ]
2885
+ },
2886
+ {
2887
+ t: 0.5,
2888
+ position: [
2889
+ 0.04,
2890
+ -0.2,
2891
+ -0.34
2892
+ ],
2893
+ rotation: [
2894
+ 0,
2895
+ 0,
2896
+ 1.5
2897
+ ]
2898
+ },
2899
+ {
2900
+ t: 0.9,
2901
+ position: [
2902
+ 0.04,
2903
+ -0.2,
2904
+ -0.34
2905
+ ],
2906
+ rotation: [
2907
+ 0,
2908
+ 0,
2909
+ 1.5
2910
+ ],
2911
+ action: "dose"
2912
+ },
2913
+ {
2914
+ t: 1.4,
2915
+ position: [
2916
+ 0.02,
2917
+ -0.06,
2918
+ -0.17
2919
+ ],
2920
+ rotation: [
2921
+ 0,
2922
+ 0,
2923
+ 1.5
2924
+ ]
2925
+ },
2926
+ {
2927
+ t: 1.7,
2928
+ position: [
2929
+ 0,
2930
+ -0.06,
2931
+ -0.17
2932
+ ],
2933
+ rotation: [
2934
+ 0,
2935
+ 0,
2936
+ 1.5
2937
+ ]
2938
+ },
2939
+ {
2940
+ t: 2,
2941
+ position: [
2942
+ 0.04,
2943
+ -0.06,
2944
+ -0.17
2945
+ ],
2946
+ rotation: [
2947
+ 0,
2948
+ 0,
2949
+ 1.5
2950
+ ],
2951
+ action: "lather",
2952
+ surface: "mouth"
2953
+ },
2954
+ {
2955
+ t: 2.3,
2956
+ position: [
2957
+ 0,
2958
+ -0.06,
2959
+ -0.17
2960
+ ],
2961
+ rotation: [
2962
+ 0,
2963
+ 0,
2964
+ 1.5
2965
+ ]
2966
+ },
2967
+ {
2968
+ t: 2.6,
2969
+ position: [
2970
+ 0.04,
2971
+ -0.06,
2972
+ -0.17
2973
+ ],
2974
+ rotation: [
2975
+ 0,
2976
+ 0,
2977
+ 1.5
2978
+ ],
2979
+ action: "lather",
2980
+ surface: "mouth"
2981
+ },
2982
+ {
2983
+ t: 2.9,
2984
+ position: [
2985
+ 0,
2986
+ -0.06,
2987
+ -0.17
2988
+ ],
2989
+ rotation: [
2990
+ 0,
2991
+ 0,
2992
+ 1.5
2993
+ ]
2994
+ },
2995
+ {
2996
+ t: 3.2,
2997
+ position: [
2998
+ 0.04,
2999
+ -0.06,
3000
+ -0.17
3001
+ ],
3002
+ rotation: [
3003
+ 0,
3004
+ 0,
3005
+ 1.5
3006
+ ],
3007
+ action: "lather",
3008
+ surface: "mouth"
3009
+ },
3010
+ {
3011
+ t: 3.5,
3012
+ position: [
3013
+ 0,
3014
+ -0.06,
3015
+ -0.17
3016
+ ],
3017
+ rotation: [
3018
+ 0,
3019
+ 0,
3020
+ 1.5
3021
+ ]
3022
+ },
3023
+ {
3024
+ t: 3.8,
3025
+ position: [
3026
+ 0.04,
3027
+ -0.06,
3028
+ -0.17
3029
+ ],
3030
+ rotation: [
3031
+ 0,
3032
+ 0,
3033
+ 1.5
3034
+ ],
3035
+ action: "lather",
3036
+ surface: "mouth"
3037
+ },
3038
+ {
3039
+ t: 4.2,
3040
+ position: [
3041
+ 0.02,
3042
+ -0.06,
3043
+ -0.2
3044
+ ],
3045
+ rotation: [
3046
+ 0,
3047
+ 0,
3048
+ 1.5
3049
+ ],
3050
+ action: "spit",
3051
+ surface: "mouth"
3052
+ },
3053
+ {
3054
+ t: 4.7,
3055
+ position: [
3056
+ 0.04,
3057
+ -0.34,
3058
+ -0.44
3059
+ ],
3060
+ rotation: [
3061
+ 0,
3062
+ 0,
3063
+ 1.5
3064
+ ]
3065
+ },
3066
+ {
3067
+ t: 5.3,
3068
+ position: [
3069
+ 0.04,
3070
+ -0.34,
3071
+ -0.44
3072
+ ],
3073
+ rotation: [
3074
+ 0,
3075
+ 0,
3076
+ 1.5
3077
+ ],
3078
+ action: "rinse",
3079
+ surface: "brush"
3080
+ },
3081
+ {
3082
+ t: 5.9,
3083
+ position: [
3084
+ 0.22,
3085
+ -0.2,
3086
+ -0.4
3087
+ ],
3088
+ rotation: [
3089
+ 0,
3090
+ 0,
3091
+ 0
3092
+ ]
3093
+ }
3094
+ ]
3095
+ },
3096
+ {
3097
+ id: "wash_hands",
3098
+ body: "two_hands",
3099
+ duration: 6.5,
3100
+ note: "hands wet under the tap, the bar rubbed between them into foam, rinsed under the water and shaken dry",
3101
+ keys: [
3102
+ {
3103
+ t: 0,
3104
+ position: [
3105
+ 0.22,
3106
+ -0.2,
3107
+ -0.4
3108
+ ],
3109
+ rotation: [
3110
+ 0,
3111
+ 0,
3112
+ 0
3113
+ ]
3114
+ },
3115
+ {
3116
+ t: 0.5,
3117
+ position: [
3118
+ 0,
3119
+ -0.34,
3120
+ -0.44
3121
+ ],
3122
+ rotation: [
3123
+ 0,
3124
+ 0,
3125
+ 1.5
3126
+ ]
3127
+ },
3128
+ {
3129
+ t: 1,
3130
+ position: [
3131
+ 0,
3132
+ -0.34,
3133
+ -0.44
3134
+ ],
3135
+ rotation: [
3136
+ 0,
3137
+ 0,
3138
+ 1.5
3139
+ ],
3140
+ action: "rinse",
3141
+ surface: "hands"
3142
+ },
3143
+ {
3144
+ t: 1.4,
3145
+ position: [
3146
+ 0.02,
3147
+ -0.26,
3148
+ -0.36
3149
+ ],
3150
+ rotation: [
3151
+ 0,
3152
+ 0,
3153
+ 1.5
3154
+ ],
3155
+ action: "dose"
3156
+ },
3157
+ {
3158
+ t: 1.7,
3159
+ position: [
3160
+ -0.04,
3161
+ -0.26,
3162
+ -0.36
3163
+ ],
3164
+ rotation: [
3165
+ 0,
3166
+ 0,
3167
+ 1.5
3168
+ ]
3169
+ },
3170
+ {
3171
+ t: 2,
3172
+ position: [
3173
+ 0.06,
3174
+ -0.26,
3175
+ -0.36
3176
+ ],
3177
+ rotation: [
3178
+ 0,
3179
+ 0,
3180
+ 1.5
3181
+ ],
3182
+ action: "lather",
3183
+ surface: "hands"
3184
+ },
3185
+ {
3186
+ t: 2.3,
3187
+ position: [
3188
+ -0.04,
3189
+ -0.26,
3190
+ -0.36
3191
+ ],
3192
+ rotation: [
3193
+ 0,
3194
+ 0,
3195
+ 1.5
3196
+ ]
3197
+ },
3198
+ {
3199
+ t: 2.6,
3200
+ position: [
3201
+ 0.06,
3202
+ -0.26,
3203
+ -0.36
3204
+ ],
3205
+ rotation: [
3206
+ 0,
3207
+ 0,
3208
+ 1.5
3209
+ ],
3210
+ action: "lather",
3211
+ surface: "hands"
3212
+ },
3213
+ {
3214
+ t: 2.9,
3215
+ position: [
3216
+ -0.04,
3217
+ -0.26,
3218
+ -0.36
3219
+ ],
3220
+ rotation: [
3221
+ 0,
3222
+ 0,
3223
+ 1.5
3224
+ ]
3225
+ },
3226
+ {
3227
+ t: 3.2,
3228
+ position: [
3229
+ 0.06,
3230
+ -0.26,
3231
+ -0.36
3232
+ ],
3233
+ rotation: [
3234
+ 0,
3235
+ 0,
3236
+ 1.5
3237
+ ],
3238
+ action: "lather",
3239
+ surface: "hands"
3240
+ },
3241
+ {
3242
+ t: 3.7,
3243
+ position: [
3244
+ 0,
3245
+ -0.34,
3246
+ -0.44
3247
+ ],
3248
+ rotation: [
3249
+ 0,
3250
+ 0,
3251
+ 1.5
3252
+ ]
3253
+ },
3254
+ {
3255
+ t: 4.6,
3256
+ position: [
3257
+ 0.04,
3258
+ -0.34,
3259
+ -0.44
3260
+ ],
3261
+ rotation: [
3262
+ 0,
3263
+ 0,
3264
+ 1.5
3265
+ ],
3266
+ action: "rinse",
3267
+ surface: "hands"
3268
+ },
3269
+ {
3270
+ t: 5.1,
3271
+ position: [
3272
+ 0.04,
3273
+ -0.24,
3274
+ -0.36
3275
+ ],
3276
+ rotation: [
3277
+ 0,
3278
+ 0,
3279
+ 1.5
3280
+ ]
3281
+ },
3282
+ {
3283
+ t: 5.5,
3284
+ position: [
3285
+ -0.02,
3286
+ -0.24,
3287
+ -0.36
3288
+ ],
3289
+ rotation: [
3290
+ 0,
3291
+ 0,
3292
+ 1.5
3293
+ ],
3294
+ action: "dry",
3295
+ surface: "hands"
3296
+ },
3297
+ {
3298
+ t: 5.9,
3299
+ position: [
3300
+ 0.04,
3301
+ -0.24,
3302
+ -0.36
3303
+ ],
3304
+ rotation: [
3305
+ 0,
3306
+ 0,
3307
+ 1.5
3308
+ ]
3309
+ },
3310
+ {
3311
+ t: 6.5,
3312
+ position: [
3313
+ 0.22,
3314
+ -0.2,
3315
+ -0.4
3316
+ ],
3317
+ rotation: [
3318
+ 0,
3319
+ 0,
3320
+ 0
3321
+ ]
3322
+ }
3323
+ ]
2376
3324
  }
2377
3325
  ];
2378
3326
 
@@ -2428,7 +3376,8 @@ var createHandUse = (def) => {
2428
3376
  const events = [];
2429
3377
  while (reached < actions.length && actions[reached].t <= time) {
2430
3378
  reached++;
2431
- events.push({ action: actions[reached - 1].action, share: reached / actions.length });
3379
+ const key = actions[reached - 1];
3380
+ events.push({ action: key.action, share: reached / actions.length, ...key.surface ? { surface: key.surface } : {} });
2432
3381
  }
2433
3382
  done = time >= def.duration;
2434
3383
  return events;