@opfr/raids 0.0.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.
Files changed (40) hide show
  1. package/dist/characteristics.d.ts +6 -0
  2. package/dist/characteristics.d.ts.map +1 -0
  3. package/dist/characteristics.js +40 -0
  4. package/dist/characteristics.js.map +1 -0
  5. package/dist/index.d.ts +5 -0
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.es.js +13785 -0
  8. package/dist/index.js +4 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/index.umd.js +36 -0
  11. package/dist/raids/index.d.ts +5 -0
  12. package/dist/raids/index.d.ts.map +1 -0
  13. package/dist/raids/index.js +5 -0
  14. package/dist/raids/index.js.map +1 -0
  15. package/dist/raids/mysteriousIsland.d.ts +4 -0
  16. package/dist/raids/mysteriousIsland.d.ts.map +1 -0
  17. package/dist/raids/mysteriousIsland.js +1040 -0
  18. package/dist/raids/mysteriousIsland.js.map +1 -0
  19. package/dist/raids/pirateCave.d.ts +4 -0
  20. package/dist/raids/pirateCave.d.ts.map +1 -0
  21. package/dist/raids/pirateCave.js +1032 -0
  22. package/dist/raids/pirateCave.js.map +1 -0
  23. package/dist/raids/resources.d.ts +4 -0
  24. package/dist/raids/resources.d.ts.map +1 -0
  25. package/dist/raids/resources.js +464 -0
  26. package/dist/raids/resources.js.map +1 -0
  27. package/dist/raids/training.d.ts +4 -0
  28. package/dist/raids/training.d.ts.map +1 -0
  29. package/dist/raids/training.js +269 -0
  30. package/dist/raids/training.js.map +1 -0
  31. package/dist/types.d.ts +60 -0
  32. package/dist/types.d.ts.map +1 -0
  33. package/dist/types.js +2 -0
  34. package/dist/types.js.map +1 -0
  35. package/dist/utils.d.ts +13 -0
  36. package/dist/utils.d.ts.map +1 -0
  37. package/dist/utils.js +90 -0
  38. package/dist/utils.js.map +1 -0
  39. package/locales/fr.json +696 -0
  40. package/package.json +40 -0
@@ -0,0 +1,1032 @@
1
+ import { t } from 'i18next';
2
+ import { findItem } from '@opfr/items';
3
+ import { formatRewards } from '../utils';
4
+ export const pirateCaveRaid = (itemId) => ({
5
+ id: 'pirate_cave',
6
+ name: t('raids.pirate_cave.name'),
7
+ description: t('raids.pirate_cave.description'),
8
+ isSpecial: false,
9
+ start: {
10
+ id: 'ev_start',
11
+ title: t('raids.pirate_cave.ev_start.title'),
12
+ text: t('raids.pirate_cave.ev_start.text'),
13
+ rewards: undefined,
14
+ penalties: undefined,
15
+ outputs: [
16
+ {
17
+ id: 'uc_continue',
18
+ label: t('raids.pirate_cave.uc_continue.label'),
19
+ output: {
20
+ id: 'ev_cave_entry',
21
+ title: t('raids.pirate_cave.ev_cave_entry.title'),
22
+ text: t('raids.pirate_cave.ev_cave_entry.text'),
23
+ rewards: undefined,
24
+ penalties: undefined,
25
+ outputs: [
26
+ {
27
+ id: 'uc_cave_entry',
28
+ label: t('raids.pirate_cave.uc_cave_entry.label'),
29
+ output: {
30
+ id: 'ev_cave_begin',
31
+ title: t('raids.pirate_cave.ev_cave_begin.title'),
32
+ text: t('raids.pirate_cave.ev_cave_begin.text'),
33
+ rewards: undefined,
34
+ penalties: undefined,
35
+ outputs: [
36
+ {
37
+ id: 'rq_cave_torch',
38
+ requirements: { wood: 1 },
39
+ label: t('raids.pirate_cave.rq_cave_torch.label', {
40
+ requirements: findItem('wood').name(1),
41
+ }),
42
+ output: {
43
+ id: 'ev_torch_on',
44
+ title: t('raids.pirate_cave.ev_torch_on.title'),
45
+ text: t('raids.pirate_cave.ev_torch_on.text'),
46
+ rewards: undefined,
47
+ penalties: undefined,
48
+ outputs: [
49
+ {
50
+ id: 'uc_left_path',
51
+ label: t('raids.pirate_cave.uc_left_path.label'),
52
+ output: {
53
+ id: 'ev_left_path',
54
+ title: t('raids.pirate_cave.ev_left_path.title'),
55
+ text: t('raids.pirate_cave.ev_left_path.text'),
56
+ rewards: undefined,
57
+ penalties: undefined,
58
+ outputs: [
59
+ {
60
+ id: 'rq_remove_traps',
61
+ requirements: { tools: 1 },
62
+ label: t('raids.pirate_cave.rq_remove_traps.label', { requirements: findItem('tools').name(1) }),
63
+ output: {
64
+ id: 'ev_no_trap',
65
+ title: t('raids.pirate_cave.ev_no_trap.title'),
66
+ text: t('raids.pirate_cave.ev_no_trap.text', {
67
+ rewards: formatRewards(itemId === 'rudder'
68
+ ? { xp: 55000 }
69
+ : itemId === 'rescue_boat'
70
+ ? { xp: 50000, berry: 0 }
71
+ : { xp: 50000 }, undefined),
72
+ }),
73
+ rewards: itemId === 'rudder'
74
+ ? { xp: 55000 }
75
+ : itemId === 'rescue_boat'
76
+ ? { xp: 50000, berry: 0 }
77
+ : { xp: 50000 },
78
+ penalties: undefined,
79
+ outputs: [
80
+ {
81
+ id: 'uc_open_chest',
82
+ label: t('raids.pirate_cave.uc_open_chest.label'),
83
+ output: {
84
+ id: 'end_open_chest',
85
+ title: t('raids.pirate_cave.end_open_chest.title'),
86
+ text: t('raids.pirate_cave.end_open_chest.text', {
87
+ rewards: formatRewards(itemId === 'rudder'
88
+ ? {
89
+ berry: 100000000,
90
+ sapphire: 1,
91
+ xp: 0,
92
+ }
93
+ : itemId === 'rescue_boat'
94
+ ? {
95
+ berry: 150000000,
96
+ sapphire: 1,
97
+ }
98
+ : {
99
+ berry: 100000000,
100
+ sapphire: 1,
101
+ }, undefined),
102
+ }),
103
+ rewards: itemId === 'rudder'
104
+ ? {
105
+ berry: 100000000,
106
+ sapphire: 1,
107
+ xp: 0,
108
+ }
109
+ : itemId === 'rescue_boat'
110
+ ? {
111
+ berry: 150000000,
112
+ sapphire: 1,
113
+ }
114
+ : {
115
+ berry: 100000000,
116
+ sapphire: 1,
117
+ },
118
+ penalties: undefined,
119
+ },
120
+ },
121
+ {
122
+ id: 'uc_explore_room',
123
+ label: t('raids.pirate_cave.uc_explore_room.label'),
124
+ output: {
125
+ id: 'end_explore_room',
126
+ title: t('raids.pirate_cave.end_explore_room.title'),
127
+ text: t('raids.pirate_cave.end_explore_room.text', {
128
+ rewards: formatRewards(itemId === 'rudder'
129
+ ? {
130
+ berry: 200000000,
131
+ ruby: 1,
132
+ xp: 0,
133
+ }
134
+ : itemId === 'rescue_boat'
135
+ ? {
136
+ berry: 300000000,
137
+ ruby: 1,
138
+ }
139
+ : {
140
+ berry: 200000000,
141
+ ruby: 1,
142
+ }, undefined),
143
+ }),
144
+ rewards: itemId === 'rudder'
145
+ ? {
146
+ berry: 200000000,
147
+ ruby: 1,
148
+ xp: 0,
149
+ }
150
+ : itemId === 'rescue_boat'
151
+ ? { berry: 300000000, ruby: 1 }
152
+ : { berry: 200000000, ruby: 1 },
153
+ penalties: undefined,
154
+ },
155
+ },
156
+ ],
157
+ },
158
+ },
159
+ {
160
+ id: 'uc_dodge_traps',
161
+ label: t('raids.pirate_cave.uc_dodge_traps.label'),
162
+ output: {
163
+ id: 'c_agility_trap',
164
+ requirements: itemId === 'sailing_boat'
165
+ ? { agility: 103.5 }
166
+ : { agility: 115 },
167
+ success: {
168
+ id: 'ev_dodge_traps_success',
169
+ title: t('raids.pirate_cave.ev_dodge_traps_success.title'),
170
+ text: t('raids.pirate_cave.ev_dodge_traps_success.text', {
171
+ rewards: formatRewards(itemId === 'rudder'
172
+ ? { xp: 55000 }
173
+ : itemId === 'rescue_boat'
174
+ ? { xp: 50000, berry: 0 }
175
+ : { xp: 50000 }, undefined),
176
+ }),
177
+ rewards: itemId === 'rudder'
178
+ ? { xp: 55000 }
179
+ : itemId === 'rescue_boat'
180
+ ? { xp: 50000, berry: 0 }
181
+ : { xp: 50000 },
182
+ penalties: undefined,
183
+ outputs: [
184
+ {
185
+ id: 'uc_open_chest',
186
+ label: t('raids.pirate_cave.uc_open_chest.label'),
187
+ output: {
188
+ id: 'end_open_chest',
189
+ title: t('raids.pirate_cave.end_open_chest.title'),
190
+ text: t('raids.pirate_cave.end_open_chest.text', {
191
+ rewards: formatRewards(itemId === 'rudder'
192
+ ? {
193
+ berry: 100000000,
194
+ sapphire: 1,
195
+ xp: 0,
196
+ }
197
+ : itemId === 'rescue_boat'
198
+ ? {
199
+ berry: 150000000,
200
+ sapphire: 1,
201
+ }
202
+ : {
203
+ berry: 100000000,
204
+ sapphire: 1,
205
+ }, undefined),
206
+ }),
207
+ rewards: itemId === 'rudder'
208
+ ? {
209
+ berry: 100000000,
210
+ sapphire: 1,
211
+ xp: 0,
212
+ }
213
+ : itemId === 'rescue_boat'
214
+ ? {
215
+ berry: 150000000,
216
+ sapphire: 1,
217
+ }
218
+ : {
219
+ berry: 100000000,
220
+ sapphire: 1,
221
+ },
222
+ penalties: undefined,
223
+ },
224
+ },
225
+ {
226
+ id: 'uc_explore_room',
227
+ label: t('raids.pirate_cave.uc_explore_room.label'),
228
+ output: {
229
+ id: 'end_explore_room',
230
+ title: t('raids.pirate_cave.end_explore_room.title'),
231
+ text: t('raids.pirate_cave.end_explore_room.text', {
232
+ rewards: formatRewards(itemId === 'rudder'
233
+ ? {
234
+ berry: 200000000,
235
+ ruby: 1,
236
+ xp: 0,
237
+ }
238
+ : itemId === 'rescue_boat'
239
+ ? {
240
+ berry: 300000000,
241
+ ruby: 1,
242
+ }
243
+ : {
244
+ berry: 200000000,
245
+ ruby: 1,
246
+ }, undefined),
247
+ }),
248
+ rewards: itemId === 'rudder'
249
+ ? {
250
+ berry: 200000000,
251
+ ruby: 1,
252
+ xp: 0,
253
+ }
254
+ : itemId === 'rescue_boat'
255
+ ? { berry: 300000000, ruby: 1 }
256
+ : { berry: 200000000, ruby: 1 },
257
+ penalties: undefined,
258
+ },
259
+ },
260
+ ],
261
+ },
262
+ failure: {
263
+ id: 'end_dodge_traps_failure',
264
+ title: t('raids.pirate_cave.end_dodge_traps_failure.title'),
265
+ text: t('raids.pirate_cave.end_dodge_traps_failure.text', {
266
+ rewards: formatRewards(itemId === 'rudder'
267
+ ? { berry: 100000, xp: 7700 }
268
+ : itemId === 'rescue_boat'
269
+ ? { berry: 150000, xp: 7000 }
270
+ : { berry: 100000, xp: 7000 }, itemId === 'anchor'
271
+ ? { hp: 25 }
272
+ : { hp: 50 }),
273
+ }),
274
+ rewards: itemId === 'rudder'
275
+ ? { berry: 100000, xp: 7700 }
276
+ : itemId === 'rescue_boat'
277
+ ? { berry: 150000, xp: 7000 }
278
+ : { berry: 100000, xp: 7000 },
279
+ penalties: itemId === 'anchor'
280
+ ? { hp: 25 }
281
+ : { hp: 50 },
282
+ },
283
+ },
284
+ },
285
+ ],
286
+ },
287
+ },
288
+ {
289
+ id: 'uc_right_path',
290
+ label: t('raids.pirate_cave.uc_right_path.label'),
291
+ output: {
292
+ id: 'ev_right_path',
293
+ title: t('raids.pirate_cave.ev_right_path.title'),
294
+ text: t('raids.pirate_cave.ev_right_path.text'),
295
+ rewards: undefined,
296
+ penalties: undefined,
297
+ outputs: [
298
+ {
299
+ id: 'uc_seek_chamber',
300
+ label: t('raids.pirate_cave.uc_seek_chamber.label'),
301
+ output: {
302
+ id: 'end_chamber',
303
+ title: t('raids.pirate_cave.end_chamber.title'),
304
+ text: t('raids.pirate_cave.end_chamber.text', {
305
+ rewards: formatRewards(itemId === 'rudder'
306
+ ? {
307
+ berry: 20000000,
308
+ xp: 27500,
309
+ scroll_wisdom: 1,
310
+ }
311
+ : itemId === 'rescue_boat'
312
+ ? {
313
+ berry: 30000000,
314
+ xp: 25000,
315
+ scroll_wisdom: 1,
316
+ }
317
+ : {
318
+ berry: 20000000,
319
+ xp: 25000,
320
+ scroll_wisdom: 1,
321
+ }, undefined),
322
+ }),
323
+ rewards: itemId === 'rudder'
324
+ ? {
325
+ berry: 20000000,
326
+ xp: 27500,
327
+ scroll_wisdom: 1,
328
+ }
329
+ : itemId === 'rescue_boat'
330
+ ? {
331
+ berry: 30000000,
332
+ xp: 25000,
333
+ scroll_wisdom: 1,
334
+ }
335
+ : {
336
+ berry: 20000000,
337
+ xp: 25000,
338
+ scroll_wisdom: 1,
339
+ },
340
+ penalties: undefined,
341
+ },
342
+ },
343
+ {
344
+ id: 'uc_keep_going',
345
+ label: t('raids.pirate_cave.uc_keep_going.label'),
346
+ output: {
347
+ id: 'ev_ghost_trap',
348
+ title: t('raids.pirate_cave.ev_ghost_trap.title'),
349
+ text: t('raids.pirate_cave.ev_ghost_trap.text'),
350
+ rewards: undefined,
351
+ penalties: undefined,
352
+ outputs: [
353
+ {
354
+ id: 'uc_fight_ghost',
355
+ label: t('raids.pirate_cave.uc_fight_ghost.label'),
356
+ output: {
357
+ id: 'c_strength_ghosts',
358
+ requirements: itemId === 'sailing_boat'
359
+ ? { strength: 112.5 }
360
+ : { strength: 125 },
361
+ success: {
362
+ id: 'end_fight_ghost_success',
363
+ title: t('raids.pirate_cave.end_fight_ghost_success.title'),
364
+ text: t('raids.pirate_cave.end_fight_ghost_success.text', {
365
+ rewards: formatRewards(itemId === 'rudder'
366
+ ? {
367
+ berry: 200000000,
368
+ xp: 88000,
369
+ }
370
+ : itemId === 'rescue_boat'
371
+ ? {
372
+ berry: 300000000,
373
+ xp: 80000,
374
+ }
375
+ : {
376
+ berry: 200000000,
377
+ xp: 80000,
378
+ }, undefined),
379
+ }),
380
+ rewards: itemId === 'rudder'
381
+ ? { berry: 200000000, xp: 88000 }
382
+ : itemId === 'rescue_boat'
383
+ ? {
384
+ berry: 300000000,
385
+ xp: 80000,
386
+ }
387
+ : {
388
+ berry: 200000000,
389
+ xp: 80000,
390
+ },
391
+ penalties: undefined,
392
+ },
393
+ failure: {
394
+ id: 'end_fight_ghost_failure',
395
+ title: t('raids.pirate_cave.end_fight_ghost_failure.title'),
396
+ text: t('raids.pirate_cave.end_fight_ghost_failure.text', {
397
+ rewards: formatRewards(itemId === 'rudder'
398
+ ? { berry: 50000, xp: 88000 }
399
+ : itemId === 'rescue_boat'
400
+ ? {
401
+ berry: 75000,
402
+ xp: 80000,
403
+ }
404
+ : {
405
+ berry: 50000,
406
+ xp: 80000,
407
+ }, itemId === 'anchor'
408
+ ? { hp: 300 }
409
+ : { hp: 600 }),
410
+ }),
411
+ rewards: itemId === 'rudder'
412
+ ? { berry: 50000, xp: 88000 }
413
+ : itemId === 'rescue_boat'
414
+ ? { berry: 75000, xp: 80000 }
415
+ : { berry: 50000, xp: 80000 },
416
+ penalties: itemId === 'anchor'
417
+ ? { hp: 300 }
418
+ : { hp: 600 },
419
+ },
420
+ },
421
+ },
422
+ {
423
+ id: 'uc_flee',
424
+ label: t('raids.pirate_cave.uc_flee.label'),
425
+ output: {
426
+ id: 'c_agility_ghosts',
427
+ requirements: itemId === 'sailing_boat'
428
+ ? { agility: 99 }
429
+ : { agility: 110 },
430
+ success: {
431
+ id: 'end_flee_ghost_success',
432
+ title: t('raids.pirate_cave.end_flee_ghost_success.title'),
433
+ text: t('raids.pirate_cave.end_flee_ghost_success.text', {
434
+ rewards: formatRewards(itemId === 'rudder'
435
+ ? { xp: 11000 }
436
+ : itemId === 'rescue_boat'
437
+ ? { xp: 10000, berry: 0 }
438
+ : { xp: 10000 }, undefined),
439
+ }),
440
+ rewards: itemId === 'rudder'
441
+ ? { xp: 11000 }
442
+ : itemId === 'rescue_boat'
443
+ ? { xp: 10000, berry: 0 }
444
+ : { xp: 10000 },
445
+ penalties: undefined,
446
+ },
447
+ failure: {
448
+ id: 'end_flee_ghost_failure',
449
+ title: t('raids.pirate_cave.end_flee_ghost_failure.title'),
450
+ text: t('raids.pirate_cave.end_flee_ghost_failure.text', {
451
+ rewards: formatRewards(itemId === 'rudder'
452
+ ? { xp: 11000 }
453
+ : itemId === 'rescue_boat'
454
+ ? { xp: 10000, berry: 0 }
455
+ : { xp: 10000 }, itemId === 'anchor'
456
+ ? { berry: 2500000, hp: 150 }
457
+ : { berry: 5000000, hp: 300 }),
458
+ }),
459
+ rewards: itemId === 'rudder'
460
+ ? { xp: 11000 }
461
+ : itemId === 'rescue_boat'
462
+ ? { xp: 10000, berry: 0 }
463
+ : { xp: 10000 },
464
+ penalties: itemId === 'anchor'
465
+ ? { berry: 2500000, hp: 150 }
466
+ : { berry: 5000000, hp: 300 },
467
+ },
468
+ },
469
+ },
470
+ ],
471
+ },
472
+ },
473
+ ],
474
+ },
475
+ },
476
+ ],
477
+ },
478
+ },
479
+ {
480
+ id: 'uc_walk_dark',
481
+ label: t('raids.pirate_cave.uc_walk_dark.label'),
482
+ output: {
483
+ id: 'ev_secret_passage',
484
+ title: t('raids.pirate_cave.ev_secret_passage.title'),
485
+ text: t('raids.pirate_cave.ev_secret_passage.text'),
486
+ rewards: undefined,
487
+ penalties: undefined,
488
+ outputs: [
489
+ {
490
+ id: 'uc_sneak_walk',
491
+ label: t('raids.pirate_cave.uc_sneak_walk.label'),
492
+ output: {
493
+ id: 'c_agility_sneak_walk',
494
+ requirements: itemId === 'sailing_boat'
495
+ ? { agility: 103.5 }
496
+ : { agility: 115 },
497
+ success: {
498
+ id: 'ev_sneak_walk_success',
499
+ title: t('raids.pirate_cave.ev_sneak_walk_success.title'),
500
+ text: t('raids.pirate_cave.ev_sneak_walk_success.text', {
501
+ rewards: formatRewards(itemId === 'rudder'
502
+ ? { xp: 55000 }
503
+ : itemId === 'rescue_boat'
504
+ ? { xp: 50000, berry: 0 }
505
+ : { xp: 50000 }, undefined),
506
+ }),
507
+ rewards: itemId === 'rudder'
508
+ ? { xp: 55000 }
509
+ : itemId === 'rescue_boat'
510
+ ? { xp: 50000, berry: 0 }
511
+ : { xp: 50000 },
512
+ penalties: undefined,
513
+ outputs: [
514
+ {
515
+ id: 'uc_fill_bag',
516
+ label: t('raids.pirate_cave.uc_fill_bag.label'),
517
+ output: {
518
+ id: 'c_strength_fill_bag',
519
+ requirements: itemId === 'sailing_boat'
520
+ ? { strength: 99 }
521
+ : { strength: 110 },
522
+ success: {
523
+ id: 'end_fill_bag_success',
524
+ title: t('raids.pirate_cave.end_fill_bag_success.title'),
525
+ text: t('raids.pirate_cave.end_fill_bag_success.text', {
526
+ rewards: formatRewards(itemId === 'rudder'
527
+ ? {
528
+ empty_chest: 1,
529
+ iron: 4,
530
+ repair_wood_plank: 5,
531
+ repair_tissue: 4,
532
+ repair_rope: 4,
533
+ xp: 0,
534
+ }
535
+ : itemId === 'rescue_boat'
536
+ ? {
537
+ empty_chest: 1,
538
+ iron: 4,
539
+ repair_wood_plank: 5,
540
+ repair_tissue: 4,
541
+ repair_rope: 4,
542
+ berry: 0,
543
+ }
544
+ : {
545
+ empty_chest: 1,
546
+ iron: 4,
547
+ repair_wood_plank: 5,
548
+ repair_tissue: 4,
549
+ repair_rope: 4,
550
+ }, undefined),
551
+ }),
552
+ rewards: itemId === 'rudder'
553
+ ? {
554
+ empty_chest: 1,
555
+ iron: 4,
556
+ repair_wood_plank: 5,
557
+ repair_tissue: 4,
558
+ repair_rope: 4,
559
+ xp: 0,
560
+ }
561
+ : itemId === 'rescue_boat'
562
+ ? {
563
+ empty_chest: 1,
564
+ iron: 4,
565
+ repair_wood_plank: 5,
566
+ repair_tissue: 4,
567
+ repair_rope: 4,
568
+ berry: 0,
569
+ }
570
+ : {
571
+ empty_chest: 1,
572
+ iron: 4,
573
+ repair_wood_plank: 5,
574
+ repair_tissue: 4,
575
+ repair_rope: 4,
576
+ },
577
+ penalties: undefined,
578
+ },
579
+ failure: {
580
+ id: 'end_fill_bag_failure',
581
+ title: t('raids.pirate_cave.end_fill_bag_failure.title'),
582
+ text: t('raids.pirate_cave.end_fill_bag_failure.text', {
583
+ rewards: formatRewards(itemId === 'rudder'
584
+ ? {
585
+ repair_wood_plank: 2,
586
+ repair_tissue: 2,
587
+ repair_rope: 2,
588
+ xp: 0,
589
+ }
590
+ : itemId === 'rescue_boat'
591
+ ? {
592
+ repair_wood_plank: 2,
593
+ repair_tissue: 2,
594
+ repair_rope: 2,
595
+ berry: 0,
596
+ }
597
+ : {
598
+ repair_wood_plank: 2,
599
+ repair_tissue: 2,
600
+ repair_rope: 2,
601
+ }, undefined),
602
+ }),
603
+ rewards: itemId === 'rudder'
604
+ ? {
605
+ repair_wood_plank: 2,
606
+ repair_tissue: 2,
607
+ repair_rope: 2,
608
+ xp: 0,
609
+ }
610
+ : itemId === 'rescue_boat'
611
+ ? {
612
+ repair_wood_plank: 2,
613
+ repair_tissue: 2,
614
+ repair_rope: 2,
615
+ berry: 0,
616
+ }
617
+ : {
618
+ repair_wood_plank: 2,
619
+ repair_tissue: 2,
620
+ repair_rope: 2,
621
+ },
622
+ penalties: undefined,
623
+ },
624
+ },
625
+ },
626
+ ],
627
+ },
628
+ failure: {
629
+ id: 'ev_sneak_walk_failure',
630
+ title: t('raids.pirate_cave.ev_sneak_walk_failure.title'),
631
+ text: t('raids.pirate_cave.ev_sneak_walk_failure.text', {
632
+ rewards: formatRewards(itemId === 'rudder'
633
+ ? { xp: 11000 }
634
+ : itemId === 'rescue_boat'
635
+ ? { xp: 10000, berry: 0 }
636
+ : { xp: 10000 }, undefined),
637
+ }),
638
+ rewards: itemId === 'rudder'
639
+ ? { xp: 11000 }
640
+ : itemId === 'rescue_boat'
641
+ ? { xp: 10000, berry: 0 }
642
+ : { xp: 10000 },
643
+ penalties: undefined,
644
+ outputs: [
645
+ {
646
+ id: 'uc_keep_breath',
647
+ label: t('raids.pirate_cave.uc_keep_breath.label'),
648
+ output: {
649
+ id: 'c_chance_keep_breath',
650
+ requirements: itemId === 'sailing_boat'
651
+ ? { chance: 103.5 }
652
+ : { chance: 115 },
653
+ success: {
654
+ id: 'ev_keep_breath_success',
655
+ title: t('raids.pirate_cave.ev_keep_breath_success.title'),
656
+ text: t('raids.pirate_cave.ev_keep_breath_success.text', {
657
+ rewards: formatRewards(itemId === 'rudder'
658
+ ? { xp: 55000 }
659
+ : itemId === 'rescue_boat'
660
+ ? { xp: 50000, berry: 0 }
661
+ : { xp: 50000 }, undefined),
662
+ }),
663
+ rewards: itemId === 'rudder'
664
+ ? { xp: 55000 }
665
+ : itemId === 'rescue_boat'
666
+ ? { xp: 50000, berry: 0 }
667
+ : { xp: 50000 },
668
+ penalties: undefined,
669
+ outputs: [
670
+ {
671
+ id: 'uc_fill_bag',
672
+ label: t('raids.pirate_cave.uc_fill_bag.label'),
673
+ output: {
674
+ id: 'c_strength_fill_bag',
675
+ requirements: itemId === 'sailing_boat'
676
+ ? { strength: 99 }
677
+ : { strength: 110 },
678
+ success: {
679
+ id: 'end_fill_bag_success',
680
+ title: t('raids.pirate_cave.end_fill_bag_success.title'),
681
+ text: t('raids.pirate_cave.end_fill_bag_success.text', {
682
+ rewards: formatRewards(itemId === 'rudder'
683
+ ? {
684
+ empty_chest: 1,
685
+ iron: 4,
686
+ repair_wood_plank: 5,
687
+ repair_tissue: 4,
688
+ repair_rope: 4,
689
+ xp: 0,
690
+ }
691
+ : itemId === 'rescue_boat'
692
+ ? {
693
+ empty_chest: 1,
694
+ iron: 4,
695
+ repair_wood_plank: 5,
696
+ repair_tissue: 4,
697
+ repair_rope: 4,
698
+ berry: 0,
699
+ }
700
+ : {
701
+ empty_chest: 1,
702
+ iron: 4,
703
+ repair_wood_plank: 5,
704
+ repair_tissue: 4,
705
+ repair_rope: 4,
706
+ }, undefined),
707
+ }),
708
+ rewards: itemId === 'rudder'
709
+ ? {
710
+ empty_chest: 1,
711
+ iron: 4,
712
+ repair_wood_plank: 5,
713
+ repair_tissue: 4,
714
+ repair_rope: 4,
715
+ xp: 0,
716
+ }
717
+ : itemId === 'rescue_boat'
718
+ ? {
719
+ empty_chest: 1,
720
+ iron: 4,
721
+ repair_wood_plank: 5,
722
+ repair_tissue: 4,
723
+ repair_rope: 4,
724
+ berry: 0,
725
+ }
726
+ : {
727
+ empty_chest: 1,
728
+ iron: 4,
729
+ repair_wood_plank: 5,
730
+ repair_tissue: 4,
731
+ repair_rope: 4,
732
+ },
733
+ penalties: undefined,
734
+ },
735
+ failure: {
736
+ id: 'end_fill_bag_failure',
737
+ title: t('raids.pirate_cave.end_fill_bag_failure.title'),
738
+ text: t('raids.pirate_cave.end_fill_bag_failure.text', {
739
+ rewards: formatRewards(itemId === 'rudder'
740
+ ? {
741
+ repair_wood_plank: 2,
742
+ repair_tissue: 2,
743
+ repair_rope: 2,
744
+ xp: 0,
745
+ }
746
+ : itemId === 'rescue_boat'
747
+ ? {
748
+ repair_wood_plank: 2,
749
+ repair_tissue: 2,
750
+ repair_rope: 2,
751
+ berry: 0,
752
+ }
753
+ : {
754
+ repair_wood_plank: 2,
755
+ repair_tissue: 2,
756
+ repair_rope: 2,
757
+ }, undefined),
758
+ }),
759
+ rewards: itemId === 'rudder'
760
+ ? {
761
+ repair_wood_plank: 2,
762
+ repair_tissue: 2,
763
+ repair_rope: 2,
764
+ xp: 0,
765
+ }
766
+ : itemId === 'rescue_boat'
767
+ ? {
768
+ repair_wood_plank: 2,
769
+ repair_tissue: 2,
770
+ repair_rope: 2,
771
+ berry: 0,
772
+ }
773
+ : {
774
+ repair_wood_plank: 2,
775
+ repair_tissue: 2,
776
+ repair_rope: 2,
777
+ },
778
+ penalties: undefined,
779
+ },
780
+ },
781
+ },
782
+ ],
783
+ },
784
+ failure: {
785
+ id: 'ev_keep_breath_failure',
786
+ title: t('raids.pirate_cave.ev_keep_breath_failure.title'),
787
+ text: t('raids.pirate_cave.ev_keep_breath_failure.text', {
788
+ rewards: formatRewards(itemId === 'rudder'
789
+ ? { xp: 11000 }
790
+ : itemId === 'rescue_boat'
791
+ ? { xp: 10000, berry: 0 }
792
+ : { xp: 10000 }, undefined),
793
+ }),
794
+ rewards: itemId === 'rudder'
795
+ ? { xp: 11000 }
796
+ : itemId === 'rescue_boat'
797
+ ? { xp: 10000, berry: 0 }
798
+ : { xp: 10000 },
799
+ penalties: undefined,
800
+ outputs: [
801
+ {
802
+ id: 'uc_fight_pirate',
803
+ label: t('raids.pirate_cave.uc_fight_pirate.label'),
804
+ output: {
805
+ id: 'c_strength_fight_pirate',
806
+ requirements: itemId === 'sailing_boat'
807
+ ? { strength: 108 }
808
+ : { strength: 120 },
809
+ success: {
810
+ id: 'end_fight_pirate_success',
811
+ title: t('raids.pirate_cave.end_fight_pirate_success.title'),
812
+ text: t('raids.pirate_cave.end_fight_pirate_success.text', {
813
+ rewards: formatRewards(itemId === 'rudder'
814
+ ? {
815
+ empty_chest: 1,
816
+ iron: 4,
817
+ repair_wood_plank: 4,
818
+ xp: 0,
819
+ }
820
+ : itemId === 'rescue_boat'
821
+ ? {
822
+ empty_chest: 1,
823
+ iron: 4,
824
+ repair_wood_plank: 4,
825
+ berry: 0,
826
+ }
827
+ : {
828
+ empty_chest: 1,
829
+ iron: 4,
830
+ repair_wood_plank: 4,
831
+ }, undefined),
832
+ }),
833
+ rewards: itemId === 'rudder'
834
+ ? {
835
+ empty_chest: 1,
836
+ iron: 4,
837
+ repair_wood_plank: 4,
838
+ xp: 0,
839
+ }
840
+ : itemId === 'rescue_boat'
841
+ ? {
842
+ empty_chest: 1,
843
+ iron: 4,
844
+ repair_wood_plank: 4,
845
+ berry: 0,
846
+ }
847
+ : {
848
+ empty_chest: 1,
849
+ iron: 4,
850
+ repair_wood_plank: 4,
851
+ },
852
+ penalties: undefined,
853
+ },
854
+ failure: {
855
+ id: 'end_fight_pirate_failure',
856
+ title: t('raids.pirate_cave.end_fight_pirate_failure.title'),
857
+ text: t('raids.pirate_cave.end_fight_pirate_failure.text', {
858
+ rewards: formatRewards(itemId === 'rudder'
859
+ ? { xp: 11000 }
860
+ : itemId === 'rescue_boat'
861
+ ? {
862
+ xp: 10000,
863
+ berry: 0,
864
+ }
865
+ : { xp: 10000 }, itemId === 'anchor'
866
+ ? { hp: 250 }
867
+ : { hp: 500 }),
868
+ }),
869
+ rewards: itemId === 'rudder'
870
+ ? { xp: 11000 }
871
+ : itemId === 'rescue_boat'
872
+ ? { xp: 10000, berry: 0 }
873
+ : { xp: 10000 },
874
+ penalties: itemId === 'anchor'
875
+ ? { hp: 250 }
876
+ : { hp: 500 },
877
+ },
878
+ },
879
+ },
880
+ {
881
+ id: 'uc_flee',
882
+ label: t('raids.pirate_cave.uc_flee.label'),
883
+ output: {
884
+ id: 'c_agility_flee_pirate',
885
+ requirements: itemId === 'sailing_boat'
886
+ ? { agility: 99 }
887
+ : { agility: 110 },
888
+ success: {
889
+ id: 'end_flee_pirate_success',
890
+ title: t('raids.pirate_cave.end_flee_pirate_success.title'),
891
+ text: t('raids.pirate_cave.end_flee_pirate_success.text', {
892
+ rewards: formatRewards(itemId === 'rudder'
893
+ ? { xp: 55000 }
894
+ : itemId === 'rescue_boat'
895
+ ? {
896
+ xp: 50000,
897
+ berry: 0,
898
+ }
899
+ : { xp: 50000 }, undefined),
900
+ }),
901
+ rewards: itemId === 'rudder'
902
+ ? { xp: 55000 }
903
+ : itemId === 'rescue_boat'
904
+ ? { xp: 50000, berry: 0 }
905
+ : { xp: 50000 },
906
+ penalties: undefined,
907
+ },
908
+ failure: {
909
+ id: 'end_flee_pirate_failure',
910
+ title: t('raids.pirate_cave.end_flee_pirate_failure.title'),
911
+ text: t('raids.pirate_cave.end_flee_pirate_failure.text', {
912
+ rewards: formatRewards(itemId === 'rudder'
913
+ ? { xp: 11000 }
914
+ : itemId === 'rescue_boat'
915
+ ? {
916
+ xp: 10000,
917
+ berry: 0,
918
+ }
919
+ : { xp: 10000 }, itemId === 'anchor'
920
+ ? { hp: 150 }
921
+ : { hp: 300 }),
922
+ }),
923
+ rewards: itemId === 'rudder'
924
+ ? { xp: 11000 }
925
+ : itemId === 'rescue_boat'
926
+ ? { xp: 10000, berry: 0 }
927
+ : { xp: 10000 },
928
+ penalties: itemId === 'anchor'
929
+ ? { hp: 150 }
930
+ : { hp: 300 },
931
+ },
932
+ },
933
+ },
934
+ ],
935
+ },
936
+ },
937
+ },
938
+ ],
939
+ },
940
+ },
941
+ },
942
+ {
943
+ id: 'uc_stun_pirate',
944
+ label: t('raids.pirate_cave.uc_stun_pirate.label'),
945
+ output: {
946
+ id: 'c_strength_stun_pirate',
947
+ requirements: itemId === 'sailing_boat'
948
+ ? { strength: 67.5 }
949
+ : { strength: 75 },
950
+ success: {
951
+ id: 'end_stun_pirate_success',
952
+ title: t('raids.pirate_cave.end_stun_pirate_success.title'),
953
+ text: t('raids.pirate_cave.end_stun_pirate_success.text', {
954
+ rewards: formatRewards(itemId === 'rudder'
955
+ ? {
956
+ xp: 82500,
957
+ empty_chest: 1,
958
+ iron: 4,
959
+ repair_wood_plank: 4,
960
+ }
961
+ : itemId === 'rescue_boat'
962
+ ? {
963
+ xp: 75000,
964
+ empty_chest: 1,
965
+ iron: 4,
966
+ repair_wood_plank: 4,
967
+ berry: 0,
968
+ }
969
+ : {
970
+ xp: 75000,
971
+ empty_chest: 1,
972
+ iron: 4,
973
+ repair_wood_plank: 4,
974
+ }, undefined),
975
+ }),
976
+ rewards: itemId === 'rudder'
977
+ ? {
978
+ xp: 82500,
979
+ empty_chest: 1,
980
+ iron: 4,
981
+ repair_wood_plank: 4,
982
+ }
983
+ : itemId === 'rescue_boat'
984
+ ? {
985
+ xp: 75000,
986
+ empty_chest: 1,
987
+ iron: 4,
988
+ repair_wood_plank: 4,
989
+ berry: 0,
990
+ }
991
+ : {
992
+ xp: 75000,
993
+ empty_chest: 1,
994
+ iron: 4,
995
+ repair_wood_plank: 4,
996
+ },
997
+ penalties: undefined,
998
+ },
999
+ failure: {
1000
+ id: 'end_stun_pirate_failure',
1001
+ title: t('raids.pirate_cave.end_stun_pirate_failure.title'),
1002
+ text: t('raids.pirate_cave.end_stun_pirate_failure.text', {
1003
+ rewards: formatRewards(itemId === 'rudder'
1004
+ ? { xp: 27500 }
1005
+ : itemId === 'rescue_boat'
1006
+ ? { xp: 25000, berry: 0 }
1007
+ : { xp: 25000 }, itemId === 'anchor'
1008
+ ? { hp: 100 }
1009
+ : { hp: 200 }),
1010
+ }),
1011
+ rewards: itemId === 'rudder'
1012
+ ? { xp: 27500 }
1013
+ : itemId === 'rescue_boat'
1014
+ ? { xp: 25000, berry: 0 }
1015
+ : { xp: 25000 },
1016
+ penalties: itemId === 'anchor' ? { hp: 100 } : { hp: 200 },
1017
+ },
1018
+ },
1019
+ },
1020
+ ],
1021
+ },
1022
+ },
1023
+ ],
1024
+ },
1025
+ },
1026
+ ],
1027
+ },
1028
+ },
1029
+ ],
1030
+ },
1031
+ });
1032
+ //# sourceMappingURL=pirateCave.js.map