@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.
- package/dist/images.d.ts.map +1 -1
- package/dist/images.js +0 -43
- package/dist/images.js.map +1 -1
- package/dist/index.es.js +896 -556
- package/dist/index.umd.js +9 -9
- package/dist/raids/mysteriousIsland.d.ts.map +1 -1
- package/dist/raids/mysteriousIsland.js +123 -125
- package/dist/raids/mysteriousIsland.js.map +1 -1
- package/dist/raids/pirateCave.d.ts.map +1 -1
- package/dist/raids/pirateCave.js +94 -96
- package/dist/raids/pirateCave.js.map +1 -1
- package/dist/raids/resources.d.ts.map +1 -1
- package/dist/raids/resources.js +77 -77
- package/dist/raids/resources.js.map +1 -1
- package/dist/raids/training.d.ts.map +1 -1
- package/dist/raids/training.js +48 -44
- package/dist/raids/training.js.map +1 -1
- package/dist/utils.js +5 -5
- package/dist/utils.js.map +1 -1
- package/package.json +6 -6
- package/assets/happy_christmas/end_happy_ending.webp +0 -0
- package/assets/happy_christmas/end_refuse_quest.webp +0 -0
- package/assets/happy_christmas/ev_abandoned_village.webp +0 -0
- package/assets/happy_christmas/ev_candies_island.webp +0 -0
- package/assets/happy_christmas/ev_center_village.webp +0 -0
- package/assets/happy_christmas/ev_enter_in_temple.webp +0 -0
- package/assets/happy_christmas/ev_espace_giant.webp +0 -0
- package/assets/happy_christmas/ev_fail_attack_on_jack_frost.webp +0 -0
- package/assets/happy_christmas/ev_follow_giant_trace.webp +0 -0
- package/assets/happy_christmas/ev_forest_already_meet_giant.webp +0 -0
- package/assets/happy_christmas/ev_found_bear.webp +0 -0
- package/assets/happy_christmas/ev_found_elf.webp +0 -0
- package/assets/happy_christmas/ev_found_refuge.webp +0 -0
- package/assets/happy_christmas/ev_found_reinder.webp +0 -0
- package/assets/happy_christmas/ev_found_santa_claus_house.webp +0 -0
- package/assets/happy_christmas/ev_free_elf.webp +0 -0
- package/assets/happy_christmas/ev_frozen_clouds.webp +0 -0
- package/assets/happy_christmas/ev_futur_spirit.webp +0 -0
- package/assets/happy_christmas/ev_giant_cavern.webp +0 -0
- package/assets/happy_christmas/ev_giant_spawn.webp +0 -0
- package/assets/happy_christmas/ev_gingerbread.webp +0 -0
- package/assets/happy_christmas/ev_jack_frost_hit.webp +0 -0
- package/assets/happy_christmas/ev_last_attack.webp +0 -0
- package/assets/happy_christmas/ev_look_magic_map.webp +0 -0
- package/assets/happy_christmas/ev_looking_across_window.webp +0 -0
- package/assets/happy_christmas/ev_past_spirit.webp +0 -0
- package/assets/happy_christmas/ev_present_spirit.webp +0 -0
- package/assets/happy_christmas/ev_reinder_human.webp +0 -0
- package/assets/happy_christmas/ev_rest_and_listen.webp +0 -0
- package/assets/happy_christmas/ev_rest_and_listen_but_nothing_given.webp +0 -0
- package/assets/happy_christmas/ev_santa_claus_island.webp +0 -0
- package/assets/happy_christmas/ev_snowy_forest.webp +0 -0
- package/assets/happy_christmas/ev_storm.webp +0 -0
- package/assets/happy_christmas/ev_succeed_attack_again.webp +0 -0
- package/assets/happy_christmas/ev_succeed_attack_again_again.webp +0 -0
- package/assets/happy_christmas/ev_success_convince.webp +0 -0
- package/assets/happy_christmas/ev_sugar_forest.webp +0 -0
- package/assets/happy_christmas/ev_too_much_sugar.webp +0 -0
- package/assets/happy_christmas/ev_village.webp +0 -0
- package/assets/happy_christmas/ev_warm.webp +0 -0
- package/assets/happy_christmas/ev_win_fight.webp +0 -0
- package/dist/raids/happyChristmas.d.ts +0 -4
- package/dist/raids/happyChristmas.d.ts.map +0 -1
- package/dist/raids/happyChristmas.js +0 -8206
- package/dist/raids/happyChristmas.js.map +0 -1
package/dist/raids/pirateCave.js
CHANGED
|
@@ -1,70 +1,68 @@
|
|
|
1
1
|
import { findItem } from '@opfr/items';
|
|
2
|
-
import {
|
|
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:
|
|
7
|
-
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:
|
|
13
|
-
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:
|
|
19
|
+
label: tns('raids', 'raids.pirate_cave.uc_continue.label'),
|
|
20
20
|
output: {
|
|
21
21
|
id: 'ev_cave_entry',
|
|
22
|
-
title:
|
|
23
|
-
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:
|
|
29
|
+
label: tns('raids', 'raids.pirate_cave.uc_cave_entry.label'),
|
|
30
30
|
output: {
|
|
31
31
|
id: 'ev_cave_begin',
|
|
32
|
-
title:
|
|
33
|
-
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:
|
|
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:
|
|
46
|
-
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:
|
|
50
|
+
label: tns('raids', 'raids.pirate_cave.uc_left_path.label'),
|
|
53
51
|
output: {
|
|
54
52
|
id: 'ev_left_path',
|
|
55
|
-
title:
|
|
56
|
-
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:
|
|
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:
|
|
67
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
81
|
+
label: tns('raids', 'raids.pirate_cave.uc_open_chest.label'),
|
|
84
82
|
output: {
|
|
85
83
|
id: 'end_open_chest',
|
|
86
|
-
title:
|
|
87
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
122
|
+
label: tns('raids', 'raids.pirate_cave.uc_explore_room.label'),
|
|
125
123
|
output: {
|
|
126
124
|
id: 'end_explore_room',
|
|
127
|
-
title:
|
|
128
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
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:
|
|
171
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
185
|
+
label: tns('raids', 'raids.pirate_cave.uc_open_chest.label'),
|
|
188
186
|
output: {
|
|
189
187
|
id: 'end_open_chest',
|
|
190
|
-
title:
|
|
191
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
226
|
+
label: tns('raids', 'raids.pirate_cave.uc_explore_room.label'),
|
|
229
227
|
output: {
|
|
230
228
|
id: 'end_explore_room',
|
|
231
|
-
title:
|
|
232
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
266
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
289
|
+
label: tns('raids', 'raids.pirate_cave.uc_right_path.label'),
|
|
292
290
|
output: {
|
|
293
291
|
id: 'ev_right_path',
|
|
294
|
-
title:
|
|
295
|
-
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:
|
|
299
|
+
label: tns('raids', 'raids.pirate_cave.uc_seek_chamber.label'),
|
|
302
300
|
output: {
|
|
303
301
|
id: 'end_chamber',
|
|
304
|
-
title:
|
|
305
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
344
|
+
label: tns('raids', 'raids.pirate_cave.uc_keep_going.label'),
|
|
347
345
|
output: {
|
|
348
346
|
id: 'ev_ghost_trap',
|
|
349
|
-
title:
|
|
350
|
-
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:
|
|
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:
|
|
365
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
397
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
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:
|
|
437
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
454
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
489
|
+
label: tns('raids', 'raids.pirate_cave.uc_walk_dark.label'),
|
|
492
490
|
output: {
|
|
493
491
|
id: 'ev_secret_passage',
|
|
494
|
-
title:
|
|
495
|
-
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:
|
|
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:
|
|
510
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
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:
|
|
535
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
592
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
641
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
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:
|
|
666
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
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:
|
|
691
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
749
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
799
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
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:
|
|
824
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
870
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
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:
|
|
905
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
926
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
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:
|
|
969
|
-
text: (obtainedRewards) =>
|
|
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:
|
|
1018
|
-
text: (obtainedRewards) =>
|
|
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'
|