@opfr/raids 0.15.0 → 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 +6 -6
  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,70 +1,68 @@
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 pirateCaveRaid = (itemId) => ({
5
5
  id: 'pirate_cave',
6
- name: t('raids.pirate_cave.name'),
7
- description: t('raids.pirate_cave.description'),
6
+ name: tns('raids', 'raids.pirate_cave.name'),
7
+ description: tns('raids', 'raids.pirate_cave.description'),
8
8
  cooldown: 604800000,
9
9
  type: 'classic',
10
10
  start: {
11
11
  id: 'ev_start',
12
- title: t('raids.pirate_cave.ev_start.title'),
13
- text: t('raids.pirate_cave.ev_start.text'),
12
+ title: tns('raids', 'raids.pirate_cave.ev_start.title'),
13
+ text: tns('raids', 'raids.pirate_cave.ev_start.text'),
14
14
  rewards: undefined,
15
15
  penalties: undefined,
16
16
  outputs: [
17
17
  {
18
18
  id: 'uc_continue',
19
- label: t('raids.pirate_cave.uc_continue.label'),
19
+ label: tns('raids', 'raids.pirate_cave.uc_continue.label'),
20
20
  output: {
21
21
  id: 'ev_cave_entry',
22
- title: t('raids.pirate_cave.ev_cave_entry.title'),
23
- text: t('raids.pirate_cave.ev_cave_entry.text'),
22
+ title: tns('raids', 'raids.pirate_cave.ev_cave_entry.title'),
23
+ text: tns('raids', 'raids.pirate_cave.ev_cave_entry.text'),
24
24
  rewards: undefined,
25
25
  penalties: undefined,
26
26
  outputs: [
27
27
  {
28
28
  id: 'uc_cave_entry',
29
- label: t('raids.pirate_cave.uc_cave_entry.label'),
29
+ label: tns('raids', 'raids.pirate_cave.uc_cave_entry.label'),
30
30
  output: {
31
31
  id: 'ev_cave_begin',
32
- title: t('raids.pirate_cave.ev_cave_begin.title'),
33
- text: t('raids.pirate_cave.ev_cave_begin.text'),
32
+ title: tns('raids', 'raids.pirate_cave.ev_cave_begin.title'),
33
+ text: tns('raids', 'raids.pirate_cave.ev_cave_begin.text'),
34
34
  rewards: undefined,
35
35
  penalties: undefined,
36
36
  outputs: [
37
37
  {
38
38
  id: 'rq_cave_torch',
39
39
  requirements: { wood: 1 },
40
- label: t('raids.pirate_cave.rq_cave_torch.label', {
41
- requirements: findItem('wood').name(1),
42
- }),
40
+ label: tns('raids', 'raids.pirate_cave.rq_cave_torch.label', { requirements: findItem('wood').name(1) }),
43
41
  output: {
44
42
  id: 'ev_torch_on',
45
- title: t('raids.pirate_cave.ev_torch_on.title'),
46
- text: t('raids.pirate_cave.ev_torch_on.text'),
43
+ title: tns('raids', 'raids.pirate_cave.ev_torch_on.title'),
44
+ text: tns('raids', 'raids.pirate_cave.ev_torch_on.text'),
47
45
  rewards: undefined,
48
46
  penalties: undefined,
49
47
  outputs: [
50
48
  {
51
49
  id: 'uc_left_path',
52
- label: t('raids.pirate_cave.uc_left_path.label'),
50
+ label: tns('raids', 'raids.pirate_cave.uc_left_path.label'),
53
51
  output: {
54
52
  id: 'ev_left_path',
55
- title: t('raids.pirate_cave.ev_left_path.title'),
56
- text: t('raids.pirate_cave.ev_left_path.text'),
53
+ title: tns('raids', 'raids.pirate_cave.ev_left_path.title'),
54
+ text: tns('raids', 'raids.pirate_cave.ev_left_path.text'),
57
55
  rewards: undefined,
58
56
  penalties: undefined,
59
57
  outputs: [
60
58
  {
61
59
  id: 'rq_remove_traps',
62
60
  requirements: { tools: 1 },
63
- label: t('raids.pirate_cave.rq_remove_traps.label', { requirements: findItem('tools').name(1) }),
61
+ label: tns('raids', 'raids.pirate_cave.rq_remove_traps.label', { requirements: findItem('tools').name(1) }),
64
62
  output: {
65
63
  id: 'ev_no_trap',
66
- title: t('raids.pirate_cave.ev_no_trap.title'),
67
- text: (obtainedRewards) => t('raids.pirate_cave.ev_no_trap.text', {
64
+ title: tns('raids', 'raids.pirate_cave.ev_no_trap.title'),
65
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.ev_no_trap.text', {
68
66
  rewards: formatRewards('ev_no_trap', obtainedRewards, itemId === 'rudder'
69
67
  ? { xp: 55000 }
70
68
  : itemId === 'rescue_boat'
@@ -80,11 +78,11 @@ export const pirateCaveRaid = (itemId) => ({
80
78
  outputs: [
81
79
  {
82
80
  id: 'uc_open_chest',
83
- label: t('raids.pirate_cave.uc_open_chest.label'),
81
+ label: tns('raids', 'raids.pirate_cave.uc_open_chest.label'),
84
82
  output: {
85
83
  id: 'end_open_chest',
86
- title: t('raids.pirate_cave.end_open_chest.title'),
87
- text: (obtainedRewards) => t('raids.pirate_cave.end_open_chest.text', {
84
+ title: tns('raids', 'raids.pirate_cave.end_open_chest.title'),
85
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_open_chest.text', {
88
86
  rewards: formatRewards('end_open_chest', obtainedRewards, itemId === 'rudder'
89
87
  ? {
90
88
  berry: 100000000,
@@ -121,11 +119,11 @@ export const pirateCaveRaid = (itemId) => ({
121
119
  },
122
120
  {
123
121
  id: 'uc_explore_room',
124
- label: t('raids.pirate_cave.uc_explore_room.label'),
122
+ label: tns('raids', 'raids.pirate_cave.uc_explore_room.label'),
125
123
  output: {
126
124
  id: 'end_explore_room',
127
- title: t('raids.pirate_cave.end_explore_room.title'),
128
- text: (obtainedRewards) => t('raids.pirate_cave.end_explore_room.text', {
125
+ title: tns('raids', 'raids.pirate_cave.end_explore_room.title'),
126
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_explore_room.text', {
129
127
  rewards: formatRewards('end_explore_room', obtainedRewards, itemId === 'rudder'
130
128
  ? {
131
129
  berry: 200000000,
@@ -159,7 +157,7 @@ export const pirateCaveRaid = (itemId) => ({
159
157
  },
160
158
  {
161
159
  id: 'uc_dodge_traps',
162
- label: t('raids.pirate_cave.uc_dodge_traps.label'),
160
+ label: tns('raids', 'raids.pirate_cave.uc_dodge_traps.label'),
163
161
  output: {
164
162
  id: 'c_agility_trap',
165
163
  requirements: itemId === 'sailing_boat'
@@ -167,8 +165,8 @@ export const pirateCaveRaid = (itemId) => ({
167
165
  : { agility: 115 },
168
166
  success: {
169
167
  id: 'ev_dodge_traps_success',
170
- title: t('raids.pirate_cave.ev_dodge_traps_success.title'),
171
- text: (obtainedRewards) => t('raids.pirate_cave.ev_dodge_traps_success.text', {
168
+ title: tns('raids', 'raids.pirate_cave.ev_dodge_traps_success.title'),
169
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.ev_dodge_traps_success.text', {
172
170
  rewards: formatRewards('ev_dodge_traps_success', obtainedRewards, itemId === 'rudder'
173
171
  ? { xp: 55000 }
174
172
  : itemId === 'rescue_boat'
@@ -184,11 +182,11 @@ export const pirateCaveRaid = (itemId) => ({
184
182
  outputs: [
185
183
  {
186
184
  id: 'uc_open_chest',
187
- label: t('raids.pirate_cave.uc_open_chest.label'),
185
+ label: tns('raids', 'raids.pirate_cave.uc_open_chest.label'),
188
186
  output: {
189
187
  id: 'end_open_chest',
190
- title: t('raids.pirate_cave.end_open_chest.title'),
191
- text: (obtainedRewards) => t('raids.pirate_cave.end_open_chest.text', {
188
+ title: tns('raids', 'raids.pirate_cave.end_open_chest.title'),
189
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_open_chest.text', {
192
190
  rewards: formatRewards('end_open_chest', obtainedRewards, itemId === 'rudder'
193
191
  ? {
194
192
  berry: 100000000,
@@ -225,11 +223,11 @@ export const pirateCaveRaid = (itemId) => ({
225
223
  },
226
224
  {
227
225
  id: 'uc_explore_room',
228
- label: t('raids.pirate_cave.uc_explore_room.label'),
226
+ label: tns('raids', 'raids.pirate_cave.uc_explore_room.label'),
229
227
  output: {
230
228
  id: 'end_explore_room',
231
- title: t('raids.pirate_cave.end_explore_room.title'),
232
- text: (obtainedRewards) => t('raids.pirate_cave.end_explore_room.text', {
229
+ title: tns('raids', 'raids.pirate_cave.end_explore_room.title'),
230
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_explore_room.text', {
233
231
  rewards: formatRewards('end_explore_room', obtainedRewards, itemId === 'rudder'
234
232
  ? {
235
233
  berry: 200000000,
@@ -262,8 +260,8 @@ export const pirateCaveRaid = (itemId) => ({
262
260
  },
263
261
  failure: {
264
262
  id: 'end_dodge_traps_failure',
265
- title: t('raids.pirate_cave.end_dodge_traps_failure.title'),
266
- text: (obtainedRewards) => t('raids.pirate_cave.end_dodge_traps_failure.text', {
263
+ title: tns('raids', 'raids.pirate_cave.end_dodge_traps_failure.title'),
264
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_dodge_traps_failure.text', {
267
265
  rewards: formatRewards('end_dodge_traps_failure', obtainedRewards, itemId === 'rudder'
268
266
  ? { berry: 100000, xp: 7700 }
269
267
  : itemId === 'rescue_boat'
@@ -288,21 +286,21 @@ export const pirateCaveRaid = (itemId) => ({
288
286
  },
289
287
  {
290
288
  id: 'uc_right_path',
291
- label: t('raids.pirate_cave.uc_right_path.label'),
289
+ label: tns('raids', 'raids.pirate_cave.uc_right_path.label'),
292
290
  output: {
293
291
  id: 'ev_right_path',
294
- title: t('raids.pirate_cave.ev_right_path.title'),
295
- text: t('raids.pirate_cave.ev_right_path.text'),
292
+ title: tns('raids', 'raids.pirate_cave.ev_right_path.title'),
293
+ text: tns('raids', 'raids.pirate_cave.ev_right_path.text'),
296
294
  rewards: undefined,
297
295
  penalties: undefined,
298
296
  outputs: [
299
297
  {
300
298
  id: 'uc_seek_chamber',
301
- label: t('raids.pirate_cave.uc_seek_chamber.label'),
299
+ label: tns('raids', 'raids.pirate_cave.uc_seek_chamber.label'),
302
300
  output: {
303
301
  id: 'end_chamber',
304
- title: t('raids.pirate_cave.end_chamber.title'),
305
- text: (obtainedRewards) => t('raids.pirate_cave.end_chamber.text', {
302
+ title: tns('raids', 'raids.pirate_cave.end_chamber.title'),
303
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_chamber.text', {
306
304
  rewards: formatRewards('end_chamber', obtainedRewards, itemId === 'rudder'
307
305
  ? {
308
306
  berry: 20000000,
@@ -343,17 +341,17 @@ export const pirateCaveRaid = (itemId) => ({
343
341
  },
344
342
  {
345
343
  id: 'uc_keep_going',
346
- label: t('raids.pirate_cave.uc_keep_going.label'),
344
+ label: tns('raids', 'raids.pirate_cave.uc_keep_going.label'),
347
345
  output: {
348
346
  id: 'ev_ghost_trap',
349
- title: t('raids.pirate_cave.ev_ghost_trap.title'),
350
- text: t('raids.pirate_cave.ev_ghost_trap.text'),
347
+ title: tns('raids', 'raids.pirate_cave.ev_ghost_trap.title'),
348
+ text: tns('raids', 'raids.pirate_cave.ev_ghost_trap.text'),
351
349
  rewards: undefined,
352
350
  penalties: undefined,
353
351
  outputs: [
354
352
  {
355
353
  id: 'uc_fight_ghost',
356
- label: t('raids.pirate_cave.uc_fight_ghost.label'),
354
+ label: tns('raids', 'raids.pirate_cave.uc_fight_ghost.label'),
357
355
  output: {
358
356
  id: 'c_strength_ghosts',
359
357
  requirements: itemId === 'sailing_boat'
@@ -361,8 +359,8 @@ export const pirateCaveRaid = (itemId) => ({
361
359
  : { strength: 125 },
362
360
  success: {
363
361
  id: 'end_fight_ghost_success',
364
- title: t('raids.pirate_cave.end_fight_ghost_success.title'),
365
- text: (obtainedRewards) => t('raids.pirate_cave.end_fight_ghost_success.text', {
362
+ title: tns('raids', 'raids.pirate_cave.end_fight_ghost_success.title'),
363
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_fight_ghost_success.text', {
366
364
  rewards: formatRewards('end_fight_ghost_success', obtainedRewards, itemId === 'rudder'
367
365
  ? {
368
366
  berry: 200000000,
@@ -393,8 +391,8 @@ export const pirateCaveRaid = (itemId) => ({
393
391
  },
394
392
  failure: {
395
393
  id: 'end_fight_ghost_failure',
396
- title: t('raids.pirate_cave.end_fight_ghost_failure.title'),
397
- text: (obtainedRewards) => t('raids.pirate_cave.end_fight_ghost_failure.text', {
394
+ title: tns('raids', 'raids.pirate_cave.end_fight_ghost_failure.title'),
395
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_fight_ghost_failure.text', {
398
396
  rewards: formatRewards('end_fight_ghost_failure', obtainedRewards, itemId === 'rudder'
399
397
  ? {
400
398
  berry: 50000,
@@ -425,7 +423,7 @@ export const pirateCaveRaid = (itemId) => ({
425
423
  },
426
424
  {
427
425
  id: 'uc_flee',
428
- label: t('raids.pirate_cave.uc_flee.label'),
426
+ label: tns('raids', 'raids.pirate_cave.uc_flee.label'),
429
427
  output: {
430
428
  id: 'c_agility_ghosts',
431
429
  requirements: itemId === 'sailing_boat'
@@ -433,8 +431,8 @@ export const pirateCaveRaid = (itemId) => ({
433
431
  : { agility: 110 },
434
432
  success: {
435
433
  id: 'end_flee_ghost_success',
436
- title: t('raids.pirate_cave.end_flee_ghost_success.title'),
437
- text: (obtainedRewards) => t('raids.pirate_cave.end_flee_ghost_success.text', {
434
+ title: tns('raids', 'raids.pirate_cave.end_flee_ghost_success.title'),
435
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_flee_ghost_success.text', {
438
436
  rewards: formatRewards('end_flee_ghost_success', obtainedRewards, itemId === 'rudder'
439
437
  ? { xp: 11000 }
440
438
  : itemId === 'rescue_boat'
@@ -450,8 +448,8 @@ export const pirateCaveRaid = (itemId) => ({
450
448
  },
451
449
  failure: {
452
450
  id: 'end_flee_ghost_failure',
453
- title: t('raids.pirate_cave.end_flee_ghost_failure.title'),
454
- text: (obtainedRewards) => t('raids.pirate_cave.end_flee_ghost_failure.text', {
451
+ title: tns('raids', 'raids.pirate_cave.end_flee_ghost_failure.title'),
452
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_flee_ghost_failure.text', {
455
453
  rewards: formatRewards('end_flee_ghost_failure', obtainedRewards, itemId === 'rudder'
456
454
  ? { xp: 11000 }
457
455
  : itemId === 'rescue_boat'
@@ -488,17 +486,17 @@ export const pirateCaveRaid = (itemId) => ({
488
486
  },
489
487
  {
490
488
  id: 'uc_walk_dark',
491
- label: t('raids.pirate_cave.uc_walk_dark.label'),
489
+ label: tns('raids', 'raids.pirate_cave.uc_walk_dark.label'),
492
490
  output: {
493
491
  id: 'ev_secret_passage',
494
- title: t('raids.pirate_cave.ev_secret_passage.title'),
495
- text: t('raids.pirate_cave.ev_secret_passage.text'),
492
+ title: tns('raids', 'raids.pirate_cave.ev_secret_passage.title'),
493
+ text: tns('raids', 'raids.pirate_cave.ev_secret_passage.text'),
496
494
  rewards: undefined,
497
495
  penalties: undefined,
498
496
  outputs: [
499
497
  {
500
498
  id: 'uc_sneak_walk',
501
- label: t('raids.pirate_cave.uc_sneak_walk.label'),
499
+ label: tns('raids', 'raids.pirate_cave.uc_sneak_walk.label'),
502
500
  output: {
503
501
  id: 'c_agility_sneak_walk',
504
502
  requirements: itemId === 'sailing_boat'
@@ -506,8 +504,8 @@ export const pirateCaveRaid = (itemId) => ({
506
504
  : { agility: 115 },
507
505
  success: {
508
506
  id: 'ev_sneak_walk_success',
509
- title: t('raids.pirate_cave.ev_sneak_walk_success.title'),
510
- text: (obtainedRewards) => t('raids.pirate_cave.ev_sneak_walk_success.text', {
507
+ title: tns('raids', 'raids.pirate_cave.ev_sneak_walk_success.title'),
508
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.ev_sneak_walk_success.text', {
511
509
  rewards: formatRewards('ev_sneak_walk_success', obtainedRewards, itemId === 'rudder'
512
510
  ? { xp: 55000 }
513
511
  : itemId === 'rescue_boat'
@@ -523,7 +521,7 @@ export const pirateCaveRaid = (itemId) => ({
523
521
  outputs: [
524
522
  {
525
523
  id: 'uc_fill_bag',
526
- label: t('raids.pirate_cave.uc_fill_bag.label'),
524
+ label: tns('raids', 'raids.pirate_cave.uc_fill_bag.label'),
527
525
  output: {
528
526
  id: 'c_strength_fill_bag',
529
527
  requirements: itemId === 'sailing_boat'
@@ -531,8 +529,8 @@ export const pirateCaveRaid = (itemId) => ({
531
529
  : { strength: 110 },
532
530
  success: {
533
531
  id: 'end_fill_bag_success',
534
- title: t('raids.pirate_cave.end_fill_bag_success.title'),
535
- text: (obtainedRewards) => t('raids.pirate_cave.end_fill_bag_success.text', {
532
+ title: tns('raids', 'raids.pirate_cave.end_fill_bag_success.title'),
533
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_fill_bag_success.text', {
536
534
  rewards: formatRewards('end_fill_bag_success', obtainedRewards, itemId === 'rudder'
537
535
  ? {
538
536
  empty_chest: 1,
@@ -588,8 +586,8 @@ export const pirateCaveRaid = (itemId) => ({
588
586
  },
589
587
  failure: {
590
588
  id: 'end_fill_bag_failure',
591
- title: t('raids.pirate_cave.end_fill_bag_failure.title'),
592
- text: (obtainedRewards) => t('raids.pirate_cave.end_fill_bag_failure.text', {
589
+ title: tns('raids', 'raids.pirate_cave.end_fill_bag_failure.title'),
590
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_fill_bag_failure.text', {
593
591
  rewards: formatRewards('end_fill_bag_failure', obtainedRewards, itemId === 'rudder'
594
592
  ? {
595
593
  wood_plank: 2,
@@ -637,8 +635,8 @@ export const pirateCaveRaid = (itemId) => ({
637
635
  },
638
636
  failure: {
639
637
  id: 'ev_sneak_walk_failure',
640
- title: t('raids.pirate_cave.ev_sneak_walk_failure.title'),
641
- text: (obtainedRewards) => t('raids.pirate_cave.ev_sneak_walk_failure.text', {
638
+ title: tns('raids', 'raids.pirate_cave.ev_sneak_walk_failure.title'),
639
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.ev_sneak_walk_failure.text', {
642
640
  rewards: formatRewards('ev_sneak_walk_failure', obtainedRewards, itemId === 'rudder'
643
641
  ? { xp: 11000 }
644
642
  : itemId === 'rescue_boat'
@@ -654,7 +652,7 @@ export const pirateCaveRaid = (itemId) => ({
654
652
  outputs: [
655
653
  {
656
654
  id: 'uc_keep_breath',
657
- label: t('raids.pirate_cave.uc_keep_breath.label'),
655
+ label: tns('raids', 'raids.pirate_cave.uc_keep_breath.label'),
658
656
  output: {
659
657
  id: 'c_chance_keep_breath',
660
658
  requirements: itemId === 'sailing_boat'
@@ -662,8 +660,8 @@ export const pirateCaveRaid = (itemId) => ({
662
660
  : { chance: 115 },
663
661
  success: {
664
662
  id: 'ev_keep_breath_success',
665
- title: t('raids.pirate_cave.ev_keep_breath_success.title'),
666
- text: (obtainedRewards) => t('raids.pirate_cave.ev_keep_breath_success.text', {
663
+ title: tns('raids', 'raids.pirate_cave.ev_keep_breath_success.title'),
664
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.ev_keep_breath_success.text', {
667
665
  rewards: formatRewards('ev_keep_breath_success', obtainedRewards, itemId === 'rudder'
668
666
  ? { xp: 55000 }
669
667
  : itemId === 'rescue_boat'
@@ -679,7 +677,7 @@ export const pirateCaveRaid = (itemId) => ({
679
677
  outputs: [
680
678
  {
681
679
  id: 'uc_fill_bag',
682
- label: t('raids.pirate_cave.uc_fill_bag.label'),
680
+ label: tns('raids', 'raids.pirate_cave.uc_fill_bag.label'),
683
681
  output: {
684
682
  id: 'c_strength_fill_bag',
685
683
  requirements: itemId === 'sailing_boat'
@@ -687,8 +685,8 @@ export const pirateCaveRaid = (itemId) => ({
687
685
  : { strength: 110 },
688
686
  success: {
689
687
  id: 'end_fill_bag_success',
690
- title: t('raids.pirate_cave.end_fill_bag_success.title'),
691
- text: (obtainedRewards) => t('raids.pirate_cave.end_fill_bag_success.text', {
688
+ title: tns('raids', 'raids.pirate_cave.end_fill_bag_success.title'),
689
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_fill_bag_success.text', {
692
690
  rewards: formatRewards('end_fill_bag_success', obtainedRewards, itemId === 'rudder'
693
691
  ? {
694
692
  empty_chest: 1,
@@ -745,8 +743,8 @@ export const pirateCaveRaid = (itemId) => ({
745
743
  },
746
744
  failure: {
747
745
  id: 'end_fill_bag_failure',
748
- title: t('raids.pirate_cave.end_fill_bag_failure.title'),
749
- text: (obtainedRewards) => t('raids.pirate_cave.end_fill_bag_failure.text', {
746
+ title: tns('raids', 'raids.pirate_cave.end_fill_bag_failure.title'),
747
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_fill_bag_failure.text', {
750
748
  rewards: formatRewards('end_fill_bag_failure', obtainedRewards, itemId === 'rudder'
751
749
  ? {
752
750
  wood_plank: 2,
@@ -795,8 +793,8 @@ export const pirateCaveRaid = (itemId) => ({
795
793
  },
796
794
  failure: {
797
795
  id: 'ev_keep_breath_failure',
798
- title: t('raids.pirate_cave.ev_keep_breath_failure.title'),
799
- text: (obtainedRewards) => t('raids.pirate_cave.ev_keep_breath_failure.text', {
796
+ title: tns('raids', 'raids.pirate_cave.ev_keep_breath_failure.title'),
797
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.ev_keep_breath_failure.text', {
800
798
  rewards: formatRewards('ev_keep_breath_failure', obtainedRewards, itemId === 'rudder'
801
799
  ? { xp: 11000 }
802
800
  : itemId === 'rescue_boat'
@@ -812,7 +810,7 @@ export const pirateCaveRaid = (itemId) => ({
812
810
  outputs: [
813
811
  {
814
812
  id: 'uc_fight_pirate',
815
- label: t('raids.pirate_cave.uc_fight_pirate.label'),
813
+ label: tns('raids', 'raids.pirate_cave.uc_fight_pirate.label'),
816
814
  output: {
817
815
  id: 'c_strength_fight_pirate',
818
816
  requirements: itemId === 'sailing_boat'
@@ -820,8 +818,8 @@ export const pirateCaveRaid = (itemId) => ({
820
818
  : { strength: 120 },
821
819
  success: {
822
820
  id: 'end_fight_pirate_success',
823
- title: t('raids.pirate_cave.end_fight_pirate_success.title'),
824
- text: (obtainedRewards) => t('raids.pirate_cave.end_fight_pirate_success.text', {
821
+ title: tns('raids', 'raids.pirate_cave.end_fight_pirate_success.title'),
822
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_fight_pirate_success.text', {
825
823
  rewards: formatRewards('end_fight_pirate_success', obtainedRewards, itemId === 'rudder'
826
824
  ? {
827
825
  empty_chest: 1,
@@ -866,8 +864,8 @@ export const pirateCaveRaid = (itemId) => ({
866
864
  },
867
865
  failure: {
868
866
  id: 'end_fight_pirate_failure',
869
- title: t('raids.pirate_cave.end_fight_pirate_failure.title'),
870
- text: (obtainedRewards) => t('raids.pirate_cave.end_fight_pirate_failure.text', {
867
+ title: tns('raids', 'raids.pirate_cave.end_fight_pirate_failure.title'),
868
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_fight_pirate_failure.text', {
871
869
  rewards: formatRewards('end_fight_pirate_failure', obtainedRewards, itemId === 'rudder'
872
870
  ? { xp: 11000 }
873
871
  : itemId ===
@@ -893,7 +891,7 @@ export const pirateCaveRaid = (itemId) => ({
893
891
  },
894
892
  {
895
893
  id: 'uc_flee',
896
- label: t('raids.pirate_cave.uc_flee.label'),
894
+ label: tns('raids', 'raids.pirate_cave.uc_flee.label'),
897
895
  output: {
898
896
  id: 'c_agility_flee_pirate',
899
897
  requirements: itemId === 'sailing_boat'
@@ -901,8 +899,8 @@ export const pirateCaveRaid = (itemId) => ({
901
899
  : { agility: 110 },
902
900
  success: {
903
901
  id: 'end_flee_pirate_success',
904
- title: t('raids.pirate_cave.end_flee_pirate_success.title'),
905
- text: (obtainedRewards) => t('raids.pirate_cave.end_flee_pirate_success.text', {
902
+ title: tns('raids', 'raids.pirate_cave.end_flee_pirate_success.title'),
903
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_flee_pirate_success.text', {
906
904
  rewards: formatRewards('end_flee_pirate_success', obtainedRewards, itemId === 'rudder'
907
905
  ? { xp: 55000 }
908
906
  : itemId ===
@@ -922,8 +920,8 @@ export const pirateCaveRaid = (itemId) => ({
922
920
  },
923
921
  failure: {
924
922
  id: 'end_flee_pirate_failure',
925
- title: t('raids.pirate_cave.end_flee_pirate_failure.title'),
926
- text: (obtainedRewards) => t('raids.pirate_cave.end_flee_pirate_failure.text', {
923
+ title: tns('raids', 'raids.pirate_cave.end_flee_pirate_failure.title'),
924
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_flee_pirate_failure.text', {
927
925
  rewards: formatRewards('end_flee_pirate_failure', obtainedRewards, itemId === 'rudder'
928
926
  ? { xp: 11000 }
929
927
  : itemId ===
@@ -957,7 +955,7 @@ export const pirateCaveRaid = (itemId) => ({
957
955
  },
958
956
  {
959
957
  id: 'uc_stun_pirate',
960
- label: t('raids.pirate_cave.uc_stun_pirate.label'),
958
+ label: tns('raids', 'raids.pirate_cave.uc_stun_pirate.label'),
961
959
  output: {
962
960
  id: 'c_strength_stun_pirate',
963
961
  requirements: itemId === 'sailing_boat'
@@ -965,8 +963,8 @@ export const pirateCaveRaid = (itemId) => ({
965
963
  : { strength: 75 },
966
964
  success: {
967
965
  id: 'end_stun_pirate_success',
968
- title: t('raids.pirate_cave.end_stun_pirate_success.title'),
969
- text: (obtainedRewards) => t('raids.pirate_cave.end_stun_pirate_success.text', {
966
+ title: tns('raids', 'raids.pirate_cave.end_stun_pirate_success.title'),
967
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_stun_pirate_success.text', {
970
968
  rewards: formatRewards('end_stun_pirate_success', obtainedRewards, itemId === 'rudder'
971
969
  ? {
972
970
  xp: 82500,
@@ -1014,8 +1012,8 @@ export const pirateCaveRaid = (itemId) => ({
1014
1012
  },
1015
1013
  failure: {
1016
1014
  id: 'end_stun_pirate_failure',
1017
- title: t('raids.pirate_cave.end_stun_pirate_failure.title'),
1018
- text: (obtainedRewards) => t('raids.pirate_cave.end_stun_pirate_failure.text', {
1015
+ title: tns('raids', 'raids.pirate_cave.end_stun_pirate_failure.title'),
1016
+ text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_stun_pirate_failure.text', {
1019
1017
  rewards: formatRewards('end_stun_pirate_failure', obtainedRewards, itemId === 'rudder'
1020
1018
  ? { xp: 27500 }
1021
1019
  : itemId === 'rescue_boat'