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