forked from Bluefissure/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
byakko-ex.js
543 lines (535 loc) · 17.2 KB
/
byakko-ex.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
'use strict';
// Byakko Extreme
[{
zoneRegex: /^The Jade Stoa \(Extreme\)$/,
timelineFile: 'byakko-ex.txt',
triggers: [
{
id: 'ByaEx Heavenly Strike',
regex: / 14:27DA:Byakko starts using Heavenly Strike on (\y{Name})/,
regexDe: / 14:27DA:Byakko starts using Himmlischer Schlag on (\y{Name})/,
regexFr: / 14:27DA:Byakko starts using Frappe Céleste on (\y{Name})/,
regexJa: / 14:27DA:白虎 starts using 天雷掌 on (\y{Name})/,
alertText: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'Tank Buster on YOU',
de: 'Tankbuster auf DIR',
fr: 'Tankbuster sur VOUS',
ja: '自分にタンク即死級',
};
}
if (data.role == 'healer') {
return {
en: 'Buster on ' + data.ShortName(matches[1]),
de: 'Tankbuster auf ' + data.ShortName(matches[1]),
fr: 'Tankbuster sur ' + data.ShortName(matches[1]),
ja: 'タンク即死級に' + data.ShortName(matches[1]),
};
}
},
tts: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'buster',
de: 'basta',
fr: 'tankbuster',
ja: 'タンク即死級',
};
}
},
},
{
id: 'ByaEx Flying Donut',
regex: / 14:27F4:Byakko starts using Sweep The Leg/,
regexDe: / 14:27F4:Byakko starts using Vertikalität/,
regexFr: / 14:27F4:Byakko starts using Verticalité/,
regexJa: / 14:27F4:白虎 starts using 旋体脚/,
alertText: function(data, matches) {
return {
en: 'Get Inside',
de: 'Reingehen',
fr: 'Allez au centre',
ja: '密着',
};
},
tts: {
en: 'inside',
de: 'rein',
fr: 'centre',
ja: '密着',
},
},
{
id: 'ByaEx Sweep The Leg',
regex: / 14:27DB:Byakko starts using Sweep The Leg/,
regexDe: / 14:27DB:Byakko starts using Vertikalität/,
regexFr: / 14:27DB:Byakko starts using Verticalité/,
regexJa: / 14:27DB:白虎 starts using 旋体脚/,
alertText: function(data, matches) {
return {
en: 'Get Behind',
de: 'Hinter ihn laufen',
fr: 'Allez derrière le boss',
ja: '後ろ',
};
},
tts: {
en: 'behind',
de: 'hinter ihn',
fr: 'derrière',
ja: '後ろ',
},
},
{
id: 'ByaEx Storm Pulse',
regex: / 14:27DC:Byakko starts using Storm Pulse/,
regexDe: / 14:27DC:Byakko starts using Gewitterwelle/,
regexFr: / 14:27DC:Byakko starts using Pulsion De Tempête/,
regexJa: / 14:27DC:白虎 starts using 風雷波動/,
infoText: function(data, matches) {
if (data.role == 'healer') {
return {
en: 'AOE',
de: 'AoE',
fr: 'AoE',
ja: 'AoE',
};
}
},
tts: {
en: 'aoe',
de: 'a o e',
fr: ' a o e',
ja: 'AoE',
},
},
{
id: 'ByaEx Distant Clap',
regex: / 14:27DD:Byakko starts using Distant Clap on Byakko/,
regexDe: / 14:27DD:Byakko starts using Donnergrollen on Byakko/,
regexFr: / 14:27DD:Byakko starts using Tonnerre Lointain on Byakko/,
regexJa: / 14:27DD:白虎 starts using 遠雷 on 白虎/,
alertText: function(data, matches) {
return {
en: 'Distant Clap',
de: 'Donnergrollen',
fr: 'Tonnerre Lointain',
ja: '遠雷',
};
},
tts: {
en: 'clap',
de: 'grollen',
fr: 'tonnerre',
ja: '遠雷',
},
},
{
id: 'ByaEx State Of Shock Tank 1',
regex: / 14:27E0:Byakko starts using State Of Shock on (\y{Name})/,
regexDe: / 14:27E0:Byakko starts using Bannblitze on (\y{Name})/,
regexFr: / 14:27E0:Byakko starts using État De Choc on (\y{Name})/,
regexJa: / 14:27E0:白虎 starts using 呪縛雷 on (\y{Name})/,
condition: function(data, matches) {
return data.role == 'tank' && matches[1] != data.me;
},
alertText: {
en: 'Provoke Boss',
de: 'Boss abspotten',
fr: 'Provoquez !',
ja: '挑発',
},
tts: {
en: 'Provoke',
de: 'abspotten',
fr: 'provoquez',
ja: '挑発',
},
},
{
id: 'ByaEx State Of Shock Tank 2',
regex: / 14:27E0:Byakko starts using State Of Shock on (\y{Name})/,
regexDe: / 14:27E0:Byakko starts using Bannblitze on (\y{Name})/,
regexFr: / 14:27E0:Byakko starts using État De Choc on (\y{Name})/,
regexJa: / 14:27E0:白虎 starts using 呪縛雷 on (\y{Name})/,
delaySeconds: 12,
condition: function(data, matches) {
return data.role == 'tank' && matches[1] == data.me;
},
alertText: {
en: 'Provoke Boss',
de: 'Boss abspotten',
fr: 'Provoquez !',
ja: '挑発',
},
tts: {
en: 'Provoke',
de: 'abspotten',
fr: 'provoquez',
ja: '挑発',
},
},
{
regex: / 14:27F9:Hakutei starts using The Roar Of Thunder/,
regexDe: / 14:27F9:Hakutei starts using Brüllen Des Donners/,
regexFr: / 14:27F9:Hakutei starts using Rugissement Du Tonnerre/,
regexJa: / 14:27F9:Hakutei starts using 雷轟/,
run: function(data) {
data.roarCount = data.roarCount || 0;
data.roarCount += 1;
},
},
{
id: 'ByaEx Roar of Thunder',
regex: / 14:27F9:Hakutei starts using The Roar Of Thunder/,
regexDe: / 14:27F9:Hakutei starts using Brüllen Des Donners/,
regexFr: / 14:27F9:Hakutei starts using Rugissement Du Tonnerre/,
regexJa: / 14:27F9:白帝 starts using 雷轟/,
delaySeconds: 14,
alarmText: function(data) {
if (data.roarCount != 2)
return;
if (data.role == 'tank') {
return {
en: 'Tank LB NOW',
de: 'JETZT Tank LB',
fr: 'LB Tank maintenant !',
ja: '今タンクLB',
};
}
},
},
{
id: 'ByaEx Bubble',
regex: /1B:........:(\y{Name}):....:....:0065:0000:0000:0000:/,
condition: function(data, matches) {
return matches[1] == data.me;
},
infoText: function(data) {
return {
en: 'Drop bubble outside',
de: 'Blase außen ablegen',
fr: 'Déposez à l\'extérieur',
ja: '外にマーカーを置く',
};
},
tts: {
en: 'drop outside',
de: 'außen ablegen',
fr: 'déposez extérieur',
ja: '外にマーカー',
},
},
{
id: 'ByaEx Ominous Wind',
regex: /1A:(\y{Name}) gains the effect of Ominous Wind/,
regexDe: /1A:(\y{Name}) gains the effect of Unheilvoller Wind/,
regexFr: /1A:(\y{Name}) gains the effect of Vent Mauvais/,
regexJa: /1A:(\y{Name}) gains the effect of 祟り目/,
condition: function(data, matches) {
return matches[1] == data.me;
},
infoText: function(data) {
return {
en: 'Pink bubble',
de: 'Pinke Blase',
fr: 'Bulle violette',
ja: '祟り目',
};
},
tts: {
en: 'bubble',
de: 'blase',
fr: 'bulle',
ja: '祟り目',
},
},
{
id: 'ByaEx Puddle Marker',
regex: /1B:........:(\y{Name}):....:....:0004:0000:0000:0000:/,
condition: function(data, matches) {
return matches[1] == data.me;
},
alarmText: function(data) {
return {
en: 'Puddles on YOU',
de: 'Pfützen auf DIR',
fr: 'Mare sur VOUS',
ja: '自分に床範囲',
};
},
tts: {
en: 'puddles',
de: 'pfützen',
fr: 'mare',
ja: '床範囲',
},
},
{
id: 'ByaEx G100',
regex: /1B:........:(\y{Name}):....:....:0057:0000:0000:0000:/,
condition: function(data, matches) {
return matches[1] == data.me;
},
infoText: function(data) {
return {
en: 'Get away',
de: 'Weg da',
fr: 'Eloignez-vous',
ja: '離れる',
};
},
tts: {
en: 'get away',
de: 'weck da',
fr: 'eloignez vous',
ja: '離れる',
},
},
{
id: 'ByaEx Tiger Add',
regex: / 00:0044:Twofold is my wrath, twice-cursed my foes!/,
regexDe: / 00:0044:Stürmt los, meine zwei Gesichter!/,
regexFr: / 00:0044:Ma colère devient double.*?!/,
regexJa: / 00:0044:駆けろ、我が半身ッ!歯向かう者どもに、牙と爪を突き立ててやれ!/,
infoText: function(data) {
if (data.role == 'tank') {
return {
en: 'Tiger Add',
de: 'Tiger Add',
fr: 'Add Tigre',
ja: '虎分離',
};
}
},
},
{
regex: / 14:27E2:Byakko starts using Highest Stakes/,
regexDe: / 14:27E2:Byakko starts using Höchstes Risiko/,
regexFr: / 14:27E2:Byakko starts using Tout Pour Le Tout/,
regexJa: / 14:27E2:Byakko starts using 乾坤一擲/,
run: function(data) {
data.stakeCount = data.stakeCount || 0;
data.stakeCount += 1;
},
},
{
regex: / 14:27E2:Byakko starts using Highest Stakes/,
regexDe: / 14:27E2:Byakko starts using Höchstes Risiko/,
regexFr: / 14:27E2:Byakko starts using Tout Pour Le Tout/,
regexJa: / 14:27E2:Byakko starts using 乾坤一擲/,
delaySeconds: 20,
run: function(data) {
delete data.stakeCount;
},
},
{
id: 'ByaEx Highest Stakes',
regex: / 14:27E2:Byakko starts using Highest Stakes/,
regexDe: / 14:27E2:Byakko starts using Höchstes Risiko/,
regexFr: / 14:27E2:Byakko starts using Tout Pour Le Tout/,
regexJa: / 14:27E2:Byakko starts using 乾坤一擲/,
infoText: function(data) {
return {
en: 'Stack #' + data.stakeCount,
de: 'Stack #' + data.stakeCount,
fr: 'Stack #' + data.stakeCount,
};
},
},
],
timelineReplace: [
{
'locale': 'de',
'replaceSync': {
'Aratama Force': 'Aratama-Kraft',
'Aratama Soul': 'Aratama-Seele',
'Byakko': 'Byakko',
'Engage!': 'Start!',
'Hakutei': 'Hakutei',
// FIXME
'There is no turning back!': 'There is no turning back!',
'All creation trembles before my might!': 'All creation trembles before my might!',
},
'replaceText': {
'--targetable--': '--anvisierbar--',
'--untargetable--': '--nich anvisierbar--',
'Answer On High': 'Himmlische Antwort',
'Aratama': 'Einschlag',
'Bombogenesis': 'Plötzliches Orkantief',
'Clutch': 'Umklammerung',
'Dance Of The Incomplete': 'Tanz Der Zwei Gesichter',
'Distant Clap': 'Donnergrollen',
'Enrage': 'Finalangriff',
'Fell Swoop': 'Auf Einen Streich',
'Fire And Lightning': 'Feuer Und Blitz',
'Gale Force': 'Orkan',
'Heavenly Strike': 'Himmlischer Schlag',
'Highest Stakes': 'Höchstes Risiko',
'Hundredfold Havoc': 'Hundertfache Verwüstung',
'Imperial Guard': 'Herbststurm',
'Ominous Wind': 'Unheilvoller Wind',
'State Of Shock': 'Bannblitze',
'Steel Claw': 'Stahlklaue',
'Storm Pulse': 'Gewitterwelle',
'Sweep The Leg': 'Vertikalität',
'The Roar Of Thunder': 'Brüllen Des Donners',
'The Voice Of Thunder': 'Stimme Des Donners',
'Unrelenting Anguish': 'Pandämonium',
'Vacuum Claw': 'Vakuumklaue',
'White Herald': 'Herbstböe',
// FIXME
'leap north': 'leap north',
'Puddle Markers': 'Puddle Markers',
'Hakutei Add': 'Hakutei Add',
'Tiger Cleave': 'Tiger Cleave',
'tiger untargetable': 'tiger untargetable',
'tiger lands': 'tiger lands',
'TP Orbs': 'TP Orbs',
'Roar Of Thunder': 'Brüllen Des Donners',
'Donut AOE': 'Donut AOE',
'Line AOE': 'Line AOE',
'Orb Marker': 'Orb Marker',
'leap middle': 'leap middle',
},
'~effectNames': {
'Area Of Influence Up': 'Erweiterter Radius',
'Down For The Count': 'Am Boden',
'Falling': 'Freier Fall',
'Fetters': 'Gefesselt',
'Ominous Wind': 'Unheilvoller Wind',
'Paralysis': 'Paralyse',
'Physical Vulnerability Up': 'Erhöhte Physische Verwundbarkeit',
'Stun': 'Betäubung',
},
},
{
'locale': 'fr',
'replaceSync': {
'Aratama Force': 'Aramitama',
'Aratama Soul': 'Aramitama',
'Byakko': 'Byakko',
'Engage!': 'À l\'attaque',
'Hakutei': 'Byakko',
// FIXME
'There is no turning back!': 'There is no turning back!',
'All creation trembles before my might!': 'All creation trembles before my might!',
},
'replaceText': {
'--Reset--': '--Réinitialisation--',
'--sync--': '--Synchronisation--',
'--targetable--': '--Ciblable--',
'--untargetable--': '--Impossible à cibler--',
'Answer On High': 'Foudre Céleste',
'Aratama': 'Aratama',
'Bombogenesis': 'Bombogénèse',
'Clutch': 'Empoignement',
'Dance Of The Incomplete': 'Danse Semi-bestiale',
'Distant Clap': 'Tonnerre Lointain',
'Enrage': 'Enrage',
'Fell Swoop': 'Éléments Déchaînés',
'Fire And Lightning': 'Feu Et Foudre',
'Gale Force': 'Coup De Rafale',
'Heavenly Strike': 'Frappe Céleste',
'Highest Stakes': 'Tout Pour Le Tout',
'Hundredfold Havoc': 'Ravages Centuples',
'Imperial Guard': 'Garde Impériale',
'Ominous Wind': 'Vent Mauvais',
'State Of Shock': 'État De Choc',
'Steel Claw': 'Griffe D\'acier',
'Storm Pulse': 'Pulsion De Tempête',
'Sweep The Leg': 'Verticalité',
'The Roar Of Thunder': 'Rugissement Du Tonnerre',
'The Voice Of Thunder': 'Voix Du Tonnerre',
'Unrelenting Anguish': 'Douleur Continuelle',
'Vacuum Claw': 'Griffe De Vide',
'White Herald': 'Héraut Blanc',
// FIXME
'leap north': 'leap north',
'Puddle Markers': 'Puddle Markers',
'Hakutei Add': 'Hakutei Add',
'Tiger Cleave': 'Tiger Cleave',
'tiger untargetable': 'tiger untargetable',
'tiger lands': 'tiger lands',
'TP Orbs': 'TP Orbs',
'Roar Of Thunder': 'Brüllen Des Donners',
'Donut AOE': 'Donut AOE',
'Line AOE': 'Line AOE',
'Orb Marker': 'Orb Marker',
'leap middle': 'leap middle',
},
'~effectNames': {
'Area Of Influence Up': 'Aire D\'effet Augmentée',
'Down For The Count': 'Au Tapis',
'Falling': 'Chute Libre',
'Fetters': 'Empoignement',
'Ominous Wind': 'Vent Mauvais',
'Paralysis': 'Paralysie',
'Physical Vulnerability Up': 'Vulnérabilité Physique Augmentée',
'Stun': 'Étourdissement',
},
},
{
'locale': 'ja',
'replaceSync': {
'Aratama Force': '荒弾',
'Aratama Soul': '荒魂',
'Byakko': '白虎',
'Engage!': '戦闘開始!',
'Hakutei': '白帝',
// FIXME
'There is no turning back!': 'There is no turning back!',
'All creation trembles before my might!': 'All creation trembles before my might!',
},
'replaceText': {
'Answer On High': '天つ雷',
'Aratama': '着弾',
'Bombogenesis': '爆弾低気圧',
'Clutch': '掌握',
'Dance Of The Incomplete': '半獣舞踏',
'Distant Clap': '遠雷',
'Fell Swoop': '迅雷風烈波',
'Fire And Lightning': '雷火一閃',
'Gale Force': '暴風',
'Heavenly Strike': '天雷掌',
'Highest Stakes': '乾坤一擲',
'Hundredfold Havoc': '百雷繚乱',
'Imperial Guard': '白帝一陣',
'Ominous Wind': '祟り風',
'State Of Shock': '呪縛雷',
'Steel Claw': '鉄爪斬',
'Storm Pulse': '風雷波動',
'Sweep The Leg': '旋体脚',
'The Roar Of Thunder': '雷轟',
'The Voice Of Thunder': '雷声',
'Unrelenting Anguish': '無間地獄',
'Vacuum Claw': '真空爪',
'White Herald': '白帝衝',
// FIXME
'leap north': 'leap north',
'Puddle Markers': 'Puddle Markers',
'Hakutei Add': 'Hakutei Add',
'Tiger Cleave': 'Tiger Cleave',
'tiger untargetable': 'tiger untargetable',
'tiger lands': 'tiger lands',
'TP Orbs': 'TP Orbs',
'Roar Of Thunder': 'Brüllen Des Donners',
'Donut AOE': 'Donut AOE',
'Line AOE': 'Line AOE',
'Orb Marker': 'Orb Marker',
'leap middle': 'leap middle',
},
'~effectNames': {
'Area Of Influence Up': 'アクション効果範囲拡大',
'Down For The Count': 'ノックダウン',
'Falling': '自由落下',
'Fetters': '拘束',
'Ominous Wind': '祟り風',
'Paralysis': '麻痺',
'Physical Vulnerability Up': '被物理ダメージ増加',
'Stun': 'スタン',
},
},
],
}];