@opfr/raids 0.12.0 → 0.12.2

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.
@@ -2849,6 +2849,305 @@ export const happyChristmasRaid = (itemId) => ({
2849
2849
  'end_run_away',
2850
2850
  ],
2851
2851
  },
2852
+ {
2853
+ id: 'uc_try_to_bring_down_box_on_wolf',
2854
+ label: t('raids.happy_christmas.uc_try_to_bring_down_box_on_wolf.label'),
2855
+ output: {
2856
+ id: 'c_try_to_bring_down_box_on_wolf',
2857
+ requirements: itemId ===
2858
+ 'sailing_boat'
2859
+ ? {
2860
+ chance: 90,
2861
+ agility: 90,
2862
+ }
2863
+ : {
2864
+ chance: 100,
2865
+ agility: 100,
2866
+ },
2867
+ success: {
2868
+ id: 'ev_succeed_bring_down_box_on_wolf',
2869
+ title: t('raids.happy_christmas.ev_succeed_bring_down_box_on_wolf.title'),
2870
+ text: (obtainedRewards) => t('raids.happy_christmas.ev_succeed_bring_down_box_on_wolf.text', {
2871
+ rewards: formatRewards('ev_succeed_bring_down_box_on_wolf', obtainedRewards, itemId ===
2872
+ 'rudder'
2873
+ ? {
2874
+ xp: 82500,
2875
+ }
2876
+ : itemId ===
2877
+ 'rescue_boat'
2878
+ ? {
2879
+ xp: 75000,
2880
+ berry: 0,
2881
+ }
2882
+ : {
2883
+ xp: 75000,
2884
+ }, undefined),
2885
+ }),
2886
+ rewards: itemId ===
2887
+ 'rudder'
2888
+ ? {
2889
+ xp: 82500,
2890
+ }
2891
+ : itemId ===
2892
+ 'rescue_boat'
2893
+ ? {
2894
+ xp: 75000,
2895
+ berry: 0,
2896
+ }
2897
+ : {
2898
+ xp: 75000,
2899
+ },
2900
+ penalties: undefined,
2901
+ outputs: [
2902
+ {
2903
+ id: 'goto_free_elf',
2904
+ label: t('raids.happy_christmas.goto_free_elf.label'),
2905
+ goto: [
2906
+ 'uc_continue',
2907
+ 'ev_elf_scared',
2908
+ 'rq_go_to_santa_claus',
2909
+ 'ev_santa_claus_island',
2910
+ 'uc_land_on_santa_claus_island',
2911
+ 'ev_abandoned_village',
2912
+ 'uc_go_forest',
2913
+ 'c_already_meet_giant',
2914
+ 'ev_forest_already_meet_giant',
2915
+ 'uc_follow_giant_trace',
2916
+ 'ev_follow_giant_trace',
2917
+ 'rq_go_in_cavern',
2918
+ 'ev_giant_cavern',
2919
+ 'uc_throw_torch',
2920
+ 'ev_found_elf',
2921
+ 'uc_rundown_wolf',
2922
+ 'c_rundown_wolf',
2923
+ 'ev_beat_wolf',
2924
+ 'uc_free_elf',
2925
+ 'ev_free_elf',
2926
+ ],
2927
+ },
2928
+ ],
2929
+ },
2930
+ failure: {
2931
+ id: 'ev_fail_bring_down_box_on_wolf',
2932
+ title: t('raids.happy_christmas.ev_fail_bring_down_box_on_wolf.title'),
2933
+ text: (obtainedRewards) => t('raids.happy_christmas.ev_fail_bring_down_box_on_wolf.text', {
2934
+ rewards: formatRewards('ev_fail_bring_down_box_on_wolf', obtainedRewards, itemId ===
2935
+ 'rudder'
2936
+ ? {
2937
+ xp: 16500,
2938
+ }
2939
+ : itemId ===
2940
+ 'rescue_boat'
2941
+ ? {
2942
+ xp: 15000,
2943
+ berry: 0,
2944
+ }
2945
+ : {
2946
+ xp: 15000,
2947
+ }, undefined),
2948
+ }),
2949
+ rewards: itemId ===
2950
+ 'rudder'
2951
+ ? {
2952
+ xp: 16500,
2953
+ }
2954
+ : itemId ===
2955
+ 'rescue_boat'
2956
+ ? {
2957
+ xp: 15000,
2958
+ berry: 0,
2959
+ }
2960
+ : {
2961
+ xp: 15000,
2962
+ },
2963
+ penalties: undefined,
2964
+ outputs: [
2965
+ {
2966
+ id: 'uc_rundown_wolf_without_weapon',
2967
+ label: t('raids.happy_christmas.uc_rundown_wolf_without_weapon.label'),
2968
+ output: {
2969
+ id: 'c_rundown_wolf_without_weapon',
2970
+ requirements: itemId ===
2971
+ 'sailing_boat'
2972
+ ? {
2973
+ strength: 112.5,
2974
+ agility: 112.5,
2975
+ }
2976
+ : {
2977
+ strength: 125,
2978
+ agility: 125,
2979
+ },
2980
+ success: {
2981
+ id: 'ev_succeed_rundown_wolf_without_weapon',
2982
+ title: t('raids.happy_christmas.ev_succeed_rundown_wolf_without_weapon.title'),
2983
+ text: (obtainedRewards) => t('raids.happy_christmas.ev_succeed_rundown_wolf_without_weapon.text', {
2984
+ rewards: formatRewards('ev_succeed_rundown_wolf_without_weapon', obtainedRewards, itemId ===
2985
+ 'rudder'
2986
+ ? {
2987
+ xp: 55000,
2988
+ }
2989
+ : itemId ===
2990
+ 'rescue_boat'
2991
+ ? {
2992
+ xp: 50000,
2993
+ berry: 0,
2994
+ }
2995
+ : {
2996
+ xp: 50000,
2997
+ }, itemId ===
2998
+ 'anchor'
2999
+ ? {
3000
+ hp: 25,
3001
+ }
3002
+ : {
3003
+ hp: 50,
3004
+ }),
3005
+ }),
3006
+ rewards: itemId ===
3007
+ 'rudder'
3008
+ ? {
3009
+ xp: 55000,
3010
+ }
3011
+ : itemId ===
3012
+ 'rescue_boat'
3013
+ ? {
3014
+ xp: 50000,
3015
+ berry: 0,
3016
+ }
3017
+ : {
3018
+ xp: 50000,
3019
+ },
3020
+ penalties: itemId ===
3021
+ 'anchor'
3022
+ ? {
3023
+ hp: 25,
3024
+ }
3025
+ : {
3026
+ hp: 50,
3027
+ },
3028
+ outputs: [
3029
+ {
3030
+ id: 'goto_free_elf',
3031
+ label: t('raids.happy_christmas.goto_free_elf.label'),
3032
+ goto: [
3033
+ 'uc_continue',
3034
+ 'ev_elf_scared',
3035
+ 'rq_go_to_santa_claus',
3036
+ 'ev_santa_claus_island',
3037
+ 'uc_land_on_santa_claus_island',
3038
+ 'ev_abandoned_village',
3039
+ 'uc_go_forest',
3040
+ 'c_already_meet_giant',
3041
+ 'ev_forest_already_meet_giant',
3042
+ 'uc_follow_giant_trace',
3043
+ 'ev_follow_giant_trace',
3044
+ 'rq_go_in_cavern',
3045
+ 'ev_giant_cavern',
3046
+ 'uc_throw_torch',
3047
+ 'ev_found_elf',
3048
+ 'uc_rundown_wolf',
3049
+ 'c_rundown_wolf',
3050
+ 'ev_beat_wolf',
3051
+ 'uc_free_elf',
3052
+ 'ev_free_elf',
3053
+ ],
3054
+ },
3055
+ ],
3056
+ },
3057
+ failure: {
3058
+ id: 'ev_failure_rundown_wolf_without_weapon',
3059
+ title: t('raids.happy_christmas.ev_failure_rundown_wolf_without_weapon.title'),
3060
+ text: (obtainedRewards) => t('raids.happy_christmas.ev_failure_rundown_wolf_without_weapon.text', {
3061
+ rewards: formatRewards('ev_failure_rundown_wolf_without_weapon', obtainedRewards, itemId ===
3062
+ 'rudder'
3063
+ ? {
3064
+ xp: 11000,
3065
+ }
3066
+ : itemId ===
3067
+ 'rescue_boat'
3068
+ ? {
3069
+ xp: 10000,
3070
+ berry: 0,
3071
+ }
3072
+ : {
3073
+ xp: 10000,
3074
+ }, itemId ===
3075
+ 'anchor'
3076
+ ? {
3077
+ hp: 150,
3078
+ }
3079
+ : {
3080
+ hp: 300,
3081
+ }),
3082
+ }),
3083
+ rewards: itemId ===
3084
+ 'rudder'
3085
+ ? {
3086
+ xp: 11000,
3087
+ }
3088
+ : itemId ===
3089
+ 'rescue_boat'
3090
+ ? {
3091
+ xp: 10000,
3092
+ berry: 0,
3093
+ }
3094
+ : {
3095
+ xp: 10000,
3096
+ },
3097
+ penalties: itemId ===
3098
+ 'anchor'
3099
+ ? {
3100
+ hp: 150,
3101
+ }
3102
+ : {
3103
+ hp: 300,
3104
+ },
3105
+ outputs: [
3106
+ {
3107
+ id: 'goto_run_away',
3108
+ label: t('raids.happy_christmas.goto_run_away.label'),
3109
+ goto: [
3110
+ 'uc_continue',
3111
+ 'ev_elf_scared',
3112
+ 'rq_go_to_santa_claus',
3113
+ 'ev_santa_claus_island',
3114
+ 'uc_land_on_santa_claus_island',
3115
+ 'ev_abandoned_village',
3116
+ 'uc_go_forest',
3117
+ 'c_already_meet_giant',
3118
+ 'ev_forest_already_meet_giant',
3119
+ 'uc_follow_giant_trace',
3120
+ 'ev_follow_giant_trace',
3121
+ 'rq_go_in_cavern',
3122
+ 'ev_giant_cavern',
3123
+ 'uc_throw_torch',
3124
+ 'ev_found_elf',
3125
+ 'uc_try_to_bring_down_box_on_wolf',
3126
+ 'c_try_to_bring_down_box_on_wolf',
3127
+ 'ev_fail_bring_down_box_on_wolf',
3128
+ 'uc_run_away',
3129
+ 'end_run_away',
3130
+ ],
3131
+ },
3132
+ ],
3133
+ },
3134
+ },
3135
+ },
3136
+ {
3137
+ id: 'uc_run_away',
3138
+ label: t('raids.happy_christmas.uc_run_away.label'),
3139
+ output: {
3140
+ id: 'end_run_away',
3141
+ title: t('raids.happy_christmas.end_run_away.title'),
3142
+ text: t('raids.happy_christmas.end_run_away.text'),
3143
+ rewards: undefined,
3144
+ penalties: undefined,
3145
+ },
3146
+ },
3147
+ ],
3148
+ },
3149
+ },
3150
+ },
2852
3151
  ],
2853
3152
  },
2854
3153
  },
@@ -3144,62 +3443,207 @@ export const happyChristmasRaid = (itemId) => ({
3144
3443
  },
3145
3444
  },
3146
3445
  {
3147
- id: 'goto_turn_around',
3148
- label: t('raids.happy_christmas.goto_turn_around.label'),
3149
- goto: [
3150
- 'uc_continue',
3151
- 'ev_elf_scared',
3152
- 'rq_go_to_santa_claus',
3153
- 'ev_santa_claus_island',
3154
- 'uc_land_on_santa_claus_island',
3155
- 'ev_abandoned_village',
3156
- 'uc_go_forest',
3157
- 'c_already_meet_giant',
3158
- 'ev_forest_already_meet_giant',
3159
- 'uc_follow_giant_trace',
3160
- 'ev_follow_giant_trace',
3161
- 'uc_ignore_cavern',
3162
- ],
3446
+ id: 'uc_turn_around',
3447
+ label: t('raids.happy_christmas.uc_turn_around.label'),
3448
+ output: {
3449
+ id: 'c_santa_claus_free',
3450
+ requirements: itemId === 'sailing_boat'
3451
+ ? {
3452
+ conditions: [
3453
+ 'santa_claus_free',
3454
+ ],
3455
+ mode: 'include',
3456
+ }
3457
+ : {
3458
+ conditions: [
3459
+ 'santa_claus_free',
3460
+ ],
3461
+ mode: 'include',
3462
+ },
3463
+ success: {
3464
+ id: 'ev_santa_claus_already_free',
3465
+ title: t('raids.happy_christmas.ev_santa_claus_already_free.title'),
3466
+ text: t('raids.happy_christmas.ev_santa_claus_already_free.text'),
3467
+ rewards: undefined,
3468
+ penalties: undefined,
3469
+ outputs: [
3470
+ {
3471
+ id: 'goto_return_desert_beach',
3472
+ label: t('raids.happy_christmas.goto_return_desert_beach.label'),
3473
+ goto: [
3474
+ 'uc_continue',
3475
+ 'ev_elf_scared',
3476
+ 'rq_go_to_santa_claus',
3477
+ 'ev_santa_claus_island',
3478
+ 'uc_land_on_santa_claus_island',
3479
+ 'ev_abandoned_village',
3480
+ ],
3481
+ },
3482
+ ],
3483
+ },
3484
+ failure: {
3485
+ id: 'ev_santa_claus_not_free',
3486
+ title: t('raids.happy_christmas.ev_santa_claus_not_free.title'),
3487
+ text: t('raids.happy_christmas.ev_santa_claus_not_free.text'),
3488
+ rewards: undefined,
3489
+ penalties: undefined,
3490
+ outputs: [
3491
+ {
3492
+ id: 'goto_continue',
3493
+ label: t('raids.happy_christmas.goto_continue.label'),
3494
+ goto: [
3495
+ 'uc_continue',
3496
+ 'ev_elf_scared',
3497
+ 'rq_go_to_santa_claus',
3498
+ 'ev_santa_claus_island',
3499
+ 'uc_land_on_santa_claus_island',
3500
+ 'ev_abandoned_village',
3501
+ 'uc_go_forest',
3502
+ 'c_already_meet_giant',
3503
+ 'ev_forest_not_meet_giant',
3504
+ 'uc_continue',
3505
+ 'ev_found_santa_claus_house',
3506
+ ],
3507
+ },
3508
+ ],
3509
+ },
3510
+ },
3163
3511
  },
3164
3512
  ],
3165
3513
  },
3166
3514
  },
3167
3515
  {
3168
- id: 'goto_ignore_cavern',
3169
- label: t('raids.happy_christmas.goto_ignore_cavern.label'),
3170
- goto: [
3171
- 'uc_continue',
3172
- 'ev_elf_scared',
3173
- 'rq_go_to_santa_claus',
3174
- 'ev_santa_claus_island',
3175
- 'uc_land_on_santa_claus_island',
3176
- 'ev_abandoned_village',
3177
- 'uc_go_forest',
3178
- 'c_already_meet_giant',
3179
- 'ev_forest_not_meet_giant',
3180
- 'uc_continue',
3181
- 'ev_found_santa_claus_house',
3182
- ],
3516
+ id: 'uc_ignore_cavern',
3517
+ label: t('raids.happy_christmas.uc_ignore_cavern.label'),
3518
+ output: {
3519
+ id: 'c_santa_claus_free',
3520
+ requirements: itemId === 'sailing_boat'
3521
+ ? {
3522
+ conditions: [
3523
+ 'santa_claus_free',
3524
+ ],
3525
+ mode: 'include',
3526
+ }
3527
+ : {
3528
+ conditions: [
3529
+ 'santa_claus_free',
3530
+ ],
3531
+ mode: 'include',
3532
+ },
3533
+ success: {
3534
+ id: 'ev_santa_claus_already_free',
3535
+ title: t('raids.happy_christmas.ev_santa_claus_already_free.title'),
3536
+ text: t('raids.happy_christmas.ev_santa_claus_already_free.text'),
3537
+ rewards: undefined,
3538
+ penalties: undefined,
3539
+ outputs: [
3540
+ {
3541
+ id: 'goto_return_desert_beach',
3542
+ label: t('raids.happy_christmas.goto_return_desert_beach.label'),
3543
+ goto: [
3544
+ 'uc_continue',
3545
+ 'ev_elf_scared',
3546
+ 'rq_go_to_santa_claus',
3547
+ 'ev_santa_claus_island',
3548
+ 'uc_land_on_santa_claus_island',
3549
+ 'ev_abandoned_village',
3550
+ ],
3551
+ },
3552
+ ],
3553
+ },
3554
+ failure: {
3555
+ id: 'ev_santa_claus_not_free',
3556
+ title: t('raids.happy_christmas.ev_santa_claus_not_free.title'),
3557
+ text: t('raids.happy_christmas.ev_santa_claus_not_free.text'),
3558
+ rewards: undefined,
3559
+ penalties: undefined,
3560
+ outputs: [
3561
+ {
3562
+ id: 'goto_continue',
3563
+ label: t('raids.happy_christmas.goto_continue.label'),
3564
+ goto: [
3565
+ 'uc_continue',
3566
+ 'ev_elf_scared',
3567
+ 'rq_go_to_santa_claus',
3568
+ 'ev_santa_claus_island',
3569
+ 'uc_land_on_santa_claus_island',
3570
+ 'ev_abandoned_village',
3571
+ 'uc_go_forest',
3572
+ 'c_already_meet_giant',
3573
+ 'ev_forest_not_meet_giant',
3574
+ 'uc_continue',
3575
+ 'ev_found_santa_claus_house',
3576
+ ],
3577
+ },
3578
+ ],
3579
+ },
3580
+ },
3183
3581
  },
3184
3582
  ],
3185
3583
  },
3186
3584
  },
3187
3585
  {
3188
- id: 'goto_try_another_way',
3189
- label: t('raids.happy_christmas.goto_try_another_way.label'),
3190
- goto: [
3191
- 'uc_continue',
3192
- 'ev_elf_scared',
3193
- 'rq_go_to_santa_claus',
3194
- 'ev_santa_claus_island',
3195
- 'uc_land_on_santa_claus_island',
3196
- 'ev_abandoned_village',
3197
- 'uc_go_forest',
3198
- 'c_already_meet_giant',
3199
- 'ev_forest_not_meet_giant',
3200
- 'uc_continue',
3201
- 'ev_found_santa_claus_house',
3202
- ],
3586
+ id: 'uc_try_another_way',
3587
+ label: t('raids.happy_christmas.uc_try_another_way.label'),
3588
+ output: {
3589
+ id: 'c_santa_claus_free',
3590
+ requirements: itemId === 'sailing_boat'
3591
+ ? {
3592
+ conditions: ['santa_claus_free'],
3593
+ mode: 'include',
3594
+ }
3595
+ : {
3596
+ conditions: ['santa_claus_free'],
3597
+ mode: 'include',
3598
+ },
3599
+ success: {
3600
+ id: 'ev_santa_claus_already_free',
3601
+ title: t('raids.happy_christmas.ev_santa_claus_already_free.title'),
3602
+ text: t('raids.happy_christmas.ev_santa_claus_already_free.text'),
3603
+ rewards: undefined,
3604
+ penalties: undefined,
3605
+ outputs: [
3606
+ {
3607
+ id: 'goto_return_desert_beach',
3608
+ label: t('raids.happy_christmas.goto_return_desert_beach.label'),
3609
+ goto: [
3610
+ 'uc_continue',
3611
+ 'ev_elf_scared',
3612
+ 'rq_go_to_santa_claus',
3613
+ 'ev_santa_claus_island',
3614
+ 'uc_land_on_santa_claus_island',
3615
+ 'ev_abandoned_village',
3616
+ ],
3617
+ },
3618
+ ],
3619
+ },
3620
+ failure: {
3621
+ id: 'ev_santa_claus_not_free',
3622
+ title: t('raids.happy_christmas.ev_santa_claus_not_free.title'),
3623
+ text: t('raids.happy_christmas.ev_santa_claus_not_free.text'),
3624
+ rewards: undefined,
3625
+ penalties: undefined,
3626
+ outputs: [
3627
+ {
3628
+ id: 'goto_continue',
3629
+ label: t('raids.happy_christmas.goto_continue.label'),
3630
+ goto: [
3631
+ 'uc_continue',
3632
+ 'ev_elf_scared',
3633
+ 'rq_go_to_santa_claus',
3634
+ 'ev_santa_claus_island',
3635
+ 'uc_land_on_santa_claus_island',
3636
+ 'ev_abandoned_village',
3637
+ 'uc_go_forest',
3638
+ 'c_already_meet_giant',
3639
+ 'ev_forest_not_meet_giant',
3640
+ 'uc_continue',
3641
+ 'ev_found_santa_claus_house',
3642
+ ],
3643
+ },
3644
+ ],
3645
+ },
3646
+ },
3203
3647
  },
3204
3648
  ],
3205
3649
  },