@opfr/raids 0.16.10 → 1.1.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 (101) hide show
  1. package/assets/mysterious_island/end_cave_blind_walk.webp +0 -0
  2. package/assets/mysterious_island/end_explore_gallery_with_torch.webp +0 -0
  3. package/assets/mysterious_island/end_indications_secret_room.webp +0 -0
  4. package/assets/mysterious_island/end_open_tomb.webp +0 -0
  5. package/assets/mysterious_island/ev_ancient_dark_passage.webp +0 -0
  6. package/assets/mysterious_island/ev_cave_torch_on.webp +0 -0
  7. package/assets/mysterious_island/ev_dark_cave.webp +0 -0
  8. package/assets/mysterious_island/ev_decipher_failure.webp +0 -0
  9. package/assets/mysterious_island/ev_decipher_success.webp +0 -0
  10. package/assets/mysterious_island/ev_dodge_animals.webp +0 -0
  11. package/assets/mysterious_island/ev_enter_jungle.webp +0 -0
  12. package/assets/mysterious_island/ev_explore_gallery_no_torch.webp +0 -0
  13. package/assets/mysterious_island/ev_find_tomb.webp +0 -0
  14. package/assets/mysterious_island/ev_main_path.webp +0 -0
  15. package/assets/mysterious_island/ev_ramp_success.webp +0 -0
  16. package/assets/mysterious_island/ev_search_way.webp +0 -0
  17. package/assets/mysterious_island/ev_start.webp +0 -0
  18. package/assets/mysterious_island/ev_walk_passage.webp +0 -0
  19. package/assets/mysterious_island/ev_walk_ruin.webp +0 -0
  20. package/assets/mysterious_island/ev_wild_animals.webp +0 -0
  21. package/assets/pirate_cave/end_explore_room.webp +0 -0
  22. package/assets/pirate_cave/end_open_chest.webp +0 -0
  23. package/assets/pirate_cave/ev_cave_begin.webp +0 -0
  24. package/assets/pirate_cave/ev_cave_entry.webp +0 -0
  25. package/assets/pirate_cave/ev_ghost_trap.webp +0 -0
  26. package/assets/pirate_cave/ev_left_path.webp +0 -0
  27. package/assets/pirate_cave/ev_right_path.webp +0 -0
  28. package/assets/pirate_cave/ev_secret_passage.webp +0 -0
  29. package/assets/pirate_cave/ev_sneak_walk_failure.webp +0 -0
  30. package/assets/pirate_cave/ev_sneak_walk_success.webp +0 -0
  31. package/assets/pirate_cave/ev_start.webp +0 -0
  32. package/assets/pirate_cave/ev_torch_on.webp +0 -0
  33. package/assets/resources/ev_enter_beach.webp +0 -0
  34. package/assets/resources/ev_enter_forest.webp +0 -0
  35. package/assets/resources/ev_enter_plains.webp +0 -0
  36. package/assets/resources/ev_goto_mine.webp +0 -0
  37. package/assets/resources/ev_hemp.webp +0 -0
  38. package/assets/resources/ev_salt_water.webp +0 -0
  39. package/assets/resources/ev_search_cereal.webp +0 -0
  40. package/assets/resources/ev_search_cotton.webp +0 -0
  41. package/assets/resources/ev_search_wood.webp +0 -0
  42. package/assets/resources/ev_start.webp +0 -0
  43. package/assets/training/end_captain_suite.webp +0 -0
  44. package/assets/training/end_fruits.webp +0 -0
  45. package/assets/training/end_plants.webp +0 -0
  46. package/assets/training/end_ship_hold.webp +0 -0
  47. package/assets/training/ev_agility50_failure.webp +0 -0
  48. package/assets/training/ev_agility50_success.webp +0 -0
  49. package/assets/training/ev_begin_forest.webp +0 -0
  50. package/assets/training/ev_dense_jungle.webp +0 -0
  51. package/assets/training/ev_hard_path.webp +0 -0
  52. package/assets/training/ev_start.webp +0 -0
  53. package/assets/training/ev_swamp.webp +0 -0
  54. package/dist/events/callbacks.d.ts +5 -0
  55. package/dist/events/callbacks.d.ts.map +1 -0
  56. package/dist/events/callbacks.js +38 -0
  57. package/dist/events/callbacks.js.map +1 -0
  58. package/dist/events/event.d.ts +7 -0
  59. package/dist/events/event.d.ts.map +1 -0
  60. package/dist/events/event.js +14 -0
  61. package/dist/events/event.js.map +1 -0
  62. package/dist/events/index.d.ts +2 -0
  63. package/dist/events/index.d.ts.map +1 -0
  64. package/dist/events/index.js +9 -0
  65. package/dist/events/index.js.map +1 -0
  66. package/dist/index.d.ts +1 -2
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.es.js +892 -851
  69. package/dist/index.js +1 -1
  70. package/dist/index.js.map +1 -1
  71. package/dist/index.umd.js +8 -8
  72. package/dist/raids/mysteriousIsland.d.ts +2 -3
  73. package/dist/raids/mysteriousIsland.d.ts.map +1 -1
  74. package/dist/raids/mysteriousIsland.js +221 -125
  75. package/dist/raids/mysteriousIsland.js.map +1 -1
  76. package/dist/raids/pirateCave.d.ts +2 -3
  77. package/dist/raids/pirateCave.d.ts.map +1 -1
  78. package/dist/raids/pirateCave.js +162 -96
  79. package/dist/raids/pirateCave.js.map +1 -1
  80. package/dist/raids/resources.d.ts +2 -3
  81. package/dist/raids/resources.d.ts.map +1 -1
  82. package/dist/raids/resources.js +159 -86
  83. package/dist/raids/resources.js.map +1 -1
  84. package/dist/raids/training.d.ts +2 -3
  85. package/dist/raids/training.d.ts.map +1 -1
  86. package/dist/raids/training.js +96 -49
  87. package/dist/raids/training.js.map +1 -1
  88. package/dist/utils.d.ts +4 -5
  89. package/dist/utils.d.ts.map +1 -1
  90. package/dist/utils.js +39 -40
  91. package/dist/utils.js.map +1 -1
  92. package/locales/fr.json +0 -711
  93. package/package.json +17 -15
  94. package/dist/characteristics.d.ts +0 -6
  95. package/dist/characteristics.d.ts.map +0 -1
  96. package/dist/characteristics.js +0 -27
  97. package/dist/characteristics.js.map +0 -1
  98. package/dist/types.d.ts +0 -81
  99. package/dist/types.d.ts.map +0 -1
  100. package/dist/types.js +0 -2
  101. package/dist/types.js.map +0 -1
@@ -1,68 +1,93 @@
1
- import { findItem } from '@opfr/items';
2
- import { tns } from '@opfr/translate';
1
+ import { t } from 'i18next';
2
+ import { getEntityName } from '@opfr/entities';
3
3
  import { formatRewards } from '../utils';
4
- export const pirateCaveRaid = (itemId) => ({
4
+ export const pirateCaveRaid = async (itemId) => ({
5
5
  id: 'pirate_cave',
6
- name: tns('raids', 'raids.pirate_cave.name'),
7
- description: tns('raids', 'raids.pirate_cave.description'),
6
+ name: t('raids.pirate_cave.name', { ns: 'raids' }),
7
+ description: t('raids.pirate_cave.description', { ns: 'raids' }),
8
8
  cooldown: 604800000,
9
9
  type: 'classic',
10
10
  start: {
11
11
  id: 'ev_start',
12
- title: tns('raids', 'raids.pirate_cave.ev_start.title'),
13
- text: tns('raids', 'raids.pirate_cave.ev_start.text'),
12
+ title: t('raids.pirate_cave.ev_start.title', { ns: 'raids' }),
13
+ text: t('raids.pirate_cave.ev_start.text', { ns: 'raids' }),
14
14
  rewards: undefined,
15
15
  penalties: undefined,
16
16
  outputs: [
17
17
  {
18
18
  id: 'uc_continue',
19
- label: tns('raids', 'raids.pirate_cave.uc_continue.label'),
19
+ label: t('raids.pirate_cave.uc_continue.label', { ns: 'raids' }),
20
20
  output: {
21
21
  id: 'ev_cave_entry',
22
- title: tns('raids', 'raids.pirate_cave.ev_cave_entry.title'),
23
- text: tns('raids', 'raids.pirate_cave.ev_cave_entry.text'),
22
+ title: t('raids.pirate_cave.ev_cave_entry.title', { ns: 'raids' }),
23
+ text: t('raids.pirate_cave.ev_cave_entry.text', { ns: 'raids' }),
24
24
  rewards: undefined,
25
25
  penalties: undefined,
26
26
  outputs: [
27
27
  {
28
28
  id: 'uc_cave_entry',
29
- label: tns('raids', 'raids.pirate_cave.uc_cave_entry.label'),
29
+ label: t('raids.pirate_cave.uc_cave_entry.label', {
30
+ ns: 'raids',
31
+ }),
30
32
  output: {
31
33
  id: 'ev_cave_begin',
32
- title: tns('raids', 'raids.pirate_cave.ev_cave_begin.title'),
33
- text: tns('raids', 'raids.pirate_cave.ev_cave_begin.text'),
34
+ title: t('raids.pirate_cave.ev_cave_begin.title', {
35
+ ns: 'raids',
36
+ }),
37
+ text: t('raids.pirate_cave.ev_cave_begin.text', {
38
+ ns: 'raids',
39
+ }),
34
40
  rewards: undefined,
35
41
  penalties: undefined,
36
42
  outputs: [
37
43
  {
38
44
  id: 'rq_cave_torch',
39
45
  requirements: { wood: 1 },
40
- label: tns('raids', 'raids.pirate_cave.rq_cave_torch.label', { requirements: findItem('wood').name(1) }),
46
+ label: t('raids.pirate_cave.rq_cave_torch.label', {
47
+ ns: 'raids',
48
+ ...{ requirements: await getEntityName('wood', 1) },
49
+ }),
41
50
  output: {
42
51
  id: 'ev_torch_on',
43
- title: tns('raids', 'raids.pirate_cave.ev_torch_on.title'),
44
- text: tns('raids', 'raids.pirate_cave.ev_torch_on.text'),
52
+ title: t('raids.pirate_cave.ev_torch_on.title', {
53
+ ns: 'raids',
54
+ }),
55
+ text: t('raids.pirate_cave.ev_torch_on.text', {
56
+ ns: 'raids',
57
+ }),
45
58
  rewards: undefined,
46
59
  penalties: undefined,
47
60
  outputs: [
48
61
  {
49
62
  id: 'uc_left_path',
50
- label: tns('raids', 'raids.pirate_cave.uc_left_path.label'),
63
+ label: t('raids.pirate_cave.uc_left_path.label', {
64
+ ns: 'raids',
65
+ }),
51
66
  output: {
52
67
  id: 'ev_left_path',
53
- title: tns('raids', 'raids.pirate_cave.ev_left_path.title'),
54
- text: tns('raids', 'raids.pirate_cave.ev_left_path.text'),
68
+ title: t('raids.pirate_cave.ev_left_path.title', {
69
+ ns: 'raids',
70
+ }),
71
+ text: t('raids.pirate_cave.ev_left_path.text', {
72
+ ns: 'raids',
73
+ }),
55
74
  rewards: undefined,
56
75
  penalties: undefined,
57
76
  outputs: [
58
77
  {
59
78
  id: 'rq_remove_traps',
60
79
  requirements: { tools: 1 },
61
- label: tns('raids', 'raids.pirate_cave.rq_remove_traps.label', { requirements: findItem('tools').name(1) }),
80
+ label: t('raids.pirate_cave.rq_remove_traps.label', {
81
+ ns: 'raids',
82
+ ...{
83
+ requirements: await getEntityName('tools', 1),
84
+ },
85
+ }),
62
86
  output: {
63
87
  id: 'ev_no_trap',
64
- title: tns('raids', 'raids.pirate_cave.ev_no_trap.title'),
65
- text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.ev_no_trap.text', {
88
+ title: t('raids.pirate_cave.ev_no_trap.title', { ns: 'raids' }),
89
+ text: (obtainedRewards) => t('raids.pirate_cave.ev_no_trap.text', {
90
+ ns: 'raids',
66
91
  rewards: formatRewards('ev_no_trap', obtainedRewards, itemId === 'rudder'
67
92
  ? { xp: 55000 }
68
93
  : itemId === 'rescue_boat'
@@ -78,11 +103,12 @@ export const pirateCaveRaid = (itemId) => ({
78
103
  outputs: [
79
104
  {
80
105
  id: 'uc_open_chest',
81
- label: tns('raids', 'raids.pirate_cave.uc_open_chest.label'),
106
+ label: t('raids.pirate_cave.uc_open_chest.label', { ns: 'raids' }),
82
107
  output: {
83
108
  id: 'end_open_chest',
84
- title: tns('raids', 'raids.pirate_cave.end_open_chest.title'),
85
- text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_open_chest.text', {
109
+ title: t('raids.pirate_cave.end_open_chest.title', { ns: 'raids' }),
110
+ text: (obtainedRewards) => t('raids.pirate_cave.end_open_chest.text', {
111
+ ns: 'raids',
86
112
  rewards: formatRewards('end_open_chest', obtainedRewards, itemId === 'rudder'
87
113
  ? {
88
114
  berry: 100000000,
@@ -119,11 +145,12 @@ export const pirateCaveRaid = (itemId) => ({
119
145
  },
120
146
  {
121
147
  id: 'uc_explore_room',
122
- label: tns('raids', 'raids.pirate_cave.uc_explore_room.label'),
148
+ label: t('raids.pirate_cave.uc_explore_room.label', { ns: 'raids' }),
123
149
  output: {
124
150
  id: 'end_explore_room',
125
- title: tns('raids', 'raids.pirate_cave.end_explore_room.title'),
126
- text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_explore_room.text', {
151
+ title: t('raids.pirate_cave.end_explore_room.title', { ns: 'raids' }),
152
+ text: (obtainedRewards) => t('raids.pirate_cave.end_explore_room.text', {
153
+ ns: 'raids',
127
154
  rewards: formatRewards('end_explore_room', obtainedRewards, itemId === 'rudder'
128
155
  ? {
129
156
  berry: 200000000,
@@ -157,7 +184,7 @@ export const pirateCaveRaid = (itemId) => ({
157
184
  },
158
185
  {
159
186
  id: 'uc_dodge_traps',
160
- label: tns('raids', 'raids.pirate_cave.uc_dodge_traps.label'),
187
+ label: t('raids.pirate_cave.uc_dodge_traps.label', { ns: 'raids' }),
161
188
  output: {
162
189
  id: 'c_agility_trap',
163
190
  requirements: itemId === 'sailing_boat'
@@ -165,8 +192,9 @@ export const pirateCaveRaid = (itemId) => ({
165
192
  : { agility: 115 },
166
193
  success: {
167
194
  id: 'ev_dodge_traps_success',
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', {
195
+ title: t('raids.pirate_cave.ev_dodge_traps_success.title', { ns: 'raids' }),
196
+ text: (obtainedRewards) => t('raids.pirate_cave.ev_dodge_traps_success.text', {
197
+ ns: 'raids',
170
198
  rewards: formatRewards('ev_dodge_traps_success', obtainedRewards, itemId === 'rudder'
171
199
  ? { xp: 55000 }
172
200
  : itemId === 'rescue_boat'
@@ -182,11 +210,12 @@ export const pirateCaveRaid = (itemId) => ({
182
210
  outputs: [
183
211
  {
184
212
  id: 'uc_open_chest',
185
- label: tns('raids', 'raids.pirate_cave.uc_open_chest.label'),
213
+ label: t('raids.pirate_cave.uc_open_chest.label', { ns: 'raids' }),
186
214
  output: {
187
215
  id: 'end_open_chest',
188
- title: tns('raids', 'raids.pirate_cave.end_open_chest.title'),
189
- text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_open_chest.text', {
216
+ title: t('raids.pirate_cave.end_open_chest.title', { ns: 'raids' }),
217
+ text: (obtainedRewards) => t('raids.pirate_cave.end_open_chest.text', {
218
+ ns: 'raids',
190
219
  rewards: formatRewards('end_open_chest', obtainedRewards, itemId === 'rudder'
191
220
  ? {
192
221
  berry: 100000000,
@@ -223,11 +252,12 @@ export const pirateCaveRaid = (itemId) => ({
223
252
  },
224
253
  {
225
254
  id: 'uc_explore_room',
226
- label: tns('raids', 'raids.pirate_cave.uc_explore_room.label'),
255
+ label: t('raids.pirate_cave.uc_explore_room.label', { ns: 'raids' }),
227
256
  output: {
228
257
  id: 'end_explore_room',
229
- title: tns('raids', 'raids.pirate_cave.end_explore_room.title'),
230
- text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_explore_room.text', {
258
+ title: t('raids.pirate_cave.end_explore_room.title', { ns: 'raids' }),
259
+ text: (obtainedRewards) => t('raids.pirate_cave.end_explore_room.text', {
260
+ ns: 'raids',
231
261
  rewards: formatRewards('end_explore_room', obtainedRewards, itemId === 'rudder'
232
262
  ? {
233
263
  berry: 200000000,
@@ -260,8 +290,9 @@ export const pirateCaveRaid = (itemId) => ({
260
290
  },
261
291
  failure: {
262
292
  id: 'end_dodge_traps_failure',
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', {
293
+ title: t('raids.pirate_cave.end_dodge_traps_failure.title', { ns: 'raids' }),
294
+ text: (obtainedRewards) => t('raids.pirate_cave.end_dodge_traps_failure.text', {
295
+ ns: 'raids',
265
296
  rewards: formatRewards('end_dodge_traps_failure', obtainedRewards, itemId === 'rudder'
266
297
  ? { berry: 100000, xp: 7700 }
267
298
  : itemId === 'rescue_boat'
@@ -286,21 +317,28 @@ export const pirateCaveRaid = (itemId) => ({
286
317
  },
287
318
  {
288
319
  id: 'uc_right_path',
289
- label: tns('raids', 'raids.pirate_cave.uc_right_path.label'),
320
+ label: t('raids.pirate_cave.uc_right_path.label', {
321
+ ns: 'raids',
322
+ }),
290
323
  output: {
291
324
  id: 'ev_right_path',
292
- title: tns('raids', 'raids.pirate_cave.ev_right_path.title'),
293
- text: tns('raids', 'raids.pirate_cave.ev_right_path.text'),
325
+ title: t('raids.pirate_cave.ev_right_path.title', {
326
+ ns: 'raids',
327
+ }),
328
+ text: t('raids.pirate_cave.ev_right_path.text', {
329
+ ns: 'raids',
330
+ }),
294
331
  rewards: undefined,
295
332
  penalties: undefined,
296
333
  outputs: [
297
334
  {
298
335
  id: 'uc_seek_chamber',
299
- label: tns('raids', 'raids.pirate_cave.uc_seek_chamber.label'),
336
+ label: t('raids.pirate_cave.uc_seek_chamber.label', { ns: 'raids' }),
300
337
  output: {
301
338
  id: 'end_chamber',
302
- title: tns('raids', 'raids.pirate_cave.end_chamber.title'),
303
- text: (obtainedRewards) => tns('raids', 'raids.pirate_cave.end_chamber.text', {
339
+ title: t('raids.pirate_cave.end_chamber.title', { ns: 'raids' }),
340
+ text: (obtainedRewards) => t('raids.pirate_cave.end_chamber.text', {
341
+ ns: 'raids',
304
342
  rewards: formatRewards('end_chamber', obtainedRewards, itemId === 'rudder'
305
343
  ? {
306
344
  berry: 20000000,
@@ -341,17 +379,17 @@ export const pirateCaveRaid = (itemId) => ({
341
379
  },
342
380
  {
343
381
  id: 'uc_keep_going',
344
- label: tns('raids', 'raids.pirate_cave.uc_keep_going.label'),
382
+ label: t('raids.pirate_cave.uc_keep_going.label', { ns: 'raids' }),
345
383
  output: {
346
384
  id: 'ev_ghost_trap',
347
- title: tns('raids', 'raids.pirate_cave.ev_ghost_trap.title'),
348
- text: tns('raids', 'raids.pirate_cave.ev_ghost_trap.text'),
385
+ title: t('raids.pirate_cave.ev_ghost_trap.title', { ns: 'raids' }),
386
+ text: t('raids.pirate_cave.ev_ghost_trap.text', { ns: 'raids' }),
349
387
  rewards: undefined,
350
388
  penalties: undefined,
351
389
  outputs: [
352
390
  {
353
391
  id: 'uc_fight_ghost',
354
- label: tns('raids', 'raids.pirate_cave.uc_fight_ghost.label'),
392
+ label: t('raids.pirate_cave.uc_fight_ghost.label', { ns: 'raids' }),
355
393
  output: {
356
394
  id: 'c_strength_ghosts',
357
395
  requirements: itemId === 'sailing_boat'
@@ -359,8 +397,9 @@ export const pirateCaveRaid = (itemId) => ({
359
397
  : { strength: 125 },
360
398
  success: {
361
399
  id: 'end_fight_ghost_success',
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', {
400
+ title: t('raids.pirate_cave.end_fight_ghost_success.title', { ns: 'raids' }),
401
+ text: (obtainedRewards) => t('raids.pirate_cave.end_fight_ghost_success.text', {
402
+ ns: 'raids',
364
403
  rewards: formatRewards('end_fight_ghost_success', obtainedRewards, itemId === 'rudder'
365
404
  ? {
366
405
  berry: 200000000,
@@ -391,8 +430,9 @@ export const pirateCaveRaid = (itemId) => ({
391
430
  },
392
431
  failure: {
393
432
  id: 'end_fight_ghost_failure',
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', {
433
+ title: t('raids.pirate_cave.end_fight_ghost_failure.title', { ns: 'raids' }),
434
+ text: (obtainedRewards) => t('raids.pirate_cave.end_fight_ghost_failure.text', {
435
+ ns: 'raids',
396
436
  rewards: formatRewards('end_fight_ghost_failure', obtainedRewards, itemId === 'rudder'
397
437
  ? {
398
438
  berry: 50000,
@@ -423,7 +463,7 @@ export const pirateCaveRaid = (itemId) => ({
423
463
  },
424
464
  {
425
465
  id: 'uc_flee',
426
- label: tns('raids', 'raids.pirate_cave.uc_flee.label'),
466
+ label: t('raids.pirate_cave.uc_flee.label', { ns: 'raids' }),
427
467
  output: {
428
468
  id: 'c_agility_ghosts',
429
469
  requirements: itemId === 'sailing_boat'
@@ -431,8 +471,9 @@ export const pirateCaveRaid = (itemId) => ({
431
471
  : { agility: 110 },
432
472
  success: {
433
473
  id: 'end_flee_ghost_success',
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', {
474
+ title: t('raids.pirate_cave.end_flee_ghost_success.title', { ns: 'raids' }),
475
+ text: (obtainedRewards) => t('raids.pirate_cave.end_flee_ghost_success.text', {
476
+ ns: 'raids',
436
477
  rewards: formatRewards('end_flee_ghost_success', obtainedRewards, itemId === 'rudder'
437
478
  ? { xp: 11000 }
438
479
  : itemId === 'rescue_boat'
@@ -448,8 +489,9 @@ export const pirateCaveRaid = (itemId) => ({
448
489
  },
449
490
  failure: {
450
491
  id: 'end_flee_ghost_failure',
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', {
492
+ title: t('raids.pirate_cave.end_flee_ghost_failure.title', { ns: 'raids' }),
493
+ text: (obtainedRewards) => t('raids.pirate_cave.end_flee_ghost_failure.text', {
494
+ ns: 'raids',
453
495
  rewards: formatRewards('end_flee_ghost_failure', obtainedRewards, itemId === 'rudder'
454
496
  ? { xp: 11000 }
455
497
  : itemId === 'rescue_boat'
@@ -486,17 +528,25 @@ export const pirateCaveRaid = (itemId) => ({
486
528
  },
487
529
  {
488
530
  id: 'uc_walk_dark',
489
- label: tns('raids', 'raids.pirate_cave.uc_walk_dark.label'),
531
+ label: t('raids.pirate_cave.uc_walk_dark.label', {
532
+ ns: 'raids',
533
+ }),
490
534
  output: {
491
535
  id: 'ev_secret_passage',
492
- title: tns('raids', 'raids.pirate_cave.ev_secret_passage.title'),
493
- text: tns('raids', 'raids.pirate_cave.ev_secret_passage.text'),
536
+ title: t('raids.pirate_cave.ev_secret_passage.title', {
537
+ ns: 'raids',
538
+ }),
539
+ text: t('raids.pirate_cave.ev_secret_passage.text', {
540
+ ns: 'raids',
541
+ }),
494
542
  rewards: undefined,
495
543
  penalties: undefined,
496
544
  outputs: [
497
545
  {
498
546
  id: 'uc_sneak_walk',
499
- label: tns('raids', 'raids.pirate_cave.uc_sneak_walk.label'),
547
+ label: t('raids.pirate_cave.uc_sneak_walk.label', {
548
+ ns: 'raids',
549
+ }),
500
550
  output: {
501
551
  id: 'c_agility_sneak_walk',
502
552
  requirements: itemId === 'sailing_boat'
@@ -504,8 +554,9 @@ export const pirateCaveRaid = (itemId) => ({
504
554
  : { agility: 115 },
505
555
  success: {
506
556
  id: 'ev_sneak_walk_success',
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', {
557
+ title: t('raids.pirate_cave.ev_sneak_walk_success.title', { ns: 'raids' }),
558
+ text: (obtainedRewards) => t('raids.pirate_cave.ev_sneak_walk_success.text', {
559
+ ns: 'raids',
509
560
  rewards: formatRewards('ev_sneak_walk_success', obtainedRewards, itemId === 'rudder'
510
561
  ? { xp: 55000 }
511
562
  : itemId === 'rescue_boat'
@@ -521,7 +572,7 @@ export const pirateCaveRaid = (itemId) => ({
521
572
  outputs: [
522
573
  {
523
574
  id: 'uc_fill_bag',
524
- label: tns('raids', 'raids.pirate_cave.uc_fill_bag.label'),
575
+ label: t('raids.pirate_cave.uc_fill_bag.label', { ns: 'raids' }),
525
576
  output: {
526
577
  id: 'c_strength_fill_bag',
527
578
  requirements: itemId === 'sailing_boat'
@@ -529,8 +580,9 @@ export const pirateCaveRaid = (itemId) => ({
529
580
  : { strength: 110 },
530
581
  success: {
531
582
  id: 'end_fill_bag_success',
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', {
583
+ title: t('raids.pirate_cave.end_fill_bag_success.title', { ns: 'raids' }),
584
+ text: (obtainedRewards) => t('raids.pirate_cave.end_fill_bag_success.text', {
585
+ ns: 'raids',
534
586
  rewards: formatRewards('end_fill_bag_success', obtainedRewards, itemId === 'rudder'
535
587
  ? {
536
588
  empty_chest: 1,
@@ -586,8 +638,9 @@ export const pirateCaveRaid = (itemId) => ({
586
638
  },
587
639
  failure: {
588
640
  id: 'end_fill_bag_failure',
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', {
641
+ title: t('raids.pirate_cave.end_fill_bag_failure.title', { ns: 'raids' }),
642
+ text: (obtainedRewards) => t('raids.pirate_cave.end_fill_bag_failure.text', {
643
+ ns: 'raids',
591
644
  rewards: formatRewards('end_fill_bag_failure', obtainedRewards, itemId === 'rudder'
592
645
  ? {
593
646
  wood_plank: 2,
@@ -635,8 +688,9 @@ export const pirateCaveRaid = (itemId) => ({
635
688
  },
636
689
  failure: {
637
690
  id: 'ev_sneak_walk_failure',
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', {
691
+ title: t('raids.pirate_cave.ev_sneak_walk_failure.title', { ns: 'raids' }),
692
+ text: (obtainedRewards) => t('raids.pirate_cave.ev_sneak_walk_failure.text', {
693
+ ns: 'raids',
640
694
  rewards: formatRewards('ev_sneak_walk_failure', obtainedRewards, itemId === 'rudder'
641
695
  ? { xp: 11000 }
642
696
  : itemId === 'rescue_boat'
@@ -652,7 +706,7 @@ export const pirateCaveRaid = (itemId) => ({
652
706
  outputs: [
653
707
  {
654
708
  id: 'uc_keep_breath',
655
- label: tns('raids', 'raids.pirate_cave.uc_keep_breath.label'),
709
+ label: t('raids.pirate_cave.uc_keep_breath.label', { ns: 'raids' }),
656
710
  output: {
657
711
  id: 'c_chance_keep_breath',
658
712
  requirements: itemId === 'sailing_boat'
@@ -660,8 +714,9 @@ export const pirateCaveRaid = (itemId) => ({
660
714
  : { chance: 115 },
661
715
  success: {
662
716
  id: 'ev_keep_breath_success',
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', {
717
+ title: t('raids.pirate_cave.ev_keep_breath_success.title', { ns: 'raids' }),
718
+ text: (obtainedRewards) => t('raids.pirate_cave.ev_keep_breath_success.text', {
719
+ ns: 'raids',
665
720
  rewards: formatRewards('ev_keep_breath_success', obtainedRewards, itemId === 'rudder'
666
721
  ? { xp: 55000 }
667
722
  : itemId === 'rescue_boat'
@@ -677,7 +732,7 @@ export const pirateCaveRaid = (itemId) => ({
677
732
  outputs: [
678
733
  {
679
734
  id: 'uc_fill_bag',
680
- label: tns('raids', 'raids.pirate_cave.uc_fill_bag.label'),
735
+ label: t('raids.pirate_cave.uc_fill_bag.label', { ns: 'raids' }),
681
736
  output: {
682
737
  id: 'c_strength_fill_bag',
683
738
  requirements: itemId === 'sailing_boat'
@@ -685,8 +740,9 @@ export const pirateCaveRaid = (itemId) => ({
685
740
  : { strength: 110 },
686
741
  success: {
687
742
  id: 'end_fill_bag_success',
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', {
743
+ title: t('raids.pirate_cave.end_fill_bag_success.title', { ns: 'raids' }),
744
+ text: (obtainedRewards) => t('raids.pirate_cave.end_fill_bag_success.text', {
745
+ ns: 'raids',
690
746
  rewards: formatRewards('end_fill_bag_success', obtainedRewards, itemId === 'rudder'
691
747
  ? {
692
748
  empty_chest: 1,
@@ -743,8 +799,9 @@ export const pirateCaveRaid = (itemId) => ({
743
799
  },
744
800
  failure: {
745
801
  id: 'end_fill_bag_failure',
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', {
802
+ title: t('raids.pirate_cave.end_fill_bag_failure.title', { ns: 'raids' }),
803
+ text: (obtainedRewards) => t('raids.pirate_cave.end_fill_bag_failure.text', {
804
+ ns: 'raids',
748
805
  rewards: formatRewards('end_fill_bag_failure', obtainedRewards, itemId === 'rudder'
749
806
  ? {
750
807
  wood_plank: 2,
@@ -793,8 +850,9 @@ export const pirateCaveRaid = (itemId) => ({
793
850
  },
794
851
  failure: {
795
852
  id: 'ev_keep_breath_failure',
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', {
853
+ title: t('raids.pirate_cave.ev_keep_breath_failure.title', { ns: 'raids' }),
854
+ text: (obtainedRewards) => t('raids.pirate_cave.ev_keep_breath_failure.text', {
855
+ ns: 'raids',
798
856
  rewards: formatRewards('ev_keep_breath_failure', obtainedRewards, itemId === 'rudder'
799
857
  ? { xp: 11000 }
800
858
  : itemId === 'rescue_boat'
@@ -810,7 +868,7 @@ export const pirateCaveRaid = (itemId) => ({
810
868
  outputs: [
811
869
  {
812
870
  id: 'uc_fight_pirate',
813
- label: tns('raids', 'raids.pirate_cave.uc_fight_pirate.label'),
871
+ label: t('raids.pirate_cave.uc_fight_pirate.label', { ns: 'raids' }),
814
872
  output: {
815
873
  id: 'c_strength_fight_pirate',
816
874
  requirements: itemId === 'sailing_boat'
@@ -818,8 +876,9 @@ export const pirateCaveRaid = (itemId) => ({
818
876
  : { strength: 120 },
819
877
  success: {
820
878
  id: 'end_fight_pirate_success',
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', {
879
+ title: t('raids.pirate_cave.end_fight_pirate_success.title', { ns: 'raids' }),
880
+ text: (obtainedRewards) => t('raids.pirate_cave.end_fight_pirate_success.text', {
881
+ ns: 'raids',
823
882
  rewards: formatRewards('end_fight_pirate_success', obtainedRewards, itemId === 'rudder'
824
883
  ? {
825
884
  empty_chest: 1,
@@ -864,8 +923,9 @@ export const pirateCaveRaid = (itemId) => ({
864
923
  },
865
924
  failure: {
866
925
  id: 'end_fight_pirate_failure',
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', {
926
+ title: t('raids.pirate_cave.end_fight_pirate_failure.title', { ns: 'raids' }),
927
+ text: (obtainedRewards) => t('raids.pirate_cave.end_fight_pirate_failure.text', {
928
+ ns: 'raids',
869
929
  rewards: formatRewards('end_fight_pirate_failure', obtainedRewards, itemId === 'rudder'
870
930
  ? { xp: 11000 }
871
931
  : itemId ===
@@ -891,7 +951,7 @@ export const pirateCaveRaid = (itemId) => ({
891
951
  },
892
952
  {
893
953
  id: 'uc_flee',
894
- label: tns('raids', 'raids.pirate_cave.uc_flee.label'),
954
+ label: t('raids.pirate_cave.uc_flee.label', { ns: 'raids' }),
895
955
  output: {
896
956
  id: 'c_agility_flee_pirate',
897
957
  requirements: itemId === 'sailing_boat'
@@ -899,8 +959,9 @@ export const pirateCaveRaid = (itemId) => ({
899
959
  : { agility: 110 },
900
960
  success: {
901
961
  id: 'end_flee_pirate_success',
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', {
962
+ title: t('raids.pirate_cave.end_flee_pirate_success.title', { ns: 'raids' }),
963
+ text: (obtainedRewards) => t('raids.pirate_cave.end_flee_pirate_success.text', {
964
+ ns: 'raids',
904
965
  rewards: formatRewards('end_flee_pirate_success', obtainedRewards, itemId === 'rudder'
905
966
  ? { xp: 55000 }
906
967
  : itemId ===
@@ -920,8 +981,9 @@ export const pirateCaveRaid = (itemId) => ({
920
981
  },
921
982
  failure: {
922
983
  id: 'end_flee_pirate_failure',
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', {
984
+ title: t('raids.pirate_cave.end_flee_pirate_failure.title', { ns: 'raids' }),
985
+ text: (obtainedRewards) => t('raids.pirate_cave.end_flee_pirate_failure.text', {
986
+ ns: 'raids',
925
987
  rewards: formatRewards('end_flee_pirate_failure', obtainedRewards, itemId === 'rudder'
926
988
  ? { xp: 11000 }
927
989
  : itemId ===
@@ -955,7 +1017,9 @@ export const pirateCaveRaid = (itemId) => ({
955
1017
  },
956
1018
  {
957
1019
  id: 'uc_stun_pirate',
958
- label: tns('raids', 'raids.pirate_cave.uc_stun_pirate.label'),
1020
+ label: t('raids.pirate_cave.uc_stun_pirate.label', {
1021
+ ns: 'raids',
1022
+ }),
959
1023
  output: {
960
1024
  id: 'c_strength_stun_pirate',
961
1025
  requirements: itemId === 'sailing_boat'
@@ -963,8 +1027,9 @@ export const pirateCaveRaid = (itemId) => ({
963
1027
  : { strength: 75 },
964
1028
  success: {
965
1029
  id: 'end_stun_pirate_success',
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', {
1030
+ title: t('raids.pirate_cave.end_stun_pirate_success.title', { ns: 'raids' }),
1031
+ text: (obtainedRewards) => t('raids.pirate_cave.end_stun_pirate_success.text', {
1032
+ ns: 'raids',
968
1033
  rewards: formatRewards('end_stun_pirate_success', obtainedRewards, itemId === 'rudder'
969
1034
  ? {
970
1035
  xp: 82500,
@@ -1012,8 +1077,9 @@ export const pirateCaveRaid = (itemId) => ({
1012
1077
  },
1013
1078
  failure: {
1014
1079
  id: 'end_stun_pirate_failure',
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', {
1080
+ title: t('raids.pirate_cave.end_stun_pirate_failure.title', { ns: 'raids' }),
1081
+ text: (obtainedRewards) => t('raids.pirate_cave.end_stun_pirate_failure.text', {
1082
+ ns: 'raids',
1017
1083
  rewards: formatRewards('end_stun_pirate_failure', obtainedRewards, itemId === 'rudder'
1018
1084
  ? { xp: 27500 }
1019
1085
  : itemId === 'rescue_boat'