@opfr/raids 0.15.1 → 0.16.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.
Files changed (65) hide show
  1. package/dist/images.d.ts.map +1 -1
  2. package/dist/images.js +0 -43
  3. package/dist/images.js.map +1 -1
  4. package/dist/index.es.js +896 -556
  5. package/dist/index.umd.js +9 -9
  6. package/dist/raids/mysteriousIsland.d.ts.map +1 -1
  7. package/dist/raids/mysteriousIsland.js +123 -125
  8. package/dist/raids/mysteriousIsland.js.map +1 -1
  9. package/dist/raids/pirateCave.d.ts.map +1 -1
  10. package/dist/raids/pirateCave.js +94 -96
  11. package/dist/raids/pirateCave.js.map +1 -1
  12. package/dist/raids/resources.d.ts.map +1 -1
  13. package/dist/raids/resources.js +77 -77
  14. package/dist/raids/resources.js.map +1 -1
  15. package/dist/raids/training.d.ts.map +1 -1
  16. package/dist/raids/training.js +48 -44
  17. package/dist/raids/training.js.map +1 -1
  18. package/dist/utils.js +5 -5
  19. package/dist/utils.js.map +1 -1
  20. package/package.json +5 -5
  21. package/assets/happy_christmas/end_happy_ending.webp +0 -0
  22. package/assets/happy_christmas/end_refuse_quest.webp +0 -0
  23. package/assets/happy_christmas/ev_abandoned_village.webp +0 -0
  24. package/assets/happy_christmas/ev_candies_island.webp +0 -0
  25. package/assets/happy_christmas/ev_center_village.webp +0 -0
  26. package/assets/happy_christmas/ev_enter_in_temple.webp +0 -0
  27. package/assets/happy_christmas/ev_espace_giant.webp +0 -0
  28. package/assets/happy_christmas/ev_fail_attack_on_jack_frost.webp +0 -0
  29. package/assets/happy_christmas/ev_follow_giant_trace.webp +0 -0
  30. package/assets/happy_christmas/ev_forest_already_meet_giant.webp +0 -0
  31. package/assets/happy_christmas/ev_found_bear.webp +0 -0
  32. package/assets/happy_christmas/ev_found_elf.webp +0 -0
  33. package/assets/happy_christmas/ev_found_refuge.webp +0 -0
  34. package/assets/happy_christmas/ev_found_reinder.webp +0 -0
  35. package/assets/happy_christmas/ev_found_santa_claus_house.webp +0 -0
  36. package/assets/happy_christmas/ev_free_elf.webp +0 -0
  37. package/assets/happy_christmas/ev_frozen_clouds.webp +0 -0
  38. package/assets/happy_christmas/ev_futur_spirit.webp +0 -0
  39. package/assets/happy_christmas/ev_giant_cavern.webp +0 -0
  40. package/assets/happy_christmas/ev_giant_spawn.webp +0 -0
  41. package/assets/happy_christmas/ev_gingerbread.webp +0 -0
  42. package/assets/happy_christmas/ev_jack_frost_hit.webp +0 -0
  43. package/assets/happy_christmas/ev_last_attack.webp +0 -0
  44. package/assets/happy_christmas/ev_look_magic_map.webp +0 -0
  45. package/assets/happy_christmas/ev_looking_across_window.webp +0 -0
  46. package/assets/happy_christmas/ev_past_spirit.webp +0 -0
  47. package/assets/happy_christmas/ev_present_spirit.webp +0 -0
  48. package/assets/happy_christmas/ev_reinder_human.webp +0 -0
  49. package/assets/happy_christmas/ev_rest_and_listen.webp +0 -0
  50. package/assets/happy_christmas/ev_rest_and_listen_but_nothing_given.webp +0 -0
  51. package/assets/happy_christmas/ev_santa_claus_island.webp +0 -0
  52. package/assets/happy_christmas/ev_snowy_forest.webp +0 -0
  53. package/assets/happy_christmas/ev_storm.webp +0 -0
  54. package/assets/happy_christmas/ev_succeed_attack_again.webp +0 -0
  55. package/assets/happy_christmas/ev_succeed_attack_again_again.webp +0 -0
  56. package/assets/happy_christmas/ev_success_convince.webp +0 -0
  57. package/assets/happy_christmas/ev_sugar_forest.webp +0 -0
  58. package/assets/happy_christmas/ev_too_much_sugar.webp +0 -0
  59. package/assets/happy_christmas/ev_village.webp +0 -0
  60. package/assets/happy_christmas/ev_warm.webp +0 -0
  61. package/assets/happy_christmas/ev_win_fight.webp +0 -0
  62. package/dist/raids/happyChristmas.d.ts +0 -4
  63. package/dist/raids/happyChristmas.d.ts.map +0 -1
  64. package/dist/raids/happyChristmas.js +0 -8206
  65. package/dist/raids/happyChristmas.js.map +0 -1
@@ -1,49 +1,47 @@
1
1
  import { findItem } from '@opfr/items';
2
- import { t } from '@opfr/translate';
2
+ import { tns } from '@opfr/translate';
3
3
  import { formatRewards } from '../utils';
4
4
  export const mysteriousIslandRaid = (itemId) => ({
5
5
  id: 'mysterious_island',
6
- name: t('raids.mysterious_island.name'),
7
- description: t('raids.mysterious_island.description'),
6
+ name: tns('raids', 'raids.mysterious_island.name'),
7
+ description: tns('raids', 'raids.mysterious_island.description'),
8
8
  cooldown: 604800000,
9
9
  type: 'classic',
10
10
  start: {
11
11
  id: 'ev_start',
12
- title: t('raids.mysterious_island.ev_start.title'),
13
- text: t('raids.mysterious_island.ev_start.text'),
12
+ title: tns('raids', 'raids.mysterious_island.ev_start.title'),
13
+ text: tns('raids', 'raids.mysterious_island.ev_start.text'),
14
14
  rewards: undefined,
15
15
  penalties: undefined,
16
16
  outputs: [
17
17
  {
18
18
  id: 'uc_explore_ruin',
19
- label: t('raids.mysterious_island.uc_explore_ruin.label'),
19
+ label: tns('raids', 'raids.mysterious_island.uc_explore_ruin.label'),
20
20
  output: {
21
21
  id: 'ev_walk_ruin',
22
- title: t('raids.mysterious_island.ev_walk_ruin.title'),
23
- text: t('raids.mysterious_island.ev_walk_ruin.text'),
22
+ title: tns('raids', 'raids.mysterious_island.ev_walk_ruin.title'),
23
+ text: tns('raids', 'raids.mysterious_island.ev_walk_ruin.text'),
24
24
  rewards: undefined,
25
25
  penalties: undefined,
26
26
  outputs: [
27
27
  {
28
28
  id: 'uc_try_open_door',
29
- label: t('raids.mysterious_island.uc_try_open_door.label'),
29
+ label: tns('raids', 'raids.mysterious_island.uc_try_open_door.label'),
30
30
  output: {
31
31
  id: 'ev_door_locked',
32
- title: t('raids.mysterious_island.ev_door_locked.title'),
33
- text: t('raids.mysterious_island.ev_door_locked.text'),
32
+ title: tns('raids', 'raids.mysterious_island.ev_door_locked.title'),
33
+ text: tns('raids', 'raids.mysterious_island.ev_door_locked.text'),
34
34
  rewards: undefined,
35
35
  penalties: undefined,
36
36
  outputs: [
37
37
  {
38
38
  id: 'rq_use_old_key',
39
39
  requirements: { ancient_key: 1 },
40
- label: t('raids.mysterious_island.rq_use_old_key.label', {
41
- requirements: findItem('ancient_key').name(1),
42
- }),
40
+ label: tns('raids', 'raids.mysterious_island.rq_use_old_key.label', { requirements: findItem('ancient_key').name(1) }),
43
41
  output: {
44
42
  id: 'ev_use_old_key',
45
- title: t('raids.mysterious_island.ev_use_old_key.title'),
46
- text: (obtainedRewards) => t('raids.mysterious_island.ev_use_old_key.text', {
43
+ title: tns('raids', 'raids.mysterious_island.ev_use_old_key.title'),
44
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.ev_use_old_key.text', {
47
45
  rewards: formatRewards('ev_use_old_key', obtainedRewards, itemId === 'rudder'
48
46
  ? { xp: 55000 }
49
47
  : itemId === 'rescue_boat'
@@ -59,31 +57,31 @@ export const mysteriousIslandRaid = (itemId) => ({
59
57
  outputs: [
60
58
  {
61
59
  id: 'uc_enter_passage',
62
- label: t('raids.mysterious_island.uc_enter_passage.label'),
60
+ label: tns('raids', 'raids.mysterious_island.uc_enter_passage.label'),
63
61
  output: {
64
62
  id: 'ev_walk_passage',
65
- title: t('raids.mysterious_island.ev_walk_passage.title'),
66
- text: t('raids.mysterious_island.ev_walk_passage.text'),
63
+ title: tns('raids', 'raids.mysterious_island.ev_walk_passage.title'),
64
+ text: tns('raids', 'raids.mysterious_island.ev_walk_passage.text'),
67
65
  rewards: undefined,
68
66
  penalties: undefined,
69
67
  outputs: [
70
68
  {
71
69
  id: 'uc_too_bad',
72
- label: t('raids.mysterious_island.uc_too_bad.label'),
70
+ label: tns('raids', 'raids.mysterious_island.uc_too_bad.label'),
73
71
  output: {
74
72
  id: 'ev_find_tomb',
75
- title: t('raids.mysterious_island.ev_find_tomb.title'),
76
- text: t('raids.mysterious_island.ev_find_tomb.text'),
73
+ title: tns('raids', 'raids.mysterious_island.ev_find_tomb.title'),
74
+ text: tns('raids', 'raids.mysterious_island.ev_find_tomb.text'),
77
75
  rewards: undefined,
78
76
  penalties: undefined,
79
77
  outputs: [
80
78
  {
81
79
  id: 'uc_open_tomb',
82
- label: t('raids.mysterious_island.uc_open_tomb.label'),
80
+ label: tns('raids', 'raids.mysterious_island.uc_open_tomb.label'),
83
81
  output: {
84
82
  id: 'end_open_tomb',
85
- title: t('raids.mysterious_island.end_open_tomb.title'),
86
- text: (obtainedRewards) => t('raids.mysterious_island.end_open_tomb.text', {
83
+ title: tns('raids', 'raids.mysterious_island.end_open_tomb.title'),
84
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_open_tomb.text', {
87
85
  rewards: formatRewards('end_open_tomb', obtainedRewards, itemId === 'rudder'
88
86
  ? {
89
87
  berry: 500000000,
@@ -202,7 +200,7 @@ export const mysteriousIslandRaid = (itemId) => ({
202
200
  },
203
201
  {
204
202
  id: 'goto_u_turn',
205
- label: t('raids.mysterious_island.goto_u_turn.label'),
203
+ label: tns('raids', 'raids.mysterious_island.goto_u_turn.label'),
206
204
  goto: [
207
205
  'uc_search_jungle',
208
206
  'ev_enter_jungle',
@@ -213,7 +211,7 @@ export const mysteriousIslandRaid = (itemId) => ({
213
211
  },
214
212
  {
215
213
  id: 'goto_walk_back',
216
- label: t('raids.mysterious_island.goto_walk_back.label'),
214
+ label: tns('raids', 'raids.mysterious_island.goto_walk_back.label'),
217
215
  goto: ['uc_search_jungle', 'ev_enter_jungle'],
218
216
  },
219
217
  ],
@@ -221,28 +219,28 @@ export const mysteriousIslandRaid = (itemId) => ({
221
219
  },
222
220
  {
223
221
  id: 'uc_go_take_torch',
224
- label: t('raids.mysterious_island.uc_go_take_torch.label'),
222
+ label: tns('raids', 'raids.mysterious_island.uc_go_take_torch.label'),
225
223
  output: {
226
224
  id: 'ev_find_torch',
227
- title: t('raids.mysterious_island.ev_find_torch.title'),
228
- text: t('raids.mysterious_island.ev_find_torch.text'),
225
+ title: tns('raids', 'raids.mysterious_island.ev_find_torch.title'),
226
+ text: tns('raids', 'raids.mysterious_island.ev_find_torch.text'),
229
227
  rewards: undefined,
230
228
  penalties: undefined,
231
229
  outputs: [
232
230
  {
233
231
  id: 'rq_turn_on_torch_ruin',
234
232
  requirements: { wood: 1 },
235
- label: t('raids.mysterious_island.rq_turn_on_torch_ruin.label', { requirements: findItem('wood').name(1) }),
233
+ label: tns('raids', 'raids.mysterious_island.rq_turn_on_torch_ruin.label', { requirements: findItem('wood').name(1) }),
236
234
  output: {
237
235
  id: 'ev_ancient_dark_passage',
238
- title: t('raids.mysterious_island.ev_ancient_dark_passage.title'),
239
- text: t('raids.mysterious_island.ev_ancient_dark_passage.text'),
236
+ title: tns('raids', 'raids.mysterious_island.ev_ancient_dark_passage.title'),
237
+ text: tns('raids', 'raids.mysterious_island.ev_ancient_dark_passage.text'),
240
238
  rewards: undefined,
241
239
  penalties: undefined,
242
240
  outputs: [
243
241
  {
244
242
  id: 'uc_decipher',
245
- label: t('raids.mysterious_island.uc_decipher.label'),
243
+ label: tns('raids', 'raids.mysterious_island.uc_decipher.label'),
246
244
  output: {
247
245
  id: 'c_decipher',
248
246
  requirements: itemId === 'sailing_boat'
@@ -256,8 +254,8 @@ export const mysteriousIslandRaid = (itemId) => ({
256
254
  },
257
255
  success: {
258
256
  id: 'ev_decipher_success',
259
- title: t('raids.mysterious_island.ev_decipher_success.title'),
260
- text: (obtainedRewards) => t('raids.mysterious_island.ev_decipher_success.text', {
257
+ title: tns('raids', 'raids.mysterious_island.ev_decipher_success.title'),
258
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.ev_decipher_success.text', {
261
259
  rewards: formatRewards('ev_decipher_success', obtainedRewards, itemId === 'rudder'
262
260
  ? { xp: 55000 }
263
261
  : itemId === 'rescue_boat'
@@ -273,11 +271,11 @@ export const mysteriousIslandRaid = (itemId) => ({
273
271
  outputs: [
274
272
  {
275
273
  id: 'uc_follow_indications',
276
- label: t('raids.mysterious_island.uc_follow_indications.label'),
274
+ label: tns('raids', 'raids.mysterious_island.uc_follow_indications.label'),
277
275
  output: {
278
276
  id: 'end_indications_secret_room',
279
- title: t('raids.mysterious_island.end_indications_secret_room.title'),
280
- text: (obtainedRewards) => t('raids.mysterious_island.end_indications_secret_room.text', {
277
+ title: tns('raids', 'raids.mysterious_island.end_indications_secret_room.title'),
278
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_indications_secret_room.text', {
281
279
  rewards: formatRewards('end_indications_secret_room', obtainedRewards, itemId === 'rudder'
282
280
  ? {
283
281
  berry: 400000000,
@@ -321,7 +319,7 @@ export const mysteriousIslandRaid = (itemId) => ({
321
319
  },
322
320
  {
323
321
  id: 'goto_walk_back',
324
- label: t('raids.mysterious_island.goto_walk_back.label'),
322
+ label: tns('raids', 'raids.mysterious_island.goto_walk_back.label'),
325
323
  goto: [
326
324
  'uc_search_jungle',
327
325
  'ev_enter_jungle',
@@ -331,8 +329,8 @@ export const mysteriousIslandRaid = (itemId) => ({
331
329
  },
332
330
  failure: {
333
331
  id: 'ev_decipher_failure',
334
- title: t('raids.mysterious_island.ev_decipher_failure.title'),
335
- text: (obtainedRewards) => t('raids.mysterious_island.ev_decipher_failure.text', {
332
+ title: tns('raids', 'raids.mysterious_island.ev_decipher_failure.title'),
333
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.ev_decipher_failure.text', {
336
334
  rewards: formatRewards('ev_decipher_failure', obtainedRewards, itemId === 'rudder'
337
335
  ? { xp: 11000 }
338
336
  : itemId === 'rescue_boat'
@@ -348,7 +346,7 @@ export const mysteriousIslandRaid = (itemId) => ({
348
346
  outputs: [
349
347
  {
350
348
  id: 'uc_continue',
351
- label: t('raids.mysterious_island.uc_continue.label'),
349
+ label: tns('raids', 'raids.mysterious_island.uc_continue.label'),
352
350
  output: {
353
351
  id: 'c_continue_chance',
354
352
  requirements: itemId === 'sailing_boat'
@@ -356,8 +354,8 @@ export const mysteriousIslandRaid = (itemId) => ({
356
354
  : { chance: 120 },
357
355
  success: {
358
356
  id: 'end_continue_chance_success',
359
- title: t('raids.mysterious_island.end_continue_chance_success.title'),
360
- text: (obtainedRewards) => t('raids.mysterious_island.end_continue_chance_success.text', {
357
+ title: tns('raids', 'raids.mysterious_island.end_continue_chance_success.title'),
358
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_continue_chance_success.text', {
361
359
  rewards: formatRewards('end_continue_chance_success', obtainedRewards, itemId === 'rudder'
362
360
  ? {
363
361
  berry: 400000000,
@@ -400,18 +398,18 @@ export const mysteriousIslandRaid = (itemId) => ({
400
398
  },
401
399
  failure: {
402
400
  id: 'ev_continue_chance_failure',
403
- title: t('raids.mysterious_island.ev_continue_chance_failure.title'),
404
- text: t('raids.mysterious_island.ev_continue_chance_failure.text'),
401
+ title: tns('raids', 'raids.mysterious_island.ev_continue_chance_failure.title'),
402
+ text: tns('raids', 'raids.mysterious_island.ev_continue_chance_failure.text'),
405
403
  rewards: undefined,
406
404
  penalties: undefined,
407
405
  outputs: [
408
406
  {
409
407
  id: 'uc_open_tomb',
410
- label: t('raids.mysterious_island.uc_open_tomb.label'),
408
+ label: tns('raids', 'raids.mysterious_island.uc_open_tomb.label'),
411
409
  output: {
412
410
  id: 'end_open_tomb',
413
- title: t('raids.mysterious_island.end_open_tomb.title'),
414
- text: (obtainedRewards) => t('raids.mysterious_island.end_open_tomb.text', {
411
+ title: tns('raids', 'raids.mysterious_island.end_open_tomb.title'),
412
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_open_tomb.text', {
415
413
  rewards: formatRewards('end_open_tomb', obtainedRewards, itemId ===
416
414
  'rudder'
417
415
  ? {
@@ -534,7 +532,7 @@ export const mysteriousIslandRaid = (itemId) => ({
534
532
  },
535
533
  {
536
534
  id: 'goto_u_turn',
537
- label: t('raids.mysterious_island.goto_u_turn.label'),
535
+ label: tns('raids', 'raids.mysterious_island.goto_u_turn.label'),
538
536
  goto: [
539
537
  'uc_search_jungle',
540
538
  'ev_enter_jungle',
@@ -554,11 +552,11 @@ export const mysteriousIslandRaid = (itemId) => ({
554
552
  {
555
553
  id: 'rq_turn_on_torch_jungle',
556
554
  requirements: { wood: 1 },
557
- label: t('raids.mysterious_island.rq_turn_on_torch_jungle.label', { requirements: findItem('wood').name(1) }),
555
+ label: tns('raids', 'raids.mysterious_island.rq_turn_on_torch_jungle.label', { requirements: findItem('wood').name(1) }),
558
556
  output: {
559
557
  id: 'end_torch_jungle',
560
- title: t('raids.mysterious_island.end_torch_jungle.title'),
561
- text: (obtainedRewards) => t('raids.mysterious_island.end_torch_jungle.text', {
558
+ title: tns('raids', 'raids.mysterious_island.end_torch_jungle.title'),
559
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_torch_jungle.text', {
562
560
  rewards: formatRewards('end_torch_jungle', obtainedRewards, itemId === 'rudder'
563
561
  ? {
564
562
  berry: 150000000,
@@ -601,7 +599,7 @@ export const mysteriousIslandRaid = (itemId) => ({
601
599
  },
602
600
  {
603
601
  id: 'goto_explore_without_torch',
604
- label: t('raids.mysterious_island.goto_explore_without_torch.label'),
602
+ label: tns('raids', 'raids.mysterious_island.goto_explore_without_torch.label'),
605
603
  goto: [
606
604
  'uc_explore_ruin',
607
605
  'ev_walk_ruin',
@@ -621,17 +619,17 @@ export const mysteriousIslandRaid = (itemId) => ({
621
619
  },
622
620
  {
623
621
  id: 'uc_force_door',
624
- label: t('raids.mysterious_island.uc_force_door.label'),
622
+ label: tns('raids', 'raids.mysterious_island.uc_force_door.label'),
625
623
  output: {
626
624
  id: 'ev_force_door',
627
- title: t('raids.mysterious_island.ev_force_door.title'),
628
- text: t('raids.mysterious_island.ev_force_door.text'),
625
+ title: tns('raids', 'raids.mysterious_island.ev_force_door.title'),
626
+ text: tns('raids', 'raids.mysterious_island.ev_force_door.text'),
629
627
  rewards: undefined,
630
628
  penalties: undefined,
631
629
  outputs: [
632
630
  {
633
631
  id: 'goto_search_way',
634
- label: t('raids.mysterious_island.goto_search_way.label'),
632
+ label: tns('raids', 'raids.mysterious_island.goto_search_way.label'),
635
633
  goto: [
636
634
  'uc_explore_ruin',
637
635
  'ev_walk_ruin',
@@ -641,7 +639,7 @@ export const mysteriousIslandRaid = (itemId) => ({
641
639
  },
642
640
  {
643
641
  id: 'goto_u_turn',
644
- label: t('raids.mysterious_island.goto_u_turn.label'),
642
+ label: tns('raids', 'raids.mysterious_island.goto_u_turn.label'),
645
643
  goto: ['uc_search_jungle', 'ev_enter_jungle'],
646
644
  },
647
645
  ],
@@ -652,17 +650,17 @@ export const mysteriousIslandRaid = (itemId) => ({
652
650
  },
653
651
  {
654
652
  id: 'uc_search_way',
655
- label: t('raids.mysterious_island.uc_search_way.label'),
653
+ label: tns('raids', 'raids.mysterious_island.uc_search_way.label'),
656
654
  output: {
657
655
  id: 'ev_search_way',
658
- title: t('raids.mysterious_island.ev_search_way.title'),
659
- text: t('raids.mysterious_island.ev_search_way.text'),
656
+ title: tns('raids', 'raids.mysterious_island.ev_search_way.title'),
657
+ text: tns('raids', 'raids.mysterious_island.ev_search_way.text'),
660
658
  rewards: undefined,
661
659
  penalties: undefined,
662
660
  outputs: [
663
661
  {
664
662
  id: 'uc_ramp',
665
- label: t('raids.mysterious_island.uc_ramp.label'),
663
+ label: tns('raids', 'raids.mysterious_island.uc_ramp.label'),
666
664
  output: {
667
665
  id: 'c_ramp',
668
666
  requirements: itemId === 'sailing_boat'
@@ -670,8 +668,8 @@ export const mysteriousIslandRaid = (itemId) => ({
670
668
  : { agility: 120 },
671
669
  success: {
672
670
  id: 'ev_ramp_success',
673
- title: t('raids.mysterious_island.ev_ramp_success.title'),
674
- text: (obtainedRewards) => t('raids.mysterious_island.ev_ramp_success.text', {
671
+ title: tns('raids', 'raids.mysterious_island.ev_ramp_success.title'),
672
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.ev_ramp_success.text', {
675
673
  rewards: formatRewards('ev_ramp_success', obtainedRewards, itemId === 'rudder'
676
674
  ? { xp: 55000 }
677
675
  : itemId === 'rescue_boat'
@@ -687,21 +685,21 @@ export const mysteriousIslandRaid = (itemId) => ({
687
685
  outputs: [
688
686
  {
689
687
  id: 'uc_explore_gallery_no_torch',
690
- label: t('raids.mysterious_island.uc_explore_gallery_no_torch.label'),
688
+ label: tns('raids', 'raids.mysterious_island.uc_explore_gallery_no_torch.label'),
691
689
  output: {
692
690
  id: 'ev_explore_gallery_no_torch',
693
- title: t('raids.mysterious_island.ev_explore_gallery_no_torch.title'),
694
- text: t('raids.mysterious_island.ev_explore_gallery_no_torch.text'),
691
+ title: tns('raids', 'raids.mysterious_island.ev_explore_gallery_no_torch.title'),
692
+ text: tns('raids', 'raids.mysterious_island.ev_explore_gallery_no_torch.text'),
695
693
  rewards: undefined,
696
694
  penalties: undefined,
697
695
  outputs: [
698
696
  {
699
697
  id: 'uc_open_chest',
700
- label: t('raids.mysterious_island.uc_open_chest.label'),
698
+ label: tns('raids', 'raids.mysterious_island.uc_open_chest.label'),
701
699
  output: {
702
700
  id: 'end_old_chest',
703
- title: t('raids.mysterious_island.end_old_chest.title'),
704
- text: (obtainedRewards) => t('raids.mysterious_island.end_old_chest.text', {
701
+ title: tns('raids', 'raids.mysterious_island.end_old_chest.title'),
702
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_old_chest.text', {
705
703
  rewards: formatRewards('end_old_chest', obtainedRewards, itemId === 'rudder'
706
704
  ? {
707
705
  berry: 100000000,
@@ -742,21 +740,21 @@ export const mysteriousIslandRaid = (itemId) => ({
742
740
  {
743
741
  id: 'rq_explore_gallery_with_torch',
744
742
  requirements: { wood: 1 },
745
- label: t('raids.mysterious_island.rq_explore_gallery_with_torch.label', { requirements: findItem('wood').name(1) }),
743
+ label: tns('raids', 'raids.mysterious_island.rq_explore_gallery_with_torch.label', { requirements: findItem('wood').name(1) }),
746
744
  output: {
747
745
  id: 'ev_explore_gallery_with_torch',
748
- title: t('raids.mysterious_island.ev_explore_gallery_with_torch.title'),
749
- text: t('raids.mysterious_island.ev_explore_gallery_with_torch.text'),
746
+ title: tns('raids', 'raids.mysterious_island.ev_explore_gallery_with_torch.title'),
747
+ text: tns('raids', 'raids.mysterious_island.ev_explore_gallery_with_torch.text'),
750
748
  rewards: undefined,
751
749
  penalties: undefined,
752
750
  outputs: [
753
751
  {
754
752
  id: 'uc_continue',
755
- label: t('raids.mysterious_island.uc_continue.label'),
753
+ label: tns('raids', 'raids.mysterious_island.uc_continue.label'),
756
754
  output: {
757
755
  id: 'end_explore_gallery_with_torch',
758
- title: t('raids.mysterious_island.end_explore_gallery_with_torch.title'),
759
- text: (obtainedRewards) => t('raids.mysterious_island.end_explore_gallery_with_torch.text', {
756
+ title: tns('raids', 'raids.mysterious_island.end_explore_gallery_with_torch.title'),
757
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_explore_gallery_with_torch.text', {
760
758
  rewards: formatRewards('end_explore_gallery_with_torch', obtainedRewards, itemId === 'rudder'
761
759
  ? {
762
760
  berry: 200000000,
@@ -816,8 +814,8 @@ export const mysteriousIslandRaid = (itemId) => ({
816
814
  },
817
815
  failure: {
818
816
  id: 'ev_ramp_failure',
819
- title: t('raids.mysterious_island.ev_ramp_failure.title'),
820
- text: (obtainedRewards) => t('raids.mysterious_island.ev_ramp_failure.text', {
817
+ title: tns('raids', 'raids.mysterious_island.ev_ramp_failure.title'),
818
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.ev_ramp_failure.text', {
821
819
  rewards: formatRewards('ev_ramp_failure', obtainedRewards, undefined, itemId === 'anchor' ? { hp: 100 } : { hp: 200 }),
822
820
  }),
823
821
  rewards: undefined,
@@ -825,7 +823,7 @@ export const mysteriousIslandRaid = (itemId) => ({
825
823
  outputs: [
826
824
  {
827
825
  id: 'goto_u_turn',
828
- label: t('raids.mysterious_island.goto_u_turn.label'),
826
+ label: tns('raids', 'raids.mysterious_island.goto_u_turn.label'),
829
827
  goto: ['uc_search_jungle', 'ev_enter_jungle'],
830
828
  },
831
829
  ],
@@ -840,27 +838,27 @@ export const mysteriousIslandRaid = (itemId) => ({
840
838
  },
841
839
  {
842
840
  id: 'uc_search_jungle',
843
- label: t('raids.mysterious_island.uc_search_jungle.label'),
841
+ label: tns('raids', 'raids.mysterious_island.uc_search_jungle.label'),
844
842
  output: {
845
843
  id: 'ev_enter_jungle',
846
- title: t('raids.mysterious_island.ev_enter_jungle.title'),
847
- text: t('raids.mysterious_island.ev_enter_jungle.text'),
844
+ title: tns('raids', 'raids.mysterious_island.ev_enter_jungle.title'),
845
+ text: tns('raids', 'raids.mysterious_island.ev_enter_jungle.text'),
848
846
  rewards: undefined,
849
847
  penalties: undefined,
850
848
  outputs: [
851
849
  {
852
850
  id: 'uc_explore_hard_way',
853
- label: t('raids.mysterious_island.uc_explore_hard_way.label'),
851
+ label: tns('raids', 'raids.mysterious_island.uc_explore_hard_way.label'),
854
852
  output: {
855
853
  id: 'ev_wild_animals',
856
- title: t('raids.mysterious_island.ev_wild_animals.title'),
857
- text: t('raids.mysterious_island.ev_wild_animals.text'),
854
+ title: tns('raids', 'raids.mysterious_island.ev_wild_animals.title'),
855
+ text: tns('raids', 'raids.mysterious_island.ev_wild_animals.text'),
858
856
  rewards: undefined,
859
857
  penalties: undefined,
860
858
  outputs: [
861
859
  {
862
860
  id: 'uc_fight_animals',
863
- label: t('raids.mysterious_island.uc_fight_animals.label'),
861
+ label: tns('raids', 'raids.mysterious_island.uc_fight_animals.label'),
864
862
  output: {
865
863
  id: 'c_fight_animals',
866
864
  requirements: itemId === 'sailing_boat'
@@ -868,8 +866,8 @@ export const mysteriousIslandRaid = (itemId) => ({
868
866
  : { strength: 115, agility: 115 },
869
867
  success: {
870
868
  id: 'ev_fight_animals_success',
871
- title: t('raids.mysterious_island.ev_fight_animals_success.title'),
872
- text: (obtainedRewards) => t('raids.mysterious_island.ev_fight_animals_success.text', {
869
+ title: tns('raids', 'raids.mysterious_island.ev_fight_animals_success.title'),
870
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.ev_fight_animals_success.text', {
873
871
  rewards: formatRewards('ev_fight_animals_success', obtainedRewards, itemId === 'rudder'
874
872
  ? { berry: 10000000, xp: 44000 }
875
873
  : itemId === 'rescue_boat'
@@ -885,28 +883,28 @@ export const mysteriousIslandRaid = (itemId) => ({
885
883
  outputs: [
886
884
  {
887
885
  id: 'uc_go_back_ship',
888
- label: t('raids.mysterious_island.uc_go_back_ship.label'),
886
+ label: tns('raids', 'raids.mysterious_island.uc_go_back_ship.label'),
889
887
  output: {
890
888
  id: 'end_go_back_ship',
891
- title: t('raids.mysterious_island.end_go_back_ship.title'),
892
- text: t('raids.mysterious_island.end_go_back_ship.text'),
889
+ title: tns('raids', 'raids.mysterious_island.end_go_back_ship.title'),
890
+ text: tns('raids', 'raids.mysterious_island.end_go_back_ship.text'),
893
891
  rewards: undefined,
894
892
  penalties: undefined,
895
893
  },
896
894
  },
897
895
  {
898
896
  id: 'uc_continue',
899
- label: t('raids.mysterious_island.uc_continue.label'),
897
+ label: tns('raids', 'raids.mysterious_island.uc_continue.label'),
900
898
  output: {
901
899
  id: 'ev_keep_going_find_cave',
902
- title: t('raids.mysterious_island.ev_keep_going_find_cave.title'),
903
- text: t('raids.mysterious_island.ev_keep_going_find_cave.text'),
900
+ title: tns('raids', 'raids.mysterious_island.ev_keep_going_find_cave.title'),
901
+ text: tns('raids', 'raids.mysterious_island.ev_keep_going_find_cave.text'),
904
902
  rewards: undefined,
905
903
  penalties: undefined,
906
904
  outputs: [
907
905
  {
908
906
  id: 'goto_enter_cave',
909
- label: t('raids.mysterious_island.goto_enter_cave.label'),
907
+ label: tns('raids', 'raids.mysterious_island.goto_enter_cave.label'),
910
908
  goto: [
911
909
  'uc_search_jungle',
912
910
  'ev_enter_jungle',
@@ -925,8 +923,8 @@ export const mysteriousIslandRaid = (itemId) => ({
925
923
  },
926
924
  failure: {
927
925
  id: 'end_fight_animals_failure',
928
- title: t('raids.mysterious_island.end_fight_animals_failure.title'),
929
- text: (obtainedRewards) => t('raids.mysterious_island.end_fight_animals_failure.text', {
926
+ title: tns('raids', 'raids.mysterious_island.end_fight_animals_failure.title'),
927
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_fight_animals_failure.text', {
930
928
  rewards: formatRewards('end_fight_animals_failure', obtainedRewards, itemId === 'rudder'
931
929
  ? { berry: 10000000, xp: 22000 }
932
930
  : itemId === 'rescue_boat'
@@ -944,42 +942,42 @@ export const mysteriousIslandRaid = (itemId) => ({
944
942
  },
945
943
  {
946
944
  id: 'uc_dodge_animals',
947
- label: t('raids.mysterious_island.uc_dodge_animals.label'),
945
+ label: tns('raids', 'raids.mysterious_island.uc_dodge_animals.label'),
948
946
  output: {
949
947
  id: 'ev_dodge_animals',
950
- title: t('raids.mysterious_island.ev_dodge_animals.title'),
951
- text: t('raids.mysterious_island.ev_dodge_animals.text'),
948
+ title: tns('raids', 'raids.mysterious_island.ev_dodge_animals.title'),
949
+ text: tns('raids', 'raids.mysterious_island.ev_dodge_animals.text'),
952
950
  rewards: undefined,
953
951
  penalties: undefined,
954
952
  outputs: [
955
953
  {
956
954
  id: 'uc_enter_cave',
957
- label: t('raids.mysterious_island.uc_enter_cave.label'),
955
+ label: tns('raids', 'raids.mysterious_island.uc_enter_cave.label'),
958
956
  output: {
959
957
  id: 'ev_dark_cave',
960
- title: t('raids.mysterious_island.ev_dark_cave.title'),
961
- text: t('raids.mysterious_island.ev_dark_cave.text'),
958
+ title: tns('raids', 'raids.mysterious_island.ev_dark_cave.title'),
959
+ text: tns('raids', 'raids.mysterious_island.ev_dark_cave.text'),
962
960
  rewards: undefined,
963
961
  penalties: undefined,
964
962
  outputs: [
965
963
  {
966
964
  id: 'rq_cave_torch',
967
965
  requirements: { wood: 1 },
968
- label: t('raids.mysterious_island.rq_cave_torch.label', { requirements: findItem('wood').name(1) }),
966
+ label: tns('raids', 'raids.mysterious_island.rq_cave_torch.label', { requirements: findItem('wood').name(1) }),
969
967
  output: {
970
968
  id: 'ev_cave_torch_on',
971
- title: t('raids.mysterious_island.ev_cave_torch_on.title'),
972
- text: t('raids.mysterious_island.ev_cave_torch_on.text'),
969
+ title: tns('raids', 'raids.mysterious_island.ev_cave_torch_on.title'),
970
+ text: tns('raids', 'raids.mysterious_island.ev_cave_torch_on.text'),
973
971
  rewards: undefined,
974
972
  penalties: undefined,
975
973
  outputs: [
976
974
  {
977
975
  id: 'uc_open_chest',
978
- label: t('raids.mysterious_island.uc_open_chest.label'),
976
+ label: tns('raids', 'raids.mysterious_island.uc_open_chest.label'),
979
977
  output: {
980
978
  id: 'end_cave_open_chest',
981
- title: t('raids.mysterious_island.end_cave_open_chest.title'),
982
- text: (obtainedRewards) => t('raids.mysterious_island.end_cave_open_chest.text', {
979
+ title: tns('raids', 'raids.mysterious_island.end_cave_open_chest.title'),
980
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_cave_open_chest.text', {
983
981
  rewards: formatRewards('end_cave_open_chest', obtainedRewards, itemId === 'rudder'
984
982
  ? {
985
983
  berry: 100000000,
@@ -1023,11 +1021,11 @@ export const mysteriousIslandRaid = (itemId) => ({
1023
1021
  },
1024
1022
  {
1025
1023
  id: 'uc_blind_walk',
1026
- label: t('raids.mysterious_island.uc_blind_walk.label'),
1024
+ label: tns('raids', 'raids.mysterious_island.uc_blind_walk.label'),
1027
1025
  output: {
1028
1026
  id: 'end_cave_blind_walk',
1029
- title: t('raids.mysterious_island.end_cave_blind_walk.title'),
1030
- text: (obtainedRewards) => t('raids.mysterious_island.end_cave_blind_walk.text', {
1027
+ title: tns('raids', 'raids.mysterious_island.end_cave_blind_walk.title'),
1028
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_cave_blind_walk.text', {
1031
1029
  rewards: formatRewards('end_cave_blind_walk', obtainedRewards, itemId === 'rudder'
1032
1030
  ? { berry: 50000000, xp: 11000 }
1033
1031
  : itemId === 'rescue_boat'
@@ -1057,17 +1055,17 @@ export const mysteriousIslandRaid = (itemId) => ({
1057
1055
  },
1058
1056
  {
1059
1057
  id: 'uc_follow_main_path',
1060
- label: t('raids.mysterious_island.uc_follow_main_path.label'),
1058
+ label: tns('raids', 'raids.mysterious_island.uc_follow_main_path.label'),
1061
1059
  output: {
1062
1060
  id: 'ev_main_path',
1063
- title: t('raids.mysterious_island.ev_main_path.title'),
1064
- text: t('raids.mysterious_island.ev_main_path.text'),
1061
+ title: tns('raids', 'raids.mysterious_island.ev_main_path.title'),
1062
+ text: tns('raids', 'raids.mysterious_island.ev_main_path.text'),
1065
1063
  rewards: undefined,
1066
1064
  penalties: undefined,
1067
1065
  outputs: [
1068
1066
  {
1069
1067
  id: 'uc_search_medicine_herbs',
1070
- label: t('raids.mysterious_island.uc_search_medicine_herbs.label'),
1068
+ label: tns('raids', 'raids.mysterious_island.uc_search_medicine_herbs.label'),
1071
1069
  output: {
1072
1070
  id: 'c_herbs_wisdom',
1073
1071
  requirements: itemId === 'sailing_boat'
@@ -1075,8 +1073,8 @@ export const mysteriousIslandRaid = (itemId) => ({
1075
1073
  : { wisdom: 120 },
1076
1074
  success: {
1077
1075
  id: 'end_herbs_wisdom_success',
1078
- title: t('raids.mysterious_island.end_herbs_wisdom_success.title'),
1079
- text: (obtainedRewards) => t('raids.mysterious_island.end_herbs_wisdom_success.text', {
1076
+ title: tns('raids', 'raids.mysterious_island.end_herbs_wisdom_success.title'),
1077
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_herbs_wisdom_success.text', {
1080
1078
  rewards: formatRewards('end_herbs_wisdom_success', obtainedRewards, itemId === 'rudder'
1081
1079
  ? {
1082
1080
  xp: 27500,
@@ -1124,8 +1122,8 @@ export const mysteriousIslandRaid = (itemId) => ({
1124
1122
  },
1125
1123
  failure: {
1126
1124
  id: 'end_herbs_wisdom_failure',
1127
- title: t('raids.mysterious_island.end_herbs_wisdom_failure.title'),
1128
- text: (obtainedRewards) => t('raids.mysterious_island.end_herbs_wisdom_failure.text', {
1125
+ title: tns('raids', 'raids.mysterious_island.end_herbs_wisdom_failure.title'),
1126
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_herbs_wisdom_failure.text', {
1129
1127
  rewards: formatRewards('end_herbs_wisdom_failure', obtainedRewards, itemId === 'rudder'
1130
1128
  ? { xp: 5500, clover: 2, hemp: 3, cereal: 3 }
1131
1129
  : itemId === 'rescue_boat'
@@ -1160,11 +1158,11 @@ export const mysteriousIslandRaid = (itemId) => ({
1160
1158
  },
1161
1159
  {
1162
1160
  id: 'uc_take_fruits',
1163
- label: t('raids.mysterious_island.uc_take_fruits.label'),
1161
+ label: tns('raids', 'raids.mysterious_island.uc_take_fruits.label'),
1164
1162
  output: {
1165
1163
  id: 'end_find_fruits',
1166
- title: t('raids.mysterious_island.end_find_fruits.title'),
1167
- text: (obtainedRewards) => t('raids.mysterious_island.end_find_fruits.text', {
1164
+ title: tns('raids', 'raids.mysterious_island.end_find_fruits.title'),
1165
+ text: (obtainedRewards) => tns('raids', 'raids.mysterious_island.end_find_fruits.text', {
1168
1166
  rewards: formatRewards('end_find_fruits', obtainedRewards, itemId === 'rudder'
1169
1167
  ? { fruit: 20, xp: 11000 }
1170
1168
  : itemId === 'rescue_boat'