@opfr/raids 0.16.10 → 1.2.0
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/events/callbacks.d.ts +5 -0
- package/dist/events/callbacks.d.ts.map +1 -0
- package/dist/events/callbacks.js +38 -0
- package/dist/events/callbacks.js.map +1 -0
- package/dist/events/event.d.ts +7 -0
- package/dist/events/event.d.ts.map +1 -0
- package/dist/events/event.js +14 -0
- package/dist/events/event.js.map +1 -0
- package/dist/events/index.d.ts +2 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +9 -0
- package/dist/events/index.js.map +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +903 -852
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/raids/mysteriousIsland.d.ts +2 -3
- package/dist/raids/mysteriousIsland.d.ts.map +1 -1
- package/dist/raids/mysteriousIsland.js +221 -125
- package/dist/raids/mysteriousIsland.js.map +1 -1
- package/dist/raids/pirateCave.d.ts +2 -3
- package/dist/raids/pirateCave.d.ts.map +1 -1
- package/dist/raids/pirateCave.js +162 -96
- package/dist/raids/pirateCave.js.map +1 -1
- package/dist/raids/resources.d.ts +2 -3
- package/dist/raids/resources.d.ts.map +1 -1
- package/dist/raids/resources.js +159 -86
- package/dist/raids/resources.js.map +1 -1
- package/dist/raids/training.d.ts +2 -3
- package/dist/raids/training.d.ts.map +1 -1
- package/dist/raids/training.js +96 -49
- package/dist/raids/training.js.map +1 -1
- package/dist/utils.d.ts +4 -5
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +39 -40
- package/dist/utils.js.map +1 -1
- package/locales/fr.json +0 -711
- package/package.json +17 -14
- package/dist/characteristics.d.ts +0 -6
- package/dist/characteristics.d.ts.map +0 -1
- package/dist/characteristics.js +0 -27
- package/dist/characteristics.js.map +0 -1
- package/dist/types.d.ts +0 -81
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
|
@@ -1,47 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t } from 'i18next';
|
|
2
|
+
import { getEntityNameAsync } from '@opfr/entities';
|
|
3
3
|
import { formatRewards } from '../utils';
|
|
4
|
-
export const mysteriousIslandRaid = (itemId) => ({
|
|
4
|
+
export const mysteriousIslandRaid = async (itemId) => ({
|
|
5
5
|
id: 'mysterious_island',
|
|
6
|
-
name:
|
|
7
|
-
description:
|
|
6
|
+
name: t('raids.mysterious_island.name', { ns: 'raids' }),
|
|
7
|
+
description: t('raids.mysterious_island.description', { ns: 'raids' }),
|
|
8
8
|
cooldown: 604800000,
|
|
9
9
|
type: 'classic',
|
|
10
10
|
start: {
|
|
11
11
|
id: 'ev_start',
|
|
12
|
-
title:
|
|
13
|
-
text:
|
|
12
|
+
title: t('raids.mysterious_island.ev_start.title', { ns: 'raids' }),
|
|
13
|
+
text: t('raids.mysterious_island.ev_start.text', { ns: 'raids' }),
|
|
14
14
|
rewards: undefined,
|
|
15
15
|
penalties: undefined,
|
|
16
16
|
outputs: [
|
|
17
17
|
{
|
|
18
18
|
id: 'uc_explore_ruin',
|
|
19
|
-
label:
|
|
19
|
+
label: t('raids.mysterious_island.uc_explore_ruin.label', {
|
|
20
|
+
ns: 'raids',
|
|
21
|
+
}),
|
|
20
22
|
output: {
|
|
21
23
|
id: 'ev_walk_ruin',
|
|
22
|
-
title:
|
|
23
|
-
|
|
24
|
+
title: t('raids.mysterious_island.ev_walk_ruin.title', {
|
|
25
|
+
ns: 'raids',
|
|
26
|
+
}),
|
|
27
|
+
text: t('raids.mysterious_island.ev_walk_ruin.text', { ns: 'raids' }),
|
|
24
28
|
rewards: undefined,
|
|
25
29
|
penalties: undefined,
|
|
26
30
|
outputs: [
|
|
27
31
|
{
|
|
28
32
|
id: 'uc_try_open_door',
|
|
29
|
-
label:
|
|
33
|
+
label: t('raids.mysterious_island.uc_try_open_door.label', {
|
|
34
|
+
ns: 'raids',
|
|
35
|
+
}),
|
|
30
36
|
output: {
|
|
31
37
|
id: 'ev_door_locked',
|
|
32
|
-
title:
|
|
33
|
-
|
|
38
|
+
title: t('raids.mysterious_island.ev_door_locked.title', {
|
|
39
|
+
ns: 'raids',
|
|
40
|
+
}),
|
|
41
|
+
text: t('raids.mysterious_island.ev_door_locked.text', {
|
|
42
|
+
ns: 'raids',
|
|
43
|
+
}),
|
|
34
44
|
rewards: undefined,
|
|
35
45
|
penalties: undefined,
|
|
36
46
|
outputs: [
|
|
37
47
|
{
|
|
38
48
|
id: 'rq_use_old_key',
|
|
39
49
|
requirements: { ancient_key: 1 },
|
|
40
|
-
label:
|
|
50
|
+
label: t('raids.mysterious_island.rq_use_old_key.label', {
|
|
51
|
+
ns: 'raids',
|
|
52
|
+
...{
|
|
53
|
+
requirements: await getEntityNameAsync('ancient_key', 1),
|
|
54
|
+
},
|
|
55
|
+
}),
|
|
41
56
|
output: {
|
|
42
57
|
id: 'ev_use_old_key',
|
|
43
|
-
title:
|
|
44
|
-
|
|
58
|
+
title: t('raids.mysterious_island.ev_use_old_key.title', {
|
|
59
|
+
ns: 'raids',
|
|
60
|
+
}),
|
|
61
|
+
text: (obtainedRewards) => t('raids.mysterious_island.ev_use_old_key.text', {
|
|
62
|
+
ns: 'raids',
|
|
45
63
|
rewards: formatRewards('ev_use_old_key', obtainedRewards, itemId === 'rudder'
|
|
46
64
|
? { xp: 55000 }
|
|
47
65
|
: itemId === 'rescue_boat'
|
|
@@ -57,31 +75,32 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
57
75
|
outputs: [
|
|
58
76
|
{
|
|
59
77
|
id: 'uc_enter_passage',
|
|
60
|
-
label:
|
|
78
|
+
label: t('raids.mysterious_island.uc_enter_passage.label', { ns: 'raids' }),
|
|
61
79
|
output: {
|
|
62
80
|
id: 'ev_walk_passage',
|
|
63
|
-
title:
|
|
64
|
-
text:
|
|
81
|
+
title: t('raids.mysterious_island.ev_walk_passage.title', { ns: 'raids' }),
|
|
82
|
+
text: t('raids.mysterious_island.ev_walk_passage.text', { ns: 'raids' }),
|
|
65
83
|
rewards: undefined,
|
|
66
84
|
penalties: undefined,
|
|
67
85
|
outputs: [
|
|
68
86
|
{
|
|
69
87
|
id: 'uc_too_bad',
|
|
70
|
-
label:
|
|
88
|
+
label: t('raids.mysterious_island.uc_too_bad.label', { ns: 'raids' }),
|
|
71
89
|
output: {
|
|
72
90
|
id: 'ev_find_tomb',
|
|
73
|
-
title:
|
|
74
|
-
text:
|
|
91
|
+
title: t('raids.mysterious_island.ev_find_tomb.title', { ns: 'raids' }),
|
|
92
|
+
text: t('raids.mysterious_island.ev_find_tomb.text', { ns: 'raids' }),
|
|
75
93
|
rewards: undefined,
|
|
76
94
|
penalties: undefined,
|
|
77
95
|
outputs: [
|
|
78
96
|
{
|
|
79
97
|
id: 'uc_open_tomb',
|
|
80
|
-
label:
|
|
98
|
+
label: t('raids.mysterious_island.uc_open_tomb.label', { ns: 'raids' }),
|
|
81
99
|
output: {
|
|
82
100
|
id: 'end_open_tomb',
|
|
83
|
-
title:
|
|
84
|
-
text: (obtainedRewards) =>
|
|
101
|
+
title: t('raids.mysterious_island.end_open_tomb.title', { ns: 'raids' }),
|
|
102
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_open_tomb.text', {
|
|
103
|
+
ns: 'raids',
|
|
85
104
|
rewards: formatRewards('end_open_tomb', obtainedRewards, itemId === 'rudder'
|
|
86
105
|
? {
|
|
87
106
|
berry: 500000000,
|
|
@@ -200,7 +219,7 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
200
219
|
},
|
|
201
220
|
{
|
|
202
221
|
id: 'goto_u_turn',
|
|
203
|
-
label:
|
|
222
|
+
label: t('raids.mysterious_island.goto_u_turn.label', { ns: 'raids' }),
|
|
204
223
|
goto: [
|
|
205
224
|
'uc_search_jungle',
|
|
206
225
|
'ev_enter_jungle',
|
|
@@ -211,7 +230,7 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
211
230
|
},
|
|
212
231
|
{
|
|
213
232
|
id: 'goto_walk_back',
|
|
214
|
-
label:
|
|
233
|
+
label: t('raids.mysterious_island.goto_walk_back.label', { ns: 'raids' }),
|
|
215
234
|
goto: ['uc_search_jungle', 'ev_enter_jungle'],
|
|
216
235
|
},
|
|
217
236
|
],
|
|
@@ -219,28 +238,33 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
219
238
|
},
|
|
220
239
|
{
|
|
221
240
|
id: 'uc_go_take_torch',
|
|
222
|
-
label:
|
|
241
|
+
label: t('raids.mysterious_island.uc_go_take_torch.label', { ns: 'raids' }),
|
|
223
242
|
output: {
|
|
224
243
|
id: 'ev_find_torch',
|
|
225
|
-
title:
|
|
226
|
-
text:
|
|
244
|
+
title: t('raids.mysterious_island.ev_find_torch.title', { ns: 'raids' }),
|
|
245
|
+
text: t('raids.mysterious_island.ev_find_torch.text', { ns: 'raids' }),
|
|
227
246
|
rewards: undefined,
|
|
228
247
|
penalties: undefined,
|
|
229
248
|
outputs: [
|
|
230
249
|
{
|
|
231
250
|
id: 'rq_turn_on_torch_ruin',
|
|
232
251
|
requirements: { wood: 1 },
|
|
233
|
-
label:
|
|
252
|
+
label: t('raids.mysterious_island.rq_turn_on_torch_ruin.label', {
|
|
253
|
+
ns: 'raids',
|
|
254
|
+
...{
|
|
255
|
+
requirements: await getEntityNameAsync('wood', 1),
|
|
256
|
+
},
|
|
257
|
+
}),
|
|
234
258
|
output: {
|
|
235
259
|
id: 'ev_ancient_dark_passage',
|
|
236
|
-
title:
|
|
237
|
-
text:
|
|
260
|
+
title: t('raids.mysterious_island.ev_ancient_dark_passage.title', { ns: 'raids' }),
|
|
261
|
+
text: t('raids.mysterious_island.ev_ancient_dark_passage.text', { ns: 'raids' }),
|
|
238
262
|
rewards: undefined,
|
|
239
263
|
penalties: undefined,
|
|
240
264
|
outputs: [
|
|
241
265
|
{
|
|
242
266
|
id: 'uc_decipher',
|
|
243
|
-
label:
|
|
267
|
+
label: t('raids.mysterious_island.uc_decipher.label', { ns: 'raids' }),
|
|
244
268
|
output: {
|
|
245
269
|
id: 'c_decipher',
|
|
246
270
|
requirements: itemId === 'sailing_boat'
|
|
@@ -254,8 +278,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
254
278
|
},
|
|
255
279
|
success: {
|
|
256
280
|
id: 'ev_decipher_success',
|
|
257
|
-
title:
|
|
258
|
-
text: (obtainedRewards) =>
|
|
281
|
+
title: t('raids.mysterious_island.ev_decipher_success.title', { ns: 'raids' }),
|
|
282
|
+
text: (obtainedRewards) => t('raids.mysterious_island.ev_decipher_success.text', {
|
|
283
|
+
ns: 'raids',
|
|
259
284
|
rewards: formatRewards('ev_decipher_success', obtainedRewards, itemId === 'rudder'
|
|
260
285
|
? { xp: 55000 }
|
|
261
286
|
: itemId === 'rescue_boat'
|
|
@@ -271,11 +296,12 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
271
296
|
outputs: [
|
|
272
297
|
{
|
|
273
298
|
id: 'uc_follow_indications',
|
|
274
|
-
label:
|
|
299
|
+
label: t('raids.mysterious_island.uc_follow_indications.label', { ns: 'raids' }),
|
|
275
300
|
output: {
|
|
276
301
|
id: 'end_indications_secret_room',
|
|
277
|
-
title:
|
|
278
|
-
text: (obtainedRewards) =>
|
|
302
|
+
title: t('raids.mysterious_island.end_indications_secret_room.title', { ns: 'raids' }),
|
|
303
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_indications_secret_room.text', {
|
|
304
|
+
ns: 'raids',
|
|
279
305
|
rewards: formatRewards('end_indications_secret_room', obtainedRewards, itemId === 'rudder'
|
|
280
306
|
? {
|
|
281
307
|
berry: 400000000,
|
|
@@ -319,7 +345,7 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
319
345
|
},
|
|
320
346
|
{
|
|
321
347
|
id: 'goto_walk_back',
|
|
322
|
-
label:
|
|
348
|
+
label: t('raids.mysterious_island.goto_walk_back.label', { ns: 'raids' }),
|
|
323
349
|
goto: [
|
|
324
350
|
'uc_search_jungle',
|
|
325
351
|
'ev_enter_jungle',
|
|
@@ -329,8 +355,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
329
355
|
},
|
|
330
356
|
failure: {
|
|
331
357
|
id: 'ev_decipher_failure',
|
|
332
|
-
title:
|
|
333
|
-
text: (obtainedRewards) =>
|
|
358
|
+
title: t('raids.mysterious_island.ev_decipher_failure.title', { ns: 'raids' }),
|
|
359
|
+
text: (obtainedRewards) => t('raids.mysterious_island.ev_decipher_failure.text', {
|
|
360
|
+
ns: 'raids',
|
|
334
361
|
rewards: formatRewards('ev_decipher_failure', obtainedRewards, itemId === 'rudder'
|
|
335
362
|
? { xp: 11000 }
|
|
336
363
|
: itemId === 'rescue_boat'
|
|
@@ -346,7 +373,7 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
346
373
|
outputs: [
|
|
347
374
|
{
|
|
348
375
|
id: 'uc_continue',
|
|
349
|
-
label:
|
|
376
|
+
label: t('raids.mysterious_island.uc_continue.label', { ns: 'raids' }),
|
|
350
377
|
output: {
|
|
351
378
|
id: 'c_continue_chance',
|
|
352
379
|
requirements: itemId === 'sailing_boat'
|
|
@@ -354,8 +381,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
354
381
|
: { chance: 120 },
|
|
355
382
|
success: {
|
|
356
383
|
id: 'end_continue_chance_success',
|
|
357
|
-
title:
|
|
358
|
-
text: (obtainedRewards) =>
|
|
384
|
+
title: t('raids.mysterious_island.end_continue_chance_success.title', { ns: 'raids' }),
|
|
385
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_continue_chance_success.text', {
|
|
386
|
+
ns: 'raids',
|
|
359
387
|
rewards: formatRewards('end_continue_chance_success', obtainedRewards, itemId === 'rudder'
|
|
360
388
|
? {
|
|
361
389
|
berry: 400000000,
|
|
@@ -398,18 +426,19 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
398
426
|
},
|
|
399
427
|
failure: {
|
|
400
428
|
id: 'ev_continue_chance_failure',
|
|
401
|
-
title:
|
|
402
|
-
text:
|
|
429
|
+
title: t('raids.mysterious_island.ev_continue_chance_failure.title', { ns: 'raids' }),
|
|
430
|
+
text: t('raids.mysterious_island.ev_continue_chance_failure.text', { ns: 'raids' }),
|
|
403
431
|
rewards: undefined,
|
|
404
432
|
penalties: undefined,
|
|
405
433
|
outputs: [
|
|
406
434
|
{
|
|
407
435
|
id: 'uc_open_tomb',
|
|
408
|
-
label:
|
|
436
|
+
label: t('raids.mysterious_island.uc_open_tomb.label', { ns: 'raids' }),
|
|
409
437
|
output: {
|
|
410
438
|
id: 'end_open_tomb',
|
|
411
|
-
title:
|
|
412
|
-
text: (obtainedRewards) =>
|
|
439
|
+
title: t('raids.mysterious_island.end_open_tomb.title', { ns: 'raids' }),
|
|
440
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_open_tomb.text', {
|
|
441
|
+
ns: 'raids',
|
|
413
442
|
rewards: formatRewards('end_open_tomb', obtainedRewards, itemId ===
|
|
414
443
|
'rudder'
|
|
415
444
|
? {
|
|
@@ -532,7 +561,7 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
532
561
|
},
|
|
533
562
|
{
|
|
534
563
|
id: 'goto_u_turn',
|
|
535
|
-
label:
|
|
564
|
+
label: t('raids.mysterious_island.goto_u_turn.label', { ns: 'raids' }),
|
|
536
565
|
goto: [
|
|
537
566
|
'uc_search_jungle',
|
|
538
567
|
'ev_enter_jungle',
|
|
@@ -552,11 +581,17 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
552
581
|
{
|
|
553
582
|
id: 'rq_turn_on_torch_jungle',
|
|
554
583
|
requirements: { wood: 1 },
|
|
555
|
-
label:
|
|
584
|
+
label: t('raids.mysterious_island.rq_turn_on_torch_jungle.label', {
|
|
585
|
+
ns: 'raids',
|
|
586
|
+
...{
|
|
587
|
+
requirements: await getEntityNameAsync('wood', 1),
|
|
588
|
+
},
|
|
589
|
+
}),
|
|
556
590
|
output: {
|
|
557
591
|
id: 'end_torch_jungle',
|
|
558
|
-
title:
|
|
559
|
-
text: (obtainedRewards) =>
|
|
592
|
+
title: t('raids.mysterious_island.end_torch_jungle.title', { ns: 'raids' }),
|
|
593
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_torch_jungle.text', {
|
|
594
|
+
ns: 'raids',
|
|
560
595
|
rewards: formatRewards('end_torch_jungle', obtainedRewards, itemId === 'rudder'
|
|
561
596
|
? {
|
|
562
597
|
berry: 150000000,
|
|
@@ -599,7 +634,7 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
599
634
|
},
|
|
600
635
|
{
|
|
601
636
|
id: 'goto_explore_without_torch',
|
|
602
|
-
label:
|
|
637
|
+
label: t('raids.mysterious_island.goto_explore_without_torch.label', { ns: 'raids' }),
|
|
603
638
|
goto: [
|
|
604
639
|
'uc_explore_ruin',
|
|
605
640
|
'ev_walk_ruin',
|
|
@@ -619,17 +654,23 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
619
654
|
},
|
|
620
655
|
{
|
|
621
656
|
id: 'uc_force_door',
|
|
622
|
-
label:
|
|
657
|
+
label: t('raids.mysterious_island.uc_force_door.label', {
|
|
658
|
+
ns: 'raids',
|
|
659
|
+
}),
|
|
623
660
|
output: {
|
|
624
661
|
id: 'ev_force_door',
|
|
625
|
-
title:
|
|
626
|
-
|
|
662
|
+
title: t('raids.mysterious_island.ev_force_door.title', {
|
|
663
|
+
ns: 'raids',
|
|
664
|
+
}),
|
|
665
|
+
text: t('raids.mysterious_island.ev_force_door.text', {
|
|
666
|
+
ns: 'raids',
|
|
667
|
+
}),
|
|
627
668
|
rewards: undefined,
|
|
628
669
|
penalties: undefined,
|
|
629
670
|
outputs: [
|
|
630
671
|
{
|
|
631
672
|
id: 'goto_search_way',
|
|
632
|
-
label:
|
|
673
|
+
label: t('raids.mysterious_island.goto_search_way.label', { ns: 'raids' }),
|
|
633
674
|
goto: [
|
|
634
675
|
'uc_explore_ruin',
|
|
635
676
|
'ev_walk_ruin',
|
|
@@ -639,7 +680,7 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
639
680
|
},
|
|
640
681
|
{
|
|
641
682
|
id: 'goto_u_turn',
|
|
642
|
-
label:
|
|
683
|
+
label: t('raids.mysterious_island.goto_u_turn.label', { ns: 'raids' }),
|
|
643
684
|
goto: ['uc_search_jungle', 'ev_enter_jungle'],
|
|
644
685
|
},
|
|
645
686
|
],
|
|
@@ -650,17 +691,25 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
650
691
|
},
|
|
651
692
|
{
|
|
652
693
|
id: 'uc_search_way',
|
|
653
|
-
label:
|
|
694
|
+
label: t('raids.mysterious_island.uc_search_way.label', {
|
|
695
|
+
ns: 'raids',
|
|
696
|
+
}),
|
|
654
697
|
output: {
|
|
655
698
|
id: 'ev_search_way',
|
|
656
|
-
title:
|
|
657
|
-
|
|
699
|
+
title: t('raids.mysterious_island.ev_search_way.title', {
|
|
700
|
+
ns: 'raids',
|
|
701
|
+
}),
|
|
702
|
+
text: t('raids.mysterious_island.ev_search_way.text', {
|
|
703
|
+
ns: 'raids',
|
|
704
|
+
}),
|
|
658
705
|
rewards: undefined,
|
|
659
706
|
penalties: undefined,
|
|
660
707
|
outputs: [
|
|
661
708
|
{
|
|
662
709
|
id: 'uc_ramp',
|
|
663
|
-
label:
|
|
710
|
+
label: t('raids.mysterious_island.uc_ramp.label', {
|
|
711
|
+
ns: 'raids',
|
|
712
|
+
}),
|
|
664
713
|
output: {
|
|
665
714
|
id: 'c_ramp',
|
|
666
715
|
requirements: itemId === 'sailing_boat'
|
|
@@ -668,8 +717,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
668
717
|
: { agility: 120 },
|
|
669
718
|
success: {
|
|
670
719
|
id: 'ev_ramp_success',
|
|
671
|
-
title:
|
|
672
|
-
text: (obtainedRewards) =>
|
|
720
|
+
title: t('raids.mysterious_island.ev_ramp_success.title', { ns: 'raids' }),
|
|
721
|
+
text: (obtainedRewards) => t('raids.mysterious_island.ev_ramp_success.text', {
|
|
722
|
+
ns: 'raids',
|
|
673
723
|
rewards: formatRewards('ev_ramp_success', obtainedRewards, itemId === 'rudder'
|
|
674
724
|
? { xp: 55000 }
|
|
675
725
|
: itemId === 'rescue_boat'
|
|
@@ -685,21 +735,22 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
685
735
|
outputs: [
|
|
686
736
|
{
|
|
687
737
|
id: 'uc_explore_gallery_no_torch',
|
|
688
|
-
label:
|
|
738
|
+
label: t('raids.mysterious_island.uc_explore_gallery_no_torch.label', { ns: 'raids' }),
|
|
689
739
|
output: {
|
|
690
740
|
id: 'ev_explore_gallery_no_torch',
|
|
691
|
-
title:
|
|
692
|
-
text:
|
|
741
|
+
title: t('raids.mysterious_island.ev_explore_gallery_no_torch.title', { ns: 'raids' }),
|
|
742
|
+
text: t('raids.mysterious_island.ev_explore_gallery_no_torch.text', { ns: 'raids' }),
|
|
693
743
|
rewards: undefined,
|
|
694
744
|
penalties: undefined,
|
|
695
745
|
outputs: [
|
|
696
746
|
{
|
|
697
747
|
id: 'uc_open_chest',
|
|
698
|
-
label:
|
|
748
|
+
label: t('raids.mysterious_island.uc_open_chest.label', { ns: 'raids' }),
|
|
699
749
|
output: {
|
|
700
750
|
id: 'end_old_chest',
|
|
701
|
-
title:
|
|
702
|
-
text: (obtainedRewards) =>
|
|
751
|
+
title: t('raids.mysterious_island.end_old_chest.title', { ns: 'raids' }),
|
|
752
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_old_chest.text', {
|
|
753
|
+
ns: 'raids',
|
|
703
754
|
rewards: formatRewards('end_old_chest', obtainedRewards, itemId === 'rudder'
|
|
704
755
|
? {
|
|
705
756
|
berry: 100000000,
|
|
@@ -740,21 +791,27 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
740
791
|
{
|
|
741
792
|
id: 'rq_explore_gallery_with_torch',
|
|
742
793
|
requirements: { wood: 1 },
|
|
743
|
-
label:
|
|
794
|
+
label: t('raids.mysterious_island.rq_explore_gallery_with_torch.label', {
|
|
795
|
+
ns: 'raids',
|
|
796
|
+
...{
|
|
797
|
+
requirements: await getEntityNameAsync('wood', 1),
|
|
798
|
+
},
|
|
799
|
+
}),
|
|
744
800
|
output: {
|
|
745
801
|
id: 'ev_explore_gallery_with_torch',
|
|
746
|
-
title:
|
|
747
|
-
text:
|
|
802
|
+
title: t('raids.mysterious_island.ev_explore_gallery_with_torch.title', { ns: 'raids' }),
|
|
803
|
+
text: t('raids.mysterious_island.ev_explore_gallery_with_torch.text', { ns: 'raids' }),
|
|
748
804
|
rewards: undefined,
|
|
749
805
|
penalties: undefined,
|
|
750
806
|
outputs: [
|
|
751
807
|
{
|
|
752
808
|
id: 'uc_continue',
|
|
753
|
-
label:
|
|
809
|
+
label: t('raids.mysterious_island.uc_continue.label', { ns: 'raids' }),
|
|
754
810
|
output: {
|
|
755
811
|
id: 'end_explore_gallery_with_torch',
|
|
756
|
-
title:
|
|
757
|
-
text: (obtainedRewards) =>
|
|
812
|
+
title: t('raids.mysterious_island.end_explore_gallery_with_torch.title', { ns: 'raids' }),
|
|
813
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_explore_gallery_with_torch.text', {
|
|
814
|
+
ns: 'raids',
|
|
758
815
|
rewards: formatRewards('end_explore_gallery_with_torch', obtainedRewards, itemId === 'rudder'
|
|
759
816
|
? {
|
|
760
817
|
berry: 200000000,
|
|
@@ -814,8 +871,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
814
871
|
},
|
|
815
872
|
failure: {
|
|
816
873
|
id: 'ev_ramp_failure',
|
|
817
|
-
title:
|
|
818
|
-
text: (obtainedRewards) =>
|
|
874
|
+
title: t('raids.mysterious_island.ev_ramp_failure.title', { ns: 'raids' }),
|
|
875
|
+
text: (obtainedRewards) => t('raids.mysterious_island.ev_ramp_failure.text', {
|
|
876
|
+
ns: 'raids',
|
|
819
877
|
rewards: formatRewards('ev_ramp_failure', obtainedRewards, undefined, itemId === 'anchor' ? { hp: 100 } : { hp: 200 }),
|
|
820
878
|
}),
|
|
821
879
|
rewards: undefined,
|
|
@@ -823,7 +881,7 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
823
881
|
outputs: [
|
|
824
882
|
{
|
|
825
883
|
id: 'goto_u_turn',
|
|
826
|
-
label:
|
|
884
|
+
label: t('raids.mysterious_island.goto_u_turn.label', { ns: 'raids' }),
|
|
827
885
|
goto: ['uc_search_jungle', 'ev_enter_jungle'],
|
|
828
886
|
},
|
|
829
887
|
],
|
|
@@ -838,27 +896,41 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
838
896
|
},
|
|
839
897
|
{
|
|
840
898
|
id: 'uc_search_jungle',
|
|
841
|
-
label:
|
|
899
|
+
label: t('raids.mysterious_island.uc_search_jungle.label', {
|
|
900
|
+
ns: 'raids',
|
|
901
|
+
}),
|
|
842
902
|
output: {
|
|
843
903
|
id: 'ev_enter_jungle',
|
|
844
|
-
title:
|
|
845
|
-
|
|
904
|
+
title: t('raids.mysterious_island.ev_enter_jungle.title', {
|
|
905
|
+
ns: 'raids',
|
|
906
|
+
}),
|
|
907
|
+
text: t('raids.mysterious_island.ev_enter_jungle.text', {
|
|
908
|
+
ns: 'raids',
|
|
909
|
+
}),
|
|
846
910
|
rewards: undefined,
|
|
847
911
|
penalties: undefined,
|
|
848
912
|
outputs: [
|
|
849
913
|
{
|
|
850
914
|
id: 'uc_explore_hard_way',
|
|
851
|
-
label:
|
|
915
|
+
label: t('raids.mysterious_island.uc_explore_hard_way.label', {
|
|
916
|
+
ns: 'raids',
|
|
917
|
+
}),
|
|
852
918
|
output: {
|
|
853
919
|
id: 'ev_wild_animals',
|
|
854
|
-
title:
|
|
855
|
-
|
|
920
|
+
title: t('raids.mysterious_island.ev_wild_animals.title', {
|
|
921
|
+
ns: 'raids',
|
|
922
|
+
}),
|
|
923
|
+
text: t('raids.mysterious_island.ev_wild_animals.text', {
|
|
924
|
+
ns: 'raids',
|
|
925
|
+
}),
|
|
856
926
|
rewards: undefined,
|
|
857
927
|
penalties: undefined,
|
|
858
928
|
outputs: [
|
|
859
929
|
{
|
|
860
930
|
id: 'uc_fight_animals',
|
|
861
|
-
label:
|
|
931
|
+
label: t('raids.mysterious_island.uc_fight_animals.label', {
|
|
932
|
+
ns: 'raids',
|
|
933
|
+
}),
|
|
862
934
|
output: {
|
|
863
935
|
id: 'c_fight_animals',
|
|
864
936
|
requirements: itemId === 'sailing_boat'
|
|
@@ -866,8 +938,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
866
938
|
: { strength: 115, agility: 115 },
|
|
867
939
|
success: {
|
|
868
940
|
id: 'ev_fight_animals_success',
|
|
869
|
-
title:
|
|
870
|
-
text: (obtainedRewards) =>
|
|
941
|
+
title: t('raids.mysterious_island.ev_fight_animals_success.title', { ns: 'raids' }),
|
|
942
|
+
text: (obtainedRewards) => t('raids.mysterious_island.ev_fight_animals_success.text', {
|
|
943
|
+
ns: 'raids',
|
|
871
944
|
rewards: formatRewards('ev_fight_animals_success', obtainedRewards, itemId === 'rudder'
|
|
872
945
|
? { berry: 10000000, xp: 44000 }
|
|
873
946
|
: itemId === 'rescue_boat'
|
|
@@ -883,28 +956,28 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
883
956
|
outputs: [
|
|
884
957
|
{
|
|
885
958
|
id: 'uc_go_back_ship',
|
|
886
|
-
label:
|
|
959
|
+
label: t('raids.mysterious_island.uc_go_back_ship.label', { ns: 'raids' }),
|
|
887
960
|
output: {
|
|
888
961
|
id: 'end_go_back_ship',
|
|
889
|
-
title:
|
|
890
|
-
text:
|
|
962
|
+
title: t('raids.mysterious_island.end_go_back_ship.title', { ns: 'raids' }),
|
|
963
|
+
text: t('raids.mysterious_island.end_go_back_ship.text', { ns: 'raids' }),
|
|
891
964
|
rewards: undefined,
|
|
892
965
|
penalties: undefined,
|
|
893
966
|
},
|
|
894
967
|
},
|
|
895
968
|
{
|
|
896
969
|
id: 'uc_continue',
|
|
897
|
-
label:
|
|
970
|
+
label: t('raids.mysterious_island.uc_continue.label', { ns: 'raids' }),
|
|
898
971
|
output: {
|
|
899
972
|
id: 'ev_keep_going_find_cave',
|
|
900
|
-
title:
|
|
901
|
-
text:
|
|
973
|
+
title: t('raids.mysterious_island.ev_keep_going_find_cave.title', { ns: 'raids' }),
|
|
974
|
+
text: t('raids.mysterious_island.ev_keep_going_find_cave.text', { ns: 'raids' }),
|
|
902
975
|
rewards: undefined,
|
|
903
976
|
penalties: undefined,
|
|
904
977
|
outputs: [
|
|
905
978
|
{
|
|
906
979
|
id: 'goto_enter_cave',
|
|
907
|
-
label:
|
|
980
|
+
label: t('raids.mysterious_island.goto_enter_cave.label', { ns: 'raids' }),
|
|
908
981
|
goto: [
|
|
909
982
|
'uc_search_jungle',
|
|
910
983
|
'ev_enter_jungle',
|
|
@@ -923,8 +996,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
923
996
|
},
|
|
924
997
|
failure: {
|
|
925
998
|
id: 'end_fight_animals_failure',
|
|
926
|
-
title:
|
|
927
|
-
text: (obtainedRewards) =>
|
|
999
|
+
title: t('raids.mysterious_island.end_fight_animals_failure.title', { ns: 'raids' }),
|
|
1000
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_fight_animals_failure.text', {
|
|
1001
|
+
ns: 'raids',
|
|
928
1002
|
rewards: formatRewards('end_fight_animals_failure', obtainedRewards, itemId === 'rudder'
|
|
929
1003
|
? { berry: 10000000, xp: 22000 }
|
|
930
1004
|
: itemId === 'rescue_boat'
|
|
@@ -942,42 +1016,52 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
942
1016
|
},
|
|
943
1017
|
{
|
|
944
1018
|
id: 'uc_dodge_animals',
|
|
945
|
-
label:
|
|
1019
|
+
label: t('raids.mysterious_island.uc_dodge_animals.label', {
|
|
1020
|
+
ns: 'raids',
|
|
1021
|
+
}),
|
|
946
1022
|
output: {
|
|
947
1023
|
id: 'ev_dodge_animals',
|
|
948
|
-
title:
|
|
949
|
-
text:
|
|
1024
|
+
title: t('raids.mysterious_island.ev_dodge_animals.title', { ns: 'raids' }),
|
|
1025
|
+
text: t('raids.mysterious_island.ev_dodge_animals.text', {
|
|
1026
|
+
ns: 'raids',
|
|
1027
|
+
}),
|
|
950
1028
|
rewards: undefined,
|
|
951
1029
|
penalties: undefined,
|
|
952
1030
|
outputs: [
|
|
953
1031
|
{
|
|
954
1032
|
id: 'uc_enter_cave',
|
|
955
|
-
label:
|
|
1033
|
+
label: t('raids.mysterious_island.uc_enter_cave.label', { ns: 'raids' }),
|
|
956
1034
|
output: {
|
|
957
1035
|
id: 'ev_dark_cave',
|
|
958
|
-
title:
|
|
959
|
-
text:
|
|
1036
|
+
title: t('raids.mysterious_island.ev_dark_cave.title', { ns: 'raids' }),
|
|
1037
|
+
text: t('raids.mysterious_island.ev_dark_cave.text', { ns: 'raids' }),
|
|
960
1038
|
rewards: undefined,
|
|
961
1039
|
penalties: undefined,
|
|
962
1040
|
outputs: [
|
|
963
1041
|
{
|
|
964
1042
|
id: 'rq_cave_torch',
|
|
965
1043
|
requirements: { wood: 1 },
|
|
966
|
-
label:
|
|
1044
|
+
label: t('raids.mysterious_island.rq_cave_torch.label', {
|
|
1045
|
+
ns: 'raids',
|
|
1046
|
+
...{
|
|
1047
|
+
requirements: await getEntityNameAsync('wood', 1),
|
|
1048
|
+
},
|
|
1049
|
+
}),
|
|
967
1050
|
output: {
|
|
968
1051
|
id: 'ev_cave_torch_on',
|
|
969
|
-
title:
|
|
970
|
-
text:
|
|
1052
|
+
title: t('raids.mysterious_island.ev_cave_torch_on.title', { ns: 'raids' }),
|
|
1053
|
+
text: t('raids.mysterious_island.ev_cave_torch_on.text', { ns: 'raids' }),
|
|
971
1054
|
rewards: undefined,
|
|
972
1055
|
penalties: undefined,
|
|
973
1056
|
outputs: [
|
|
974
1057
|
{
|
|
975
1058
|
id: 'uc_open_chest',
|
|
976
|
-
label:
|
|
1059
|
+
label: t('raids.mysterious_island.uc_open_chest.label', { ns: 'raids' }),
|
|
977
1060
|
output: {
|
|
978
1061
|
id: 'end_cave_open_chest',
|
|
979
|
-
title:
|
|
980
|
-
text: (obtainedRewards) =>
|
|
1062
|
+
title: t('raids.mysterious_island.end_cave_open_chest.title', { ns: 'raids' }),
|
|
1063
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_cave_open_chest.text', {
|
|
1064
|
+
ns: 'raids',
|
|
981
1065
|
rewards: formatRewards('end_cave_open_chest', obtainedRewards, itemId === 'rudder'
|
|
982
1066
|
? {
|
|
983
1067
|
berry: 100000000,
|
|
@@ -1021,11 +1105,12 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
1021
1105
|
},
|
|
1022
1106
|
{
|
|
1023
1107
|
id: 'uc_blind_walk',
|
|
1024
|
-
label:
|
|
1108
|
+
label: t('raids.mysterious_island.uc_blind_walk.label', { ns: 'raids' }),
|
|
1025
1109
|
output: {
|
|
1026
1110
|
id: 'end_cave_blind_walk',
|
|
1027
|
-
title:
|
|
1028
|
-
text: (obtainedRewards) =>
|
|
1111
|
+
title: t('raids.mysterious_island.end_cave_blind_walk.title', { ns: 'raids' }),
|
|
1112
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_cave_blind_walk.text', {
|
|
1113
|
+
ns: 'raids',
|
|
1029
1114
|
rewards: formatRewards('end_cave_blind_walk', obtainedRewards, itemId === 'rudder'
|
|
1030
1115
|
? { berry: 50000000, xp: 11000 }
|
|
1031
1116
|
: itemId === 'rescue_boat'
|
|
@@ -1055,17 +1140,23 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
1055
1140
|
},
|
|
1056
1141
|
{
|
|
1057
1142
|
id: 'uc_follow_main_path',
|
|
1058
|
-
label:
|
|
1143
|
+
label: t('raids.mysterious_island.uc_follow_main_path.label', {
|
|
1144
|
+
ns: 'raids',
|
|
1145
|
+
}),
|
|
1059
1146
|
output: {
|
|
1060
1147
|
id: 'ev_main_path',
|
|
1061
|
-
title:
|
|
1062
|
-
|
|
1148
|
+
title: t('raids.mysterious_island.ev_main_path.title', {
|
|
1149
|
+
ns: 'raids',
|
|
1150
|
+
}),
|
|
1151
|
+
text: t('raids.mysterious_island.ev_main_path.text', {
|
|
1152
|
+
ns: 'raids',
|
|
1153
|
+
}),
|
|
1063
1154
|
rewards: undefined,
|
|
1064
1155
|
penalties: undefined,
|
|
1065
1156
|
outputs: [
|
|
1066
1157
|
{
|
|
1067
1158
|
id: 'uc_search_medicine_herbs',
|
|
1068
|
-
label:
|
|
1159
|
+
label: t('raids.mysterious_island.uc_search_medicine_herbs.label', { ns: 'raids' }),
|
|
1069
1160
|
output: {
|
|
1070
1161
|
id: 'c_herbs_wisdom',
|
|
1071
1162
|
requirements: itemId === 'sailing_boat'
|
|
@@ -1073,8 +1164,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
1073
1164
|
: { wisdom: 120 },
|
|
1074
1165
|
success: {
|
|
1075
1166
|
id: 'end_herbs_wisdom_success',
|
|
1076
|
-
title:
|
|
1077
|
-
text: (obtainedRewards) =>
|
|
1167
|
+
title: t('raids.mysterious_island.end_herbs_wisdom_success.title', { ns: 'raids' }),
|
|
1168
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_herbs_wisdom_success.text', {
|
|
1169
|
+
ns: 'raids',
|
|
1078
1170
|
rewards: formatRewards('end_herbs_wisdom_success', obtainedRewards, itemId === 'rudder'
|
|
1079
1171
|
? {
|
|
1080
1172
|
xp: 27500,
|
|
@@ -1122,8 +1214,9 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
1122
1214
|
},
|
|
1123
1215
|
failure: {
|
|
1124
1216
|
id: 'end_herbs_wisdom_failure',
|
|
1125
|
-
title:
|
|
1126
|
-
text: (obtainedRewards) =>
|
|
1217
|
+
title: t('raids.mysterious_island.end_herbs_wisdom_failure.title', { ns: 'raids' }),
|
|
1218
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_herbs_wisdom_failure.text', {
|
|
1219
|
+
ns: 'raids',
|
|
1127
1220
|
rewards: formatRewards('end_herbs_wisdom_failure', obtainedRewards, itemId === 'rudder'
|
|
1128
1221
|
? { xp: 5500, clover: 2, hemp: 3, cereal: 3 }
|
|
1129
1222
|
: itemId === 'rescue_boat'
|
|
@@ -1158,11 +1251,14 @@ export const mysteriousIslandRaid = (itemId) => ({
|
|
|
1158
1251
|
},
|
|
1159
1252
|
{
|
|
1160
1253
|
id: 'uc_take_fruits',
|
|
1161
|
-
label:
|
|
1254
|
+
label: t('raids.mysterious_island.uc_take_fruits.label', {
|
|
1255
|
+
ns: 'raids',
|
|
1256
|
+
}),
|
|
1162
1257
|
output: {
|
|
1163
1258
|
id: 'end_find_fruits',
|
|
1164
|
-
title:
|
|
1165
|
-
text: (obtainedRewards) =>
|
|
1259
|
+
title: t('raids.mysterious_island.end_find_fruits.title', { ns: 'raids' }),
|
|
1260
|
+
text: (obtainedRewards) => t('raids.mysterious_island.end_find_fruits.text', {
|
|
1261
|
+
ns: 'raids',
|
|
1166
1262
|
rewards: formatRewards('end_find_fruits', obtainedRewards, itemId === 'rudder'
|
|
1167
1263
|
? { fruit: 20, xp: 11000 }
|
|
1168
1264
|
: itemId === 'rescue_boat'
|