forked from Bluefissure/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unending_coil_ultimate.js
1889 lines (1846 loc) · 66.9 KB
/
unending_coil_ultimate.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
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'use strict';
// UCU - The Unending Coil Of Bahamut (Ultimate)
// localization:
// de: partial timeline, partial triggers
// fr: partial timeline, partial triggers
// ja: partial timeline, partial triggers
[{
zoneRegex: /The Unending Coil Of Bahamut \(Ultimate\)/,
timelineFile: 'unending_coil_ultimate.txt',
triggers: [
// --- State ---
{
regex: /:(\y{Name}) gains the effect of Firescorched/,
regexDe: /:(\y{Name}) gains the effect of Feuerhorn/,
regexFr: /:(\y{Name}) gains the effect of Corne-de-feu/,
regexJa: /:(\y{Name}) gains the effect of ファイアホーン/,
condition: function(data, matches) {
return data.me == matches[1];
},
run: function(data) {
data.fireDebuff = true;
},
},
{
regex: /:(\y{Name}) loses the effect of Firescorched/,
regexDe: /:(\y{Name}) loses the effect of Feuerhorn/,
regexFr: /:(\y{Name}) loses the effect of Corne-de-feu/,
regexJa: /:(\y{Name}) loses the effect of ファイアホーン/,
condition: function(data, matches) {
return data.me == matches[1];
},
run: function(data) {
data.fireDebuff = false;
},
},
{
regex: /:(\y{Name}) gains the effect of Icebitten/,
regexDe: /:(\y{Name}) gains the effect of Eisklaue/,
regexFr: /:(\y{Name}) gains the effect of Griffe-de-glace/,
regexJa: /:(\y{Name}) gains the effect of アイスクロウ/,
condition: function(data, matches) {
return data.me == matches[1];
},
run: function(data) {
data.iceDebuff = true;
},
},
{
regex: /:(\y{Name}) loses the effect of Icebitten/,
regexDe: /:(\y{Name}) loses the effect of Eisklaue/,
regexFr: /:(\y{Name}) loses the effect of Griffe-de-glace/,
regexJa: /:(\y{Name}) loses the effect of アイスクロウ/,
condition: function(data, matches) {
return data.me == matches[1];
},
run: function(data) {
data.iceDebuff = false;
},
},
{
regex: /1[56]:\y{ObjectId}:Firehorn:26C5:Fireball:\y{ObjectId}:(\y{Name}):/,
regexDe: /1[56]:\y{ObjectId}:Feuerhorn:26C5:Feuerball:\y{ObjectId}:(\y{Name}):/,
regexFr: /1[56]:\y{ObjectId}:Corne-de-feu:26C5:Boule De Feu:\y{ObjectId}:(\y{Name}):/,
regexJa: /1[56]:\y{ObjectId}:ファイアホーン:26C5:ファイアボール:\y{ObjectId}:(\y{Name}):/,
run: function(data, matches) {
data.fireballs[data.naelFireballCount].push(matches[1]);
},
},
{
regex: /:26E2:Bahamut Prime starts using Quickmarch Trio/,
regexDe: /:26E2:Prim-Bahamut starts using Todesmarsch-Trio/,
regexFr: /:26E2:Primo-Bahamut starts using Trio De La Marche Militaire/,
regexJa: /:26E2:バハムート・プライム starts using 進軍の三重奏/,
run: function(data) {
if (data.resetTrio) data.resetTrio('quickmarch');
},
},
{
regex: /:26E3:Bahamut Prime starts using Blackfire Trio/,
regexDe: /:26E3:Prim-Bahamut starts using Schwarzfeuer-Trio/,
regexFr: /:26E3:Primo-Bahamut starts using Trio Des Flammes Noires/,
regexJa: /:26E3:バハムート・プライム starts using 黒炎の三重奏/,
run: function(data) {
if (data.resetTrio) data.resetTrio('blackfire');
},
},
{
regex: /:26E4:Bahamut Prime starts using Fellruin Trio/,
regexDe: /:26E4:Prim-Bahamut starts using Untergangs-Trio/,
regexFr: /:26E4:Primo-Bahamut starts using Trio Du Désastre/,
regexJa: /:26E4:バハムート・プライム starts using 厄災の三重奏/,
run: function(data) {
if (data.resetTrio) data.resetTrio('fellruin');
},
},
{
regex: /:26E5:Bahamut Prime starts using Heavensfall Trio/,
regexDe: /:26E5:Prim-Bahamut starts using Himmelssturz Trio/,
regexFr: /:26E5:Primo-Bahamut starts using Trio De L'univers/,
regexJa: /:26E5:バハムート・プライム starts using 天地の三重奏/,
run: function(data) {
if (data.resetTrio) data.resetTrio('heavensfall');
},
},
{
regex: /:26E6:Bahamut Prime starts using Tenstrike Trio/,
regexDe: /:26E6:Prim-Bahamut starts using Zehnschlag-Trio/,
regexFr: /:26E6:Primo-Bahamut starts using Trio Des Attaques/,
regexJa: /:26E6:バハムート・プライム starts using 連撃の三重奏/,
run: function(data) {
if (data.resetTrio) data.resetTrio('tenstrike');
},
},
{
regex: /:26E7:Bahamut Prime starts using Grand Octet/,
regexDe: /:26E7:Prim-Bahamut starts using Großes Oktett/,
regexFr: /:26E7:Primo-Bahamut starts using Octuors Des Dragons/,
regexJa: /:26E7:バハムート・プライム starts using 群竜の八重奏/,
run: function(data) {
if (data.resetTrio) data.resetTrio('octet');
},
},
{
regex: /16:........:Ragnarok:26B8:Heavensfall:........:(\y{Name}):/,
regexDe: /16:........:Ragnarök:26B8:Himmelssturz:........:(\y{Name}):/,
regexFr: /16:........:Ragnarok:26B8:Destruction Universelle:........:(\y{Name}):/,
regexJa: /16:........:ラグナロク:26B8:天地崩壊:........:(\y{Name}):/,
run: function(data, matches) {
// This happens once during the nael transition and again during
// the heavensfall trio. This should proooobably hit all 8
// people by the time you get to octet.
data.partyList = data.partyList || {};
data.partyList[matches[1]] = true;
},
},
// --- Twintania ---
{ id: 'UCU Twisters',
regex: /:26AA:Twintania starts using/,
regexDe: /:26AA:Twintania starts using/,
regexFr: /:26AA:Gémellia starts using/,
regexJa: /:26AA:ツインタニア starts using/,
alertText: {
en: 'Twisters',
fr: 'Tornades',
de: 'Wirbelstürme',
ja: '大竜巻',
},
tts: {
en: 'twisters',
fr: 'Tornades',
de: 'Wirbelstürme',
ja: '大竜巻',
},
},
{ id: 'UCU Death Sentence',
regex: /:Twintania readies Death Sentence/,
regexDe: /:Twintania readies Todesurteil/,
regexFr: /:Gémellia readies Peine De Mort/,
regexJa: /:ツインタニア readies デスセンテンス/,
alertText: function(data, matches) {
if (data.role == 'tank' || data.role == 'healer') {
return {
en: 'Death Sentence',
fr: 'Peine de mort',
de: 'Todesurteil',
ja: 'デスセンテンス',
};
}
},
tts: function(data, matches) {
if (data.role == 'tank' || data.role == 'healer') {
return {
en: 'buster',
fr: 'Anti-tank',
de: 'basta',
ja: 'タンク即死級',
};
}
},
},
{ // Hatch Collect
regex: /1B:........:(\y{Name}):....:....:0076:0000:0000:0000:/,
run: function(data, matches) {
data.hatch = data.hatch || [];
data.hatch.push(matches[1]);
},
},
{ id: 'UCU Hatch Marker YOU',
regex: /1B:........:(\y{Name}):....:....:0076:0000:0000:0000:/,
condition: function(data, matches) {
return data.me == matches[1];
},
alarmText: {
en: 'Hatch on YOU',
fr: 'Éclosion sur VOUS',
de: 'Ausbrüten auf DIR',
ja: '自分に魔力爆散',
},
tts: {
en: 'hatch',
fr: 'Éclosion',
de: 'ausbrüten',
ja: '魔力爆散',
},
},
{
id: 'UCU Hatch Callouts',
regex: /1B:........:(\y{Name}):....:....:0076:0000:0000:0000:/,
delaySeconds: 0.25,
infoText: function(data, matches) {
if (!data.hatch)
return;
let hatches = data.hatch.map(function(n) {
return data.ShortName(n);
}).join(', ');
delete data.hatch;
return {
en: 'Hatch: ' + hatches,
fr: 'Éclosion: ' + hatches,
de: 'Ausbrüten: ' + hatches,
ja: '魔力爆散' + hatches,
};
},
},
{ // Hatch Cleanup
regex: /1B:........:(\y{Name}):....:....:0076:0000:0000:0000:/,
delaySeconds: 5,
run: function(data) {
delete data.hatch;
},
},
{ id: 'UCU Twintania P2',
regex: /:Twintania HP at 75%/,
regexDe: /:Twintania HP at 75%/,
regexFr: /:Gémellia HP at 75%/,
regexJa: /:ツインタニア HP at 75%/,
sound: 'Long',
infoText: function(data, matches) {
return {
en: 'Phase 2 Push',
fr: 'Phase 2 poussée',
de: 'Phase 2 Stoß',
ja: 'フェーズ2',
};
},
},
{ id: 'UCU Twintania P3',
regex: /:Twintania HP at 45%/,
regexDe: /:Twintania HP at 45%/,
regexFr: /:Gémellia HP at 45%/,
regexJa: /:ツインタニア HP at 45%/,
sound: 'Long',
infoText: function(data, matches) {
return {
en: 'Phase 3 Push',
fr: 'Phase 3 poussée',
de: 'Phase 3 Stoß',
ja: 'フェーズ3',
};
},
},
// --- Nael ---
{ id: 'UCU Nael Quote 1',
regex: /From on high I descend, in blessed light to bask/,
regexFr: /Des cieux je vais descendre et révérer la lune/,
regexDe: /Seht, ich steige herab, vom rotglühenden Monde/,
regexJa: /月を仰がん/,
infoText: {
en: 'Spread => In',
fr: 'Se dispercer => Dedans',
de: 'Verteilen => Rein',
ja: '散開 => 密着',
},
durationSeconds: 6,
tts: {
en: 'spread then in',
fr: 'Se dispercer, puis dedans',
de: 'verteilen, dann rein',
ja: '散開や密着',
},
},
{ id: 'UCU Nael Quote 2',
regex: /From on high I descend, mine enemies to smite/,
regexFr: /Du haut des cieux, je vais descendre pour conquérir/,
regexDe: /Seht, ich steige herab, um euch zu beherrschen/,
regexJa: /鉄の覇道を征く/,
infoText: {
en: 'Spread => Out',
fr: 'Se dispercer => Dehors',
de: 'Verteilen => Raus',
ja: '散開 => 離れる',
},
durationSeconds: 6,
tts: {
en: 'spread then out',
fr: 'Se dispercer, puis dehors',
de: 'verteilen, dann raus',
ja: '散開や離れる',
},
},
{ id: 'UCU Nael Quote 3',
regex: /O refulgent moon, shine down your light/,
regexFr: /Baignez dans la bénédiction de la lune incandescente/,
regexDe: /Flammender Pfad, geschaffen vom roten Mond/,
regexJa: /月の祝福を/,
infoText: {
en: 'Stack => In',
fr: 'Se rassembler => Dedans',
de: 'Stack => Rein',
ja: '頭割り => 密着',
},
durationSeconds: 6,
tts: {
en: 'stack then in',
fr: 'Se rassembler, puis dedans',
de: 'stek dann rein',
ja: '頭割りや密着',
},
},
{ id: 'UCU Nael Quote 4',
regex: /Blazing path, lead me to conquest/,
regexFr: /La voie marquée par l'incandescence mène à la domination/,
regexDe: /Umloderter Pfad, führe mich zur Herrschaft/,
regexJa: /鉄の覇道と成す/,
infoText: {
en: 'Stack => Out',
fr: 'Se rassembler => Dehors',
de: 'Stack => Raus',
ja: '頭割り => 離れる',
},
durationSeconds: 6,
tts: {
en: 'stack then out',
fr: 'Se rassembler, puis dehors',
de: 'stek dann raus',
ja: '頭割りや離れる',
},
},
{ id: 'UCU Nael Quote 5',
regex: /O red moon, scorch mine enemies/,
regexFr: /Que l'incandescence de la lune brûle mes ennemis/,
regexDe: /O roter Mond! Umlodere meinen Pfad/,
regexJa: /赤熱し、神敵を焼け/,
infoText: {
en: 'In => Stack',
fr: 'Dedans => Se rassembler',
de: 'Rein => Stack',
ja: '密着 => 頭割り',
},
durationSeconds: 6,
tts: {
en: 'in then stack',
fr: 'Dedans, puis se rassembler',
de: 'rein dann stek',
ja: '密着や頭割り',
},
},
{ id: 'UCU Nael Quote 6',
regex: /O red moon, shine the path to conquest/,
regexFr: /Ô lune! Éclaire la voie de la domination/,
regexDe: /O roter Mond! Führe mich zur Herrschaft/,
regexJa: /鉄の覇道を照らせ/,
infoText: {
en: 'In => Out',
fr: 'Dedans => Dehors',
de: 'Rein => Raus',
ja: '密着 => 離れる',
},
durationSeconds: 6,
tts: {
en: 'in then out',
fr: 'Dedans, puis dehors',
de: 'rein dann raus',
ja: '密着や離れる',
},
},
{ id: 'UCU Nael Quote 7',
regex: /Fleeting light, score the earth with a fiery kiss/,
regexFr: /Supernova, brille de tout ton feu et irradie la terre rougie/,
regexDe: /Neues Gestirn! Glühe herab und umlodere meinen Pfad/,
regexJa: /紅月下の赤熱せし地を照らせ/,
infoText: {
en: 'Away from Tank => Stack',
fr: 'S\'éloigner du tank => Se rassembler',
de: 'Weg vom Tank => Stack',
ja: 'タンクから離れる => 頭割り',
},
durationSeconds: 6,
delaySeconds: 4,
tts: {
en: 'away from tank then stack',
fr: 'S\'éloigner du tank, puis se rassembler',
de: 'weck vom tenk dann stek',
ja: 'タンクから離れるや頭割り',
},
},
{ id: 'UCU Nael Quote 8',
regex: /Fleeting light, outshine the stars for the moon/,
regexFr: /Supernova, brille de tout ton feu et glorifie la lune rouge/,
regexDe: /Neues Gestirn! Überstrahle jede Sternschnuppe/,
regexJa: /星降りの夜に、紅月を称えよ/,
infoText: {
en: 'Spread => Away from Tank',
fr: 'Se dispercer => S\'éloigner du Tank',
de: 'Verteilen => Weg vom Tank',
ja: '散開 => タンクから離れる',
},
durationSeconds: 6,
delaySeconds: 4,
tts: {
en: 'spread then away from tank',
fr: 'Se dispercer, puis s\'éloigner du tank',
de: 'verteilen dann weck vom tenk',
ja: '散開やタンクから離れる',
},
},
{ id: 'UCU Nael Quote 9',
regex: /From on high I descend, a hail of stars to bring/,
regexFr: /Du haut des cieux, j'appelle une pluie d'étoiles/,
regexDe: /Ich steige herab zu Ehre des roten Mondes! Einer Sternschnuppe gleich/,
regexJa: /星降りの夜を招かん/,
durationSeconds: 9,
infoText: {
en: 'Spread => In',
fr: 'Se dispercer => Dedans',
de: 'Verteilen => Rein',
ja: '散開 => 密着',
},
tts: {
en: 'spread then in',
fr: 'Se dispercer, puis dedans',
de: 'verteilen dann rein',
ja: '散開や密着',
},
},
{ id: 'UCU Nael Quote 10',
regex: /From red moon I descend, a hail of stars to bring/,
regexFr: /Depuis la lune, j'invoque une pluie d'étoiles/,
regexDe: /O roter Mond, sieh mich herabsteigen! Einer Sternschnuppe gleich/,
regexJa: /星降りの夜を招かん/,
durationSeconds: 9,
infoText: {
en: 'In => Spread',
fr: 'Dedans => Se dispercer',
de: 'Rein => Verteilen',
ja: '密着 => 散開',
},
tts: {
en: 'in then spread',
fr: 'Dedans, puis se dispercer',
de: 'rein dann verteilen',
ja: '密着や散開',
},
},
{ id: 'UCU Nael Quote 11',
regex: /From red moon I draw steel, in my descent to bare/,
regexFr: /De la lune je m'arme d'acier et descends/,
regexDe: /O roter Mond, als Künder deiner Herrschaft stieg ich herab/,
regexJa: /舞い降りん/,
durationSeconds: 9,
infoText: {
en: 'In => Out => Spread',
fr: 'Dedans => Dehors => Se dispercer',
de: 'Rein => Raus => Verteilen',
ja: '密着 => 離れる => 散開',
},
tts: {
en: 'in then out then spread',
fr: 'Dedans, puis dehors, puis se dispercer',
de: 'rein dann raus dann verteilen',
ja: '密着や離れるや散開',
},
},
{ id: 'UCU Nael Quote 12',
regex: /From red moon I descend, upon burning earth to tread/,
regexFr: /De la lune, je descends et marche sur la terre ardente/,
regexDe: /O roter Mond! Ich stieg herab, um deine Herrschaft zu bringen/,
regexJa: /赤熱せし地を歩まん/,
durationSeconds: 9,
infoText: {
en: 'In => Spread => Stack',
fr: 'Dedans => Se dispercer => Se rassembler',
de: 'Rein => Verteilen => Stack',
ja: '密着 => 散開 => 頭割り',
},
tts: {
en: 'in then spread then stack',
fr: 'Dedans, puis se dispercer, puis se rassembler',
de: 'rein dann raus dann stek',
ja: '密着や散開や頭割り',
},
},
{ id: 'UCU Nael Quote 13',
regex: /Gleaming steel, take fire and descend/,
regexFr: /Ô noble acier! Rougis ardemment et deviens ma lame transperçante/,
regexDe: /Zur Herrschaft führt mein umloderter Pfad! Auf diesen steige ich herab/,
regexJa: /舞い降りし我が刃となれ/,
durationSeconds: 9,
infoText: {
en: 'Out => Stack => Spread',
fr: 'Dehors => Se rassembler => Se dispercer',
de: 'Raus => Stack => Verteilen',
ja: '離れる => 頭割り => 散開',
},
tts: {
en: 'out then stack then spread',
fr: 'Dehors, puis se rassembler, puis se dispercer',
de: 'rein dann raus dann verteilen',
ja: '離れるや頭割りや散開',
},
},
{ id: 'UCU Nael Quote 14',
regex: /Gleaming steel, plunge and take fiery edge/,
regexFr: /Fier acier! Sois ma lame plongeante et deviens incandescent/,
regexDe: /Zur Herrschaft steige ich herab, auf umlodertem Pfadt/,
regexJa: /我の刃となり赤熱せよ/,
durationSeconds: 9,
infoText: {
en: 'Out => Spread => Stack',
fr: 'Dehors => Se dispercer => Se rassembler',
de: 'Raus => Verteilen => Stack',
ja: '離れる => 散開 => 頭割り',
},
tts: {
en: 'out then spread then stack',
fr: 'Dehors, puis se dispercer, puis se rassembler',
de: 'Raus dann rein dann stek',
ja: '離れるや散開や頭割り',
},
},
{ id: 'UCU Nael Thunderstruck',
// Note: The 0A event happens before 'gains the effect' and 'starts
// casting on' only includes one person.
regex: /:Thunderwing:26C7:.*?:........:(\y{Name}):/,
regexDe: /:Donnerschwinge:26C7:.*?:........:(\y{Name}):/,
regexFr: /:Aile-de-foudre:26C7:.*?:........:(\y{Name}):/,
regexJa: /:サンダーウィング:26C7:.*?:........:(\y{Name}):/,
condition: function(data, matches) {
return data.me == matches[1];
},
alarmText: {
en: 'Thunder on YOU',
fr: 'Foudre sur VOUS',
de: 'Blitz auf DIR',
ja: '自分にサンダー',
},
tts: {
en: 'thunder',
fr: 'Foudre',
de: 'blitz',
ja: 'サンダー',
},
},
{ id: 'UCU Nael Your Doom',
regex: /:(\y{Name}) gains the effect of Doom from .*? for (\y{Float}) Seconds/,
regexDe: /:(\y{Name}) gains the effect of Verhängnis from .*? for (\y{Float}) Seconds/,
regexFr: /:(\y{Name}) gains the effect of Glas from .*? for (\y{Float}) Seconds/,
regexJa: /:(\y{Name}) gains the effect of 死の宣告 from .*? for (\y{Float}) Seconds/,
condition: function(data, matches) {
return data.me == matches[1];
},
durationSeconds: function(data, matches) {
if (parseFloat(matches[2]) <= 6)
return 3;
if (parseFloat(matches[2]) <= 10)
return 6;
return 9;
},
alarmText: function(data, matches) {
if (parseFloat(matches[2]) <= 6) {
return {
en: 'Doom #1 on YOU',
fr: 'Glas #1 sur VOUS',
de: 'Verhängnis #1 auf DIR',
ja: '自分に一番目死の宣告',
};
}
if (parseFloat(matches[2]) <= 10) {
return {
en: 'Doom #2 on YOU',
fr: 'Glas #2 sur VOUS',
de: 'Verhängnis #2 auf DIR',
ja: '自分に二番目死の宣告',
};
}
return {
en: 'Doom #3 on YOU',
fr: 'Glas #3 sur VOUS',
de: 'Verhängnis #3 auf DIR',
ja: '自分に三番目死の宣告',
};
},
tts: function(data, matches) {
if (parseFloat(matches[2]) <= 6)
return '1';
if (parseFloat(matches[2]) <= 10)
return '2';
return '3';
},
},
{
// Doom tracking init.
regex: /:(\y{Name}) gains the effect of Doom from .*? for (\y{Float}) Seconds/,
regexDe: /:(\y{Name}) gains the effect of Verhängnis from .*? for (\y{Float}) Seconds/,
regexFr: /:(\y{Name}) gains the effect of Glas from .*? for (\y{Float}) Seconds/,
regexJa: /:(\y{Name}) gains the effect of 死の宣告 from .*? for (\y{Float}) Seconds/,
run: function(data, matches) {
data.dooms = data.dooms || [null, null, null];
let order = null;
if (parseFloat(matches[2]) < 9)
order = 0;
else if (parseFloat(matches[2]) < 14)
order = 1;
else
order = 2;
data.dooms[order] = matches[1];
},
},
{
// Doom tracking cleanup.
regex: /gains the effect of Doom/,
regexDe: /gains the effect of Verhängnis/,
regexFr: /gains the effect of Glas/,
regexJa: /gains the effect of 死の宣告/,
delaySeconds: 20,
run: function(data) {
delete data.dooms;
delete data.doomCount;
},
},
{
id: 'UCU Nael Cleanse Callout',
// FIXME: need translations
regex: /:Fang of Light:26CA:/,
regexFr: /:Croc de lumière:26CA:/,
regexDe: /:Lichtklaue:26CA:/,
regexJa: /:ライトファング:26CA:/,
infoText: function(data) {
data.doomCount = data.doomCount || 0;
let name;
if (data.dooms)
name = data.dooms[data.doomCount];
data.doomCount++;
if (name) {
return {
en: 'Cleanse #' + data.doomCount + ': ' + data.ShortName(name),
fr: 'Purifié #' + data.doomCount + ': ' + data.ShortName(name),
de: 'Medica #' + data.doomCount + ': ' + data.ShortName(name),
ja: '解除に番目' + data.doomCount + ': ' + data.ShortName(name),
};
}
},
},
{ id: 'UCU Nael Fireball 1',
regex: /:Ragnarok:26B8:/,
regexDe: /:Ragnarök:26B8:/,
regexFr: /:Ragnarok:26B8:/,
regexJa: /:ラグナロク:26B8:/,
delaySeconds: 35,
suppressSeconds: 99999,
infoText: {
en: 'Fire IN',
fr: 'Feu EN DEDANS',
de: 'Feuer INNEN',
ja: 'ファイアボールは密着',
},
tts: {
en: 'fire in',
fr: 'Feu en dedans',
de: 'Feuer innen',
ja: 'ファイアボール密着',
},
run: function(data) {
data.naelFireballCount = 1;
},
},
{ id: 'UCU Nael Fireball 2',
regex: /:Ragnarok:26B8:/,
regexDe: /:Ragnarök:26B8:/,
regexFr: /:Ragnarok:26B8:/,
regexJa: /:ラグナロク:26B8:/,
delaySeconds: 51,
suppressSeconds: 99999,
infoText: function(data) {
if (data.fireballs[1].indexOf(data.me) >= 0) {
return {
en: 'Fire OUT',
fr: 'Feu EN DEHORS',
de: 'Feuer AUßEN',
ja: 'ファイアボールは離れる',
};
}
},
alertText: function(data) {
// All players should be neutral by the time fire #2 happens.
// If you have ice at this point, it means you missed the first
// stack. Therefore, make sure you stack. It's possible you
// can survive until fire 3 happens, but it's not 100%.
// See: https://www.reddit.com/r/ffxiv/comments/78mdwd/bahamut_ultimate_mechanics_twin_and_nael_minutia/
if (data.fireballs[1].indexOf(data.me) == -1) {
return {
en: 'Fire OUT: Be in it',
fr: 'Feu EN DEHORS : Allez dessus',
de: 'Feuer AUßEN: Drin sein',
ja: 'ファイアボールは離れる: 自分に密着',
};
}
},
tts: function(data) {
if (data.fireballs[1].indexOf(data.me) == -1) {
return {
en: 'fire out; go with',
fr: 'Feu en dehors; y allez',
de: 'feuer außen; mitgehen',
ja: 'ファイアボール離れる: 自分に密着',
};
}
return {
en: 'fire out',
fr: 'Feu en dehors',
de: 'feuer außen',
ja: 'ファイアボール離れる',
};
},
run: function(data) {
data.naelFireballCount = 2;
},
},
{ id: 'UCU Nael Fireball 3',
regex: /:Ragnarok:26B8:/,
regexDe: /:Ragnarök:26B8:/,
regexFr: /:Ragnarok:26B8:/,
regexJa: /:ラグナロク:26B8:/,
delaySeconds: 77,
suppressSeconds: 99999,
infoText: function(data) {
let tookTwo = data.fireballs[1].filter(function(p) {
return data.fireballs[2].indexOf(p) >= 0;
});
if (tookTwo.indexOf(data.me) >= 0)
return;
let str = '';
if (tookTwo.length > 0) {
str += ' (' + tookTwo.map(function(n) {
return data.ShortName(n);
}).join(', ');
if (data.lang == 'fr')
str += ' éviter)';
else if (data.lang == 'de')
str += ' raus)';
else
str += ' out)';
}
return {
en: 'Fire IN' + str,
fr: 'Feu EN DEDANS' + str,
de: 'Feuer INNEN',
ja: 'ファイアボールは密着',
};
},
alertText: function(data) {
// If you were the person with fire tether #2, then you could
// have fire debuff here and need to not stack.
if (data.fireballs[1].indexOf(data.me) >= 0 && data.fireballs[2].indexOf(data.me) >= 0) {
return {
en: 'Fire IN: AVOID!',
fr: 'Feu EN DEDANS : L\'ÉVITER !',
de: 'Feuer INNEN: AUSWEICHEN!',
ja: 'ファイアボールは密着: 自分に離れる',
};
}
},
tts: function(data) {
if (data.fireballs[1].indexOf(data.me) >= 0 && data.fireballs[2].indexOf(data.me) >= 0) {
return {
en: 'avoid fire in',
fr: 'Éviter le feu en dedans',
de: 'feuer innen ausweichen',
ja: 'ファイアボール密着: 自分に離れる',
};
}
return {
en: 'fire in',
fr: 'Feu en dedans',
de: 'feuer innen',
ja: 'ファイアボール密着',
};
},
run: function(data) {
data.naelFireballCount = 3;
},
},
{ id: 'UCU Nael Fireball 4',
regex: /:Ragnarok:26B8:/,
regexDe: /:Ragnarök:26B8:/,
regexFr: /:Ragnarok:26B8:/,
regexJa: /:ラグナロク:26B8:/,
delaySeconds: 98,
suppressSeconds: 99999,
preRun: function(data) {
let tookTwo = data.fireballs[1].filter(function(p) {
return data.fireballs[2].indexOf(p) >= 0;
});
let tookThree = tookTwo.filter(function(p) {
return data.fireballs[3].indexOf(p) >= 0;
});
data.tookThreeFireballs = tookThree.indexOf(data.me) >= 0;
},
infoText: function(data) {
if (!data.tookThreeFireballs) {
return {
en: 'Fire IN',
fr: 'Feu EN DEDANS',
de: 'Feuer INNEN',
ja: 'ファイアボール密着',
};
}
},
alertText: function(data) {
// It's possible that you can take 1, 2, and 3 even if nobody dies with
// careful ice debuff luck. However, this means you probably shouldn't
// take 4.
if (data.tookThreeFireballs) {
return {
en: 'Fire IN: AVOID!',
fr: 'Feu EN DEDANS : L\'ÉVITER !',
de: 'Feuer INNEN: AUSWEICHEN!',
ja: 'ファイアボールは密着: 自分に離れる',
};
}
},
tts: function(data) {
return {
en: 'fire in',
fr: 'Feu en dedans',
de: 'feuer innen',
ja: 'ファイアボール密着',
};
},
run: function(data) {
data.naelFireballCount = 4;
},
},
{
// FIXME: need Tail of Darkness/Fang of Light translations
regex: /:(Iceclaw:26C6|Thunderwing:26C7|Fang of Light:26CA|Tail of Darkness:26C9|Firehorn:26C5):.*:(\y{Float}):(\y{Float}):\y{Float}:$/,
regexFr: /:(Griffe-de-glace:26C6|Aile-de-foudre:26C7|Croc de lumière:26CA|Queue de ténèbres:26C9|Corne-de-feu:26C5):.*:(\y{Float}):(\y{Float}):\y{Float}:$/,
regexDe: /:(Eisklaue:26C6|Donnerschwinge:26C7|Lichtklaue:26CA|Dunkelschweif:26C9|Feuerhorn:26C5):.*:(\y{Float}):(\y{Float}):\y{Float}:$/,
regexJa: /:(アイスクロウ:26C6|サンダーウィング:26C7|ライトファング:26CA|ダークテイル:26C9|ファイアホーン:26C5):.*:(\y{Float}):(\y{Float}):\y{Float}:$/,
condition: function(data, matches) {
return !data.seenDragon || !(matches[1] in data.seenDragon);
},
run: function(data, matches) {
// seenDragon[dragon name] => boolean
data.seenDragon = data.seenDragon || [];
data.seenDragon[matches[1]] = true;
let x = parseFloat(matches[2]);
let y = parseFloat(matches[3]);
// Positions are the 8 cardinals + numerical slop on a radius=24 circle.
// N = (0, -24), E = (24, 0), S = (0, 24), W = (-24, 0)
// Map N = 0, NE = 1, ..., NW = 7
let dir = Math.round(4 - 4 * Math.atan2(x, y) / Math.PI) % 8;
// naelDragons[direction 0-7 (N-NW)] => boolean
data.naelDragons = data.naelDragons || [0, 0, 0, 0, 0, 0, 0, 0];
data.naelDragons[dir] = 1;
if (Object.keys(data.seenDragon).length != 5)
return;
let output = data.findDragonMarks(data.naelDragons);
let dir_names;
if (data.lang == 'fr')
dir_names = ['N', 'NE', 'E', 'SE', 'S', 'SO', 'O', 'NO'];
else if (data.lang == 'de')
dir_names = ['N', 'NO', 'O', 'SO', 'S', 'SW', 'W', 'NW'];
else
dir_names = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'];
data.naelMarks = output.marks.map(function(i) {
return dir_names[i];
});
data.wideThirdDive = output.wideThirdDive;
data.unsafeThirdMark = output.unsafeThirdMark;
delete data.naelDragons;
// In case you forget, print marks in the log.
// TODO: Maybe only if Options.Debug?
console.log(data.naelMarks.join(', ') + (data.wideThirdDive ? ' (WIDE)' : ''));
},
},
{ id: 'UCU Nael Dragon Placement',
regex: /:Iceclaw:26C6/,
regexDe: /:Eisklaue:26C6/,
regexFr: /:Griffe-de-glace:26C6/,
regexJa: /:アイスクロウ:26C6/,
condition: function(data) {
return data.naelMarks && !data.calledNaelDragons;
},
durationSeconds: 12,
infoText: function(data) {
data.calledNaelDragons = true;
return {
en: 'Marks: ' + data.naelMarks.join(', ') + (data.wideThirdDive ? ' (WIDE)' : ''),
fr: 'Marque : ' + data.naelMarks.join(', ') + (data.wideThirdDive ? ' (LARGE)' : ''),
de: 'Markierungen : ' + data.naelMarks.join(', ') + (data.wideThirdDive ? ' (GROß)' : ''),
ja: 'マーカー: ' + data.naelMarks.join(', ') + (data.wideThirdDive ? ' (広)' : ''),
};
},
},
{ id: 'UCU Nael Dragon Dive Marker Me',
regex: /1B:........:(\y{Name}):....:....:0014:0000:0000:0000:/,
condition: function(data) {
return !data.trio;
},
alarmText: function(data, matches) {
data.naelDiveMarkerCount = data.naelDiveMarkerCount || 0;
if (matches[1] != data.me)
return;
let marker = ['A', 'B', 'C'][data.naelDiveMarkerCount];
let dir = data.naelMarks[data.naelDiveMarkerCount];
return {
en: 'Go To ' + marker + ' (in ' + dir + ')',
fr: 'Aller en ' + marker + ' (au ' + dir + ')',
de: 'Gehe zu ' + marker + ' (im ' + dir + ')',
ja: marker + 'に行く' + ' (あと ' + dir + '秒)',
};
},
tts: function(data, matches) {
data.naelDiveMarkerCount = data.naelDiveMarkerCount || 0;
if (matches[1] != data.me)
return;
return {
en: 'Go To ' + ['A', 'B', 'C'][data.naelDiveMarkerCount],
fr: 'Aller en ' + ['A', 'B', 'C'][data.naelDiveMarkerCount],
de: 'Gehe zu ' + ['A', 'B', 'C'][data.naelDiveMarkerCount],
ja: ['A', 'B', 'C'][data.naelDiveMarkerCount] + '行くよ',
};
},
},
{ id: 'UCU Nael Dragon Dive Marker Others',
regex: /1B:........:(\y{Name}):....:....:0014:0000:0000:0000:/,
condition: function(data) {
return !data.trio;
},
infoText: function(data, matches) {
data.naelDiveMarkerCount = data.naelDiveMarkerCount || 0;
if (matches[1] == data.me)
return;
let num = data.naelDiveMarkerCount + 1;
return {
en: 'Dive #' + num + ': ' + data.ShortName(matches[1]),
fr: 'Bombardement #' + num + ' : ' + data.ShortName(matches[1]),
de: 'Sturz #' + num + ' : ' + data.ShortName(matches[1]),
ja: 'ダイブ' + num + '番目:' + data.ShortName(matches[1]),
};
},
},
{ id: 'UCU Nael Dragon Dive Marker Counter',
regex: /1B:........:(\y{Name}):....:....:0014:0000:0000:0000:/,
condition: function(data) {
return !data.trio;
},
run: function(data) {
data.naelDiveMarkerCount++;
},
},
{ // Octet marker tracking (77=nael, 14=dragon, 29=baha, 2A=twin)
regex: /1B:........:(\y{Name}):....:....:00(?:77|14|29):0000:0000:0000:/,
condition: function(data) {
return data.trio == 'octet';
},
run: function(data, matches) {
data.octetMarker = data.octetMarker || [];
data.octetMarker.push(matches[1]);
if (data.octetMarker.length != 7)
return;
let partyList = Object.keys(data.partyList);
if (partyList.length != 8) {
console.error('Octet error: bad party list size: ' + JSON.stringify(partyList));
return;
}
let uniq_dict = {};
for (let i = 0; i < data.octetMarker.length; ++i) {
uniq_dict[data.octetMarker[i]] = true;
if (partyList.indexOf(data.octetMarker[i]) < 0) {
console.error('Octet error: could not find ' + data.octetMarker[i] + ' in ' + JSON.stringify(partyList));
return;
}