forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy patho12s.js
898 lines (883 loc) · 35.4 KB
/
o12s.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
'use strict';
// O12S - Alphascape 4.0 Savage
[{
zoneRegex: /^Alphascape V4.0 \(Savage\)$/,
timelineFile: 'o12s.txt',
triggers: [
{
// Track Omega MF vs Final Omega phase.
regex: / 14:3357:Omega starts using (?:Ion Efflux|Unknown_3357)/,
regexDe: / 14:3357:Omega starts using (?:Ionenstrom|Unknown_3357)/,
regexFr: / 14:3357:Oméga starts using (?:Fuite D\'ions|Unknown_3357)/,
regexJa: / 14:3357:オメガ starts using (?:イオンエフラクス|Unknown_3357)/,
run: function(data) {
data.isFinalOmega = true;
data.dpsShortStack = true;
data.helloDebuffs = {};
data.archiveMarkers = {};
data.armValue = 0;
data.numArms = 0;
},
},
{
id: 'O12S Beyond Defense',
regex: / 1[56]:\y{ObjectId}:Omega-M:332C:[^:]*:\y{ObjectId}:(\y{Name}):/,
regexDe: / 1[56]:\y{ObjectId}:Omega-M:332C:[^:]*:\y{ObjectId}:(\y{Name}):/,
regexFr: / 1[56]:\y{ObjectId}:Oméga-M:332C:[^:]*:\y{ObjectId}:(\y{Name}):/,
regexJa: / 1[56]:\y{ObjectId}:オメガM:332C:[^:]*:\y{ObjectId}:(\y{Name}):/,
condition: function(data, matches) {
return data.me == matches[1];
},
alarmText: {
en: 'Don\'t Stack!',
de: 'Nicht stacken!',
fr: 'Ne vous packez pas !',
ja: 'スタックするな!',
},
},
{
id: 'O12S Local Resonance',
regex: / 1A:Omega gains the effect of (?:Local Resonance|Unknown_67E) from/,
regexDe: / 1A:Omega gains the effect of (?:Resonanzprogramm: Nah|Unknown_67E) from/,
regexFr: / 1A:Oméga gains the effect of (?:Programme de résonance : proximité|Programme De Résonance : Proximité|Unknown_67E) from/,
regexJa: / 1A:オメガ gains the effect of (?:レゾナンスプログラム:ニアー|Unknown_67E) from/,
infoText: {
en: 'Keep Bosses Apart',
de: 'Bosse auseinander ziehen',
fr: 'Séparez les boss',
ja: 'ボス離して',
},
},
{
id: 'O12S Remote Resonance',
regex: / 1A:Omega gains the effect of (?:Remote Resonance|Unknown_67F) from/,
regexDe: / 1A:Omega gains the effect of (?:Resonanzprogramm: Fern|Unknown_67F) from/,
regexFr: / 1A:Oméga gains the effect of (?:Programme de résonance : distance|Programme De Résonance : Distance|Unknown_67F) from/,
regexJa: / 1A:オメガ gains the effect of (?:レゾナンスプログラム:ファー|Unknown_67F) from/,
alertText: {
en: 'Move Bosses Together',
de: 'Bosse zusammenziehen',
fr: 'Packez les boss',
ja: 'ボス重ねて',
},
},
{
id: 'O12S Solar Ray',
regex: / 14:(?:3350|3351):(?:Omega|Omega-M) starts using (?:Unknown_3350|Unknown_3351|Solar Ray) on (\y{Name})/,
regexDe: / 14:(?:3350|3351):(?:Omega|Omega-M) starts using (?:Unknown_3350|Unknown_3351|Sonnenstrahl) on (\y{Name})/,
regexFr: / 14:(?:3350|3351):(?:Oméga|Oméga-M) starts using (?:Unknown_3350|Unknown_3351|Rayon solaire|Rayon Solaire) on (\y{Name})/,
regexJa: / 14:(?:3350|3351):(?:オメガ|オメガM) starts using (?:Unknown_3350|Unknown_3351|ソーラレイ) on (\y{Name})/,
condition: function(data, matches) {
return data.me == matches[1] || data.role == 'healer';
},
suppressSeconds: 1,
alertText: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'Tank Buster on YOU',
de: 'Tankbuster auf DIR',
fr: 'Tankbuster sur VOUS',
};
}
if (data.role == 'healer') {
return {
en: 'Tank Busters',
de: 'Tankbuster',
fr: 'Tankbuster',
};
}
},
tts: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'buster',
de: 'basta',
fr: 'tankbuster',
};
}
},
},
{
id: 'O12S Optimized Blade Dance',
regex: / 14:(?:334B|334C):(?:Omega|Omega-M) starts using (?:Unknown_334B|Unknown_334C|Optimized Blade Dance) on (\y{Name})/,
regexDe: / 14:(?:334B|334C):(?:Omega|Omega-M) starts using (?:Unknown_334B|Unknown_334C|Omega-Schwertertanz) on (\y{Name})/,
regexFr: / 14:(?:334B|334C):(?:Oméga|Oméga-M) starts using (?:Unknown_334B|Unknown_334C|Danse de la lame Oméga|Danse De La Lame Oméga) on (\y{Name})/,
regexJa: / 14:(?:334B|334C):(?:オメガ|オメガM) starts using (?:Unknown_334B|Unknown_334C|ブレードダンス・オメガ) on (\y{Name})/,
condition: function(data, matches) {
return data.me == matches[1] || data.role == 'healer';
},
suppressSeconds: 1,
alertText: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'Tank Buster on YOU',
de: 'Tankbuster auf DIR',
fr: 'Tankbuster sur VOUS',
};
}
if (data.role == 'healer') {
return {
en: 'Tank Busters',
de: 'Tankbuster',
fr: 'Tankbuster',
};
}
},
tts: function(data, matches) {
if (matches[1] == data.me) {
return {
en: 'buster',
de: 'basta',
fr: 'tankbuster',
};
}
},
},
{
id: 'O12S Electric Slide Marker',
regex: /1B:........:(\y{Name}):....:....:(009[12345678]):0000:0000:0000:/,
condition: function(data, matches) {
return data.me == matches[1];
},
alertText: function(data, matches) {
let num = parseInt(matches[2]);
let isTriangle = num >= 95;
num -= 90;
if (isTriangle)
num -= 4;
let squareName = {
en: 'Square',
de: 'Viereck',
fr: 'Carré',
ja: '四角',
}[data.lang];
let triangleName = {
en: 'Triangle',
de: 'Dreieck',
fr: 'Triangle',
ja: '三角',
}[data.lang];
return '#' + num + ' ' + (isTriangle ? triangleName : squareName);
},
},
{
id: 'O12S MF Stack Marker',
regex: /1B:........:\y{Name}:....:....:003E:0000:0000:0000:/,
condition: function(data) {
return !data.isFinalOmega;
},
suppressSeconds: 1,
infoText: {
en: 'Stack',
de: 'Stacken',
fr: 'Packez-vous',
ja: 'スタック',
},
},
{
id: 'O12S Optimized Meteor',
regex: /1B:........:(\y{Name}):....:....:0057:0000:0000:0000:/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Meteor on YOU',
de: 'Meteor auf DIR',
fr: 'Météore sur VOUS',
ja: 'メテオ on YOU',
},
},
{
id: 'O12S Packet Filter F',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_67D|Packet Filter F) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_67D|Sicherungssystem F) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_67D|Programme protecteur F|Programme Protecteur F) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_67D|ガードプログラムF) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Attack Omega-M',
de: 'Omega-M angreifen',
fr: 'Attaquez Oméga-M',
ja: 'Mを攻撃',
},
},
{
id: 'O12S Packet Filter M',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_67C|Packet Filter M) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_67C|Sicherungssystem M) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_67C|Programme protecteur M|Programme Protecteur M) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_67C|ガードプログラムM) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Attack Omega-F',
de: 'Omega-W angreifen',
fr: 'Attaquez Oméga-F',
ja: 'Fを攻撃',
},
},
{
id: 'O12S Diffuse Wave Cannon Sides',
regex: / 14:3367:Omega starts using (?:Diffuse Wave Cannon|Unknown_3367)/,
regexDe: / 14:3367:Omega starts using (?:Streuende Wellenkanone|Unknown_3367)/,
regexFr: / 14:3367:Oméga starts using (?:Canon plasma diffuseur|Canon Plasma Diffuseur|Unknown_3367)/,
regexJa: / 14:3367:オメガ starts using (?:拡散波動砲|Unknown_3367)/,
infoText: {
en: 'Sides',
de: 'Seiten',
fr: 'Cotés',
ja: '横',
},
},
{
id: 'O12S Diffuse Wave Cannon Front/Back',
regex: / 14:3368:Omega starts using (?:Diffuse Wave Cannon|Unknown_3368)/,
regexDe: / 14:3368:Omega starts using (?:Streuende Wellenkanone|Unknown_3368)/,
regexFr: / 14:3368:Oméga starts using (?:Canon plasma diffuseur|Canon Plasma Diffuseur|Unknown_3368)/,
regexJa: / 14:3368:オメガ starts using (?:拡散波動砲|Unknown_3368)/,
infoText: {
en: 'Front or Back',
de: 'Vorn oder Hinten',
fr: 'Devant ou derrière',
ja: '縦',
},
},
{
id: 'O12S Oversampled Wave Cannon Right',
regex: / 14:3364:Omega starts using (?:Oversampled Wave Cannon|Unknown_3364)/,
regexDe: / 14:3364:Omega starts using (?:Fokussierte Wellenkanone|Unknown_3364)/,
regexFr: / 14:3364:Oméga starts using (?:Canon plasma chercheur|Canon Plasma Chercheur|Unknown_3364)/,
regexJa: / 14:3364:オメガ starts using (?:検知式波動砲|Unknown_3364)/,
infoText: function(data) {
if (data.role == 'tank') {
return {
en: 'Monitors Left',
de: 'Monitore Links',
fr: 'Moniteur Gauche',
};
}
return {
en: 'Dodge Left',
de: 'Links ausweichen',
fr: 'Evitez à gauche',
};
},
},
{
id: 'O12S Oversampled Wave Cannon Left',
regex: / 14:3365:Omega starts using (?:Oversampled Wave Cannon|Unknown_3365)/,
regexDe: / 14:3365:Omega starts using (?:Fokussierte Wellenkanone|Unknown_3365)/,
regexFr: / 14:3365:Oméga starts using (?:Canon plasma chercheur|Canon Plasma Chercheur|Unknown_3365)/,
regexJa: / 14:3365:オメガ starts using (?:検知式波動砲|Unknown_3365)/,
infoText: function(data) {
if (data.role == 'tank') {
return {
en: 'Monitors Right',
de: 'Monitore Rechts',
fr: 'Moniteur Droite',
};
}
return {
en: 'Dodge Right',
de: 'Rechts ausweichen',
fr: 'Evitez à droite',
};
},
},
{
id: 'O12S Target Analysis Target',
regex: /1B:........:(\y{Name}):....:....:000E:0000:0000:0000:/,
alarmText: function(data, matches) {
if (data.me == matches[1]) {
return {
en: 'Vuln on YOU',
de: 'Verwundbarkeit auf DIR',
fr: 'Vulnérabilité sur VOUS',
};
}
},
infoText: function(data, matches) {
if (data.me == matches[1] || data.role != 'tank')
return;
return {
en: 'Vuln on ' + data.ShortName(matches[1]),
de: 'Verwundbarkeit auf ' + data.ShortName(matches[1]),
fr: 'Vulnérabilité sur ' + data.ShortName(matches[1]),
};
},
},
{
id: 'O12S Local Tethers',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_688|Local Regression) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_688|Regression: Nah) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_688|Bogue intentionnel : proximité|Bogue Intentionnel : Proximité) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_688|エンバグ:ニアー) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Close Tethers',
de: 'Nahe Verbindungen',
fr: 'Liens proches',
ja: 'ニアー',
},
},
{
id: 'O12S Far Tethers',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_689|Remote Regression) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_689|Regression: Fern) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_689|Bogue intentionnel : distance|Bogue Intentionnel : Distance) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_689|エンバグ:ファー) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Far Tethers',
de: 'Entfernte Verbindungen',
fr: 'Liens éloignés',
ja: 'ファー',
},
},
{
id: 'O12S Defamation',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_681|Critical Overflow Bug) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_681|Kritischer Bug: Überlauf) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_681|Bogue critique : boucle|Bogue Critique : Boucle) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_681|クリティカルバグ:サークル) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
alarmText: {
en: 'Defamation on YOU',
de: 'Urteil auf DIR',
fr: '#Médisance sur VOUS',
ja: 'サークルついた',
},
},
{
id: 'O12S Latent Defect',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_686|Latent Defect) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_686|Latenter Defekt) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_686|Bogue latent|Bogue Latent) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_686|レイテントバグ) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
alertText: {
en: 'Blue Marker',
de: 'Blauer Marker',
fr: 'Marqueur bleu',
ja: 'レイテントついた',
},
},
{
id: 'O12S Rot',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_682|Critical Underflow Bug) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_682|Kritischer Bug: Unterlauf) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_682|Bogue critique : dégradation|Bogue Critique : Dégradation) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_682|クリティカルバグ:デグレード) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Rot',
de: 'Fäulnis',
fr: 'Pourriture',
ja: 'デグレードついた',
},
},
{
id: 'O12S Hello World Stack',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_680|Critical Synchronization Bug) from (?:.*) for (.*) Seconds/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_680|Kritischer Bug: Synchronisierung) from (?:.*) for (.*) Seconds/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_680|Bogue critique : partage|Bogue Critique : Partage) from (?:.*) for (.*) Seconds/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_680|クリティカルバグ:シェア) from (?:.*) for (.*) Seconds/,
delaySeconds: function(data, matches) {
return matches[1] == data.me ? 0 : 1;
},
alertText: function(data, matches) {
let t = parseFloat(matches[2]);
if (data.me != matches[1])
return;
if (!(t > 0))
return;
if (t <= 8) {
return {
en: 'Short Stack on YOU',
de: 'Kurzer Stack auf YOU',
fr: 'Marque courte sur VOUS',
};
}
return {
en: 'Long Stack on YOU',
de: 'Langer Stack auf YOU',
fr: 'Marque longue sur VOUS',
};
},
infoText: function(data, matches) {
let t = parseFloat(matches[2]);
if (data.me == matches[1])
return;
if (!data.dpsShortStack)
return;
if (!(t > 0))
return;
if (t <= 8) {
data.dpsShortStack = false;
return {
en: 'Short Stack on ' + data.ShortName(matches[1]),
de: 'Kurzer Stack auf ' + data.ShortName(matches[1]),
fr: 'Marque courte sur ' + data.ShortName(matches[1]),
};
}
return;
},
},
{
id: 'O12S Hello World No Marker',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_681|Critical Overflow Bug|Unknown_686|Latent Defect|Unknown_680|Critical Synchronization Bug) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_681|Kritischer Bug: Überlauf|Unknown_686|Latenter Bug|Unknown_680|Kritischer Bug: Synchronisierung) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_681|Bogue critique : boucle|Bogue Critique : Boucle|Unknown_686|Bogue latent|Bogue Latent|Unknown_680|Bogue critique : partage|Bogue Critique : Partage) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_681|クリティカルバグ:サークル|Unknown_686|レイテントバグ|Unknown_680|クリティカルバグ:シェア) from/,
preRun: function(data, matches) {
data.helloDebuffs[matches[1]] = true;
},
alertText: function(data) {
// 1 Defamation (T), 3 Blue Markers (T/H/D), 2 Stack Markers (D/D) = 6
// Ignore rot here to be consistent.
if (Object.keys(data.helloDebuffs).length != 6)
return;
if (data.me in data.helloDebuffs)
return;
data.helloDebuffs[data.me] = true;
return {
en: 'No Marker',
de: 'Kein Marker',
fr: 'Aucun marqueur',
};
},
},
{
id: 'O12S Hello World Tower Complete',
regex: / 1A:(\y{Name}) gains the effect of (?:Unknown_687|Cascading Latent Defect) from/,
regexDe: / 1A:(\y{Name}) gains the effect of (?:Unknown_687|Latenter Bug: Unterlauf) from/,
regexFr: / 1A:(\y{Name}) gains the effect of (?:Unknown_687|Bogue latent : dégradation|Bogue Latent : Dégradation) from/,
regexJa: / 1A:(\y{Name}) gains the effect of (?:Unknown_687|レイテントバグ:デグレード) from/,
condition: function(data, matches) {
return data.me == matches[1];
},
infoText: {
en: 'Move out for Defamation',
de: 'Rausgehen für Urteil',
fr: 'Ecartez-vous pour #médisance',
},
},
{
// Archive All Marker Tracking
regex: /1B:........:(\y{Name}):....:....:(003E|0060):0000:0000:0000:/,
condition: function(data) {
return data.isFinalOmega;
},
run: function(data, matches) {
data.archiveMarkers[matches[1]] = matches[2];
},
},
{
id: 'O12S Archive All No Marker',
regex: /1B:........:(\y{Name}):....:....:(?:003E|0060):0000:0000:0000:/,
condition: function(data) {
// 4 fire markers, 1 stack marker.
return data.isFinalOmega && Object.keys(data.archiveMarkers).length == 5;
},
infoText: function(data, matches) {
if (data.me in data.archiveMarkers)
return;
for (let player in data.archiveMarkers) {
if (data.archiveMarkers[player] != '003E')
continue;
return {
en: 'Stack on ' + data.ShortName(player),
de: 'Stacken auf ' + data.ShortName(player),
fr: 'Packez-vous sur ' + data.ShortName(player),
};
}
},
},
{
id: 'O12S Archive All Stack Marker',
regex: /1B:........:(\y{Name}):....:....:003E:0000:0000:0000:/,
condition: function(data, matches) {
return data.isFinalOmega && matches[1] == data.me;
},
infoText: {
en: 'Stack on YOU',
de: 'Stacken auf DIR',
fr: 'Package sur VOUS',
},
},
{
id: 'O12S Archive All Spread Marker',
regex: /1B:........:(\y{Name}):....:....:0060:0000:0000:0000:/,
condition: function(data, matches) {
return data.isFinalOmega && matches[1] == data.me;
},
infoText: {
en: 'Spread',
de: 'Verteilen',
fr: 'Ecartez-vous',
},
},
{
id: 'O12S Archive All Blue Arrow',
regex: / 1B:........:Rear Power Unit:....:....:009D:0000:0000:0000:/,
alertText: {
en: 'Back Left',
de: 'Hinten Links',
fr: 'Arrière gauche',
},
},
{
id: 'O12S Archive All Red Arrow',
regex: / 1B:........:Rear Power Unit:....:....:009C:0000:0000:0000:/,
alertText: {
en: 'Back Right',
de: 'Hinten Rechts',
fr: 'Arrière droite',
},
},
{
// Archive Peripheral Tracking.
regex: / 1B:........:Right Arm Unit:....:....:009(C|D):0000:0000:0000:/,
regexDe: / 1B:........:Rechter Arm:....:....:009(C|D):0000:0000:0000:/,
regexFr: / 1B:........:Unité Bras Droit:....:....:009(C|D):0000:0000:0000:/,
regexJa: / 1B:........:ライトアームユニット:....:....:009(C|D):0000:0000:0000:/,
run: function(data, matches) {
// Create a 3 digit binary value, R = 0, B = 1.
// e.g. BBR = 110 = 6
data.armValue *= 2;
if (matches[1] == 'D')
data.armValue += 1;
data.numArms++;
},
},
{
id: 'O12S Archive Peripheral',
regex: / 1B:........:Right Arm Unit:....:....:009(?:C|D):0000:0000:0000:/,
regexDe: / 1B:........:Rechter Arm:....:....:009(?:C|D):0000:0000:0000:/,
regexFr: / 1B:........:Unité Bras Droit:....:....:009(?:C|D):0000:0000:0000:/,
regexJa: / 1B:........:ライトアームユニット:....:....:009(?:C|D):0000:0000:0000:/,
condition: function(data) {
return data.numArms == 3;
},
alertText: function(data) {
let v = parseInt(data.armValue);
if (!(v >= 0) || v > 7)
return;
return {
en: {
0b000: 'East',
0b001: 'Northeast',
0b010: undefined,
0b011: 'Northwest',
0b100: 'Southeast',
0b101: undefined,
0b110: 'Southwest',
0b111: 'West',
},
ja: {
0b000: '東',
0b001: '北東',
0b010: undefined,
0b011: '北西',
0b100: '南東',
0b101: undefined,
0b110: '南西',
0b111: '西',
},
}[data.lang][v];
},
},
],
timelineReplace: [
{
'locale': 'de',
'replaceSync': {
'Engage!': 'Start!',
'Omega': 'Omega',
'Omega-F': 'Omega-W',
'Omega-M': 'Omega-M',
'Optical Unit': 'Optikmodul',
'Left Arm Unit': 'Linker Arm',
'Right Arm Unit': 'Rechter Arm',
'Rear Power Unit': 'Hintere Antriebseinheit',
},
'replaceText': {
'--targetable--': '--anvisierbar--',
'--untargetable--': '--nich anvisierbar--',
'Advanced Optical Laser': 'Optischer Laser S',
'Advanced Suppression': 'Hilfsprogramm S',
'Beyond Defense': 'Schildkombo S',
'Beyond Strength': 'Schildkombo G',
'Cosmo Memory': 'Kosmospeicher',
'Discharger': 'Entlader',
'Efficient Bladework': 'Effiziente Klingenführung',
'Electric Slide': 'Elektrosturz',
'Enrage': 'Finalangriff',
'Firewall': 'Sicherungssystem',
'Fundamental Synergy': 'Synergieprogramm C',
'Laser Shower': 'Laserschauer',
'Operational Synergy': 'Synergieprogramm W',
'Optical Laser': 'Optischer Laser F',
'Optimized Blade Dance': 'Omega-Schwertertanz',
'Optimized Blizzard III': 'Omega-Eisga',
'Optimized Fire III': 'Omega-Feuga',
'Optimized Meteor': 'Omega-Meteor',
'Optimized Sagittarius Arrow': 'Omega-Choral der Pfeile',
'Pile Pitch': 'Neigungsstoß',
'Resonance': 'Resonanz',
'Solar Ray': 'Sonnenstrahl',
'Subject Simulation F': 'Transformation F',
'Subject Simulation M': 'Transformation M',
'Superliminal Motion': 'Klingenkombo F',
'Superliminal Steel': 'Klingenkombo B',
'Suppression': 'Hilfsprogramm F',
'Synthetic Blades': 'Synthetische Klinge',
'Synthetic Shield': 'Synthetischer Schild',
'Archive All': 'Alles archivieren',
'Archive Peripheral': 'Archiv-Peripherie',
'Cascading Latent Defect': 'Latenter Defekt: Zersetzung',
'Colossal Blow': 'Kolossaler Hieb',
'Critical Error': 'Schwerer Ausnahmefehler',
'Critical Overflow Bug': 'Kritischer Bug: Überlauf',
'Critical Synchronization Bug': 'Kritischer Bug: Synchronisierung',
'Critical Underflow Bug': 'Kritischer Bug: Unterlauf',
'Delta Attack': 'Delta-Attacke',
'Diffuse Wave Cannon': 'Streuende Wellenkanone',
'Electric Slide': 'Elektrosturz',
'Floodlight': 'Flutlicht',
'Hello, World': 'Hallo, Welt!',
'Hyper Pulse': 'Hyper-Impuls',
'Index and Archive Peripheral': 'Archiv-Peripherie X',
'Ion Efflux': 'Ionenstrom',
'Optimized Fire III': 'Omega-Feuga',
'Oversampled Wave Cannon': 'Fokussierte Wellenkanone',
'Patch': 'Regression',
'Program Omega': 'Programm Omega',
'Rear Lasers': 'Hintere Laser',
'Savage Wave Cannon': 'Grausame Wellenkanone',
'Spotlight': 'Scheinwerfer',
'Target Analysis': 'Wellenkanone',
'Wave Cannon': 'Wellenkanone',
},
'~effectNames': {
'Infinite Limit': 'Grenzüberschreitung',
'Local Resonance': 'Resonanzprogramm: Nah',
'Magic Vulnerability Up': 'Erhöhte Magie-Verwundbarkeit',
'Packet Filter F': 'Sicherungssystem F',
'Packet Filter M': 'Sicherungssystem M',
'Physical Vulnerability Up': 'Erhöhte Physische Verwundbarkeit',
'Prey': 'Markiert',
'Remote Resonance': 'Resonanzprogramm: Fern',
'Cascading Latent Defect': 'Latenter Bug: Unterlauf',
'Critical Overflow Bug': 'Kritischer Bug: Überlauf',
'Critical Synchronization Bug': 'Kritischer Bug: Synchronisierung',
'Critical Underflow Bug': 'Kritischer Bug: Unterlauf',
'Latent Defect': 'Latenter Bug',
'Local Regression': 'Regression: Nah',
'Magic Vulnerability Up': 'Erhöhte Magie-Verwundbarkeit',
'Overflow Debugger': 'Bug-Korrektur: Überlauf',
'Remote Regression': 'Regression: Fern',
'Synchronization Debugger': 'Bug-Korrektur: Synchronisierung',
'Underflow Debugger': 'Bug-Korrektur: Unterlauf',
},
},
{
'locale': 'fr',
'replaceSync': {
'Engage!': 'À l\'attaque',
'Omega': 'Oméga',
'Omega-F': 'Oméga-F',
'Omega-M': 'Oméga-M',
'Optical Unit': 'Unité Optique',
'Left Arm Unit': 'Unité Bras Gauche',
'Right Arm Unit': 'Unité Bras Droit',
// FIXME
'Rear Power Unit': 'Rear Power Unit',
},
'replaceText': {
'--Reset--': '--Réinitialisation--',
'--sync--': '--Synchronisation--',
'--targetable--': '--Ciblable--',
'--untargetable--': '--Impossible à cibler--',
'Advanced Optical Laser': 'Laser optique S',
'Advanced Suppression': 'Programme d\'assistance S',
'Beyond Defense': 'Combo bouclier S',
'Beyond Strength': 'Combo bouclier G',
'Cosmo Memory': 'Cosmomémoire',
'Discharger': 'Déchargeur',
'Efficient Bladework': 'Lame active',
'Electric Slide': 'Glissement Oméga',
'Enrage': 'Enrage',
'Firewall': 'Programme protecteur',
'Fundamental Synergy': 'Programme synergique C',
'Laser Shower': 'Pluie de lasers',
'Operational Synergy': 'Programme synergique W',
'Optical Laser': 'Laser optique F',
'Optimized Blade Dance': 'Danse de la lame Oméga',
'Optimized Blizzard III': 'Méga Glace Oméga',
'Optimized Fire III': 'Méga Feu Oméga',
'Optimized Meteor': 'Météore Oméga',
'Optimized Sagittarius Arrow': 'Flèche du sagittaire Oméga',
'Pile Pitch': 'Lancement de pieu',
'Resonance': 'Résonance',
'Solar Ray': 'Rayon solaire',
'Subject Simulation F': 'Transformation F',
'Subject Simulation M': 'Simulation de sujet M',
'Superliminal Motion': 'Combo lame F',
'Superliminal Steel': 'Combo lame B',
'Suppression': 'Programme d\'assistance F',
'Synthetic Blades': 'Lame optionnelle',
'Synthetic Shield': 'Bouclier optionnel',
'Archive All': 'Archivage intégral',
'Archive Peripheral': 'Périphérique d\'archivage',
'Cascading Latent Defect': 'Bogue latent : dégradation',
'Colossal Blow': 'Coup colossal',
'Critical Error': 'Erreur critique',
'Critical Overflow Bug': 'Bogue critique : boucle',
'Critical Synchronization Bug': 'Bogue critique : partage',
'Critical Underflow Bug': 'Bogue critique : dégradation',
'Delta Attack': 'Attaque Delta',
'Diffuse Wave Cannon': 'Canon plasma diffuseur',
'Electric Slide': 'Glissement Oméga',
'Floodlight': 'Projecteur',
'Hello, World': 'Bonjour, le monde',
'Hyper Pulse': 'Hyperpulsion',
'Index and Archive Peripheral': 'Périphérique d\'archivage X',
'Ion Efflux': 'Fuite d\'ions',
'Optimized Fire III': 'Méga Feu Oméga',
'Oversampled Wave Cannon': 'Canon plasma chercheur',
'Patch': 'Bogue intentionnel',
'Program Omega': 'Programme Oméga',
'Rear Lasers': 'Lasers arrière',
'Savage Wave Cannon': 'Canon plasma absolu',
'Spotlight': 'Phare',
'Target Analysis': 'Analyse de cible',
'Wave Cannon': 'Canon plasma',
},
'~effectNames': {
'Infinite Limit': 'Dépassement de limites',
'Local Resonance': 'Programme de résonance : proximité',
'Magic Vulnerability Up': 'Vulnérabilité Magique Augmentée',
'Packet Filter F': 'Programme protecteur F',
'Packet Filter M': 'Programme protecteur M',
'Physical Vulnerability Up': 'Vulnérabilité Physique Augmentée',
'Prey': 'Marquage',
'Remote Resonance': 'Programme de résonance : distance',
'Cascading Latent Defect': 'Bogue latent : dégradation',
'Critical Overflow Bug': 'Bogue critique : boucle',
'Critical Synchronization Bug': 'Bogue critique : partage',
'Critical Underflow Bug': 'Bogue critique : dégradation',
'Latent Defect': 'Bogue latent',
'Local Regression': 'Bogue intentionnel: proximité',
'Magic Vulnerability Up': 'Vulnérabilité Magique Augmentée',
'Overflow Debugger': 'Déboguage : boucle',
'Remote Regression': 'Bogue intentionnel : distance',
'Synchronization Debugger': 'Déboguage : partage',
'Underflow Debugger': 'Déboguage : dégradation',
},
},
{
'locale': 'ja',
'replaceSync': {
'Engage!': '戦闘開始!',
'Omega': 'オメガ',
'Omega-F': 'オメガF',
'Omega-M': 'オメガM',
'Optical Unit': 'オプチカルユニット',
'Left Arm Unit': 'レフトアームユニット',
'Right Arm Unit': 'ライトアームユニット',
// FIXME
'Rear Power Unit': 'Rear Power Unit',
},
'replaceText': {
'Advanced Optical Laser': 'オプチカルレーザーS',
'Advanced Suppression': '援護プログラムS',
'Beyond Defense': 'シールドコンボS',
'Beyond Strength': 'シールドコンボG',
'Cosmo Memory': 'コスモメモリー',
'Discharger': 'ディスチャージャー',
'Efficient Bladework': 'ソードアクション',
'Electric Slide': 'オメガスライド',
'Firewall': 'ガードプログラム',
'Fundamental Synergy': '連携プログラムC',
'Laser Shower': 'レーザーシャワー',
'Operational Synergy': '連携プログラムW',
'Optical Laser': 'オプチカルレーザーF',
'Optimized Blade Dance': 'ブレードダンス・オメガ',
'Optimized Blizzard III': 'ブリザガ・オメガ',
'Optimized Fire III': 'ファイラ・オメガ',
'Optimized Meteor': 'メテオ・オメガ',
'Optimized Sagittarius Arrow': 'サジタリウスアロー・オメガ',
'Pile Pitch': 'パイルピッチ',
'Resonance': 'レゾナンス',
'Solar Ray': 'ソーラレイ',
'Subject Simulation F': 'トランスフォームF',
'Subject Simulation M': 'トランスフォームM',
'Superliminal Motion': 'ブレードコンボF',
'Superliminal Steel': 'ブレードコンボB',
'Suppression': '援護プログラムF',
'Synthetic Blades': 'ブレードオプション',
'Synthetic Shield': 'シールドオプション',
'Archive All': 'アーカイブオール',
'Archive Peripheral': 'アーカイブアーム',
'Cascading Latent Defect': 'レイテンドバグ:デグレード',
'Colossal Blow': 'コロッサスブロー',
'Critical Error': 'クリティカルエラー',
'Critical Overflow Bug': 'クリティカルバグ:サークル',
'Critical Synchronization Bug': 'クリティカルバグ:シェア',
'Critical Underflow Bug': 'クリティカルバグ:デグレード',
'Delta Attack': 'デルタアタック',
'Diffuse Wave Cannon': '拡散波動砲',
'Electric Slide': 'オメガスライド',
'Floodlight': 'フラッドライト',
'Hello, World': 'ハロー・ワールド',
'Hyper Pulse': 'ハイパーパルス',
'Index and Archive Peripheral': 'アーカイブアームX',
'Ion Efflux': 'イオンエフラクス',
'Optimized Fire III': 'ファイラ・オメガ',
'Oversampled Wave Cannon': '検知式波動砲',
'Patch': 'エンバグ',
'Program Omega': 'プログラム・オメガ',
'Rear Lasers': 'リアレーザー',
'Savage Wave Cannon': '零式波動砲',
'Spotlight': 'スポットライト',
'Target Analysis': '標的識別',
'Wave Cannon': '波動砲',
},
'~effectNames': {
'Infinite Limit': '限界超越',
'Local Resonance': 'レゾナンスプログラム:ニアー',
'Magic Vulnerability Up': '被魔法ダメージ増加',
'Packet Filter F': 'ガードプログラムF',
'Packet Filter M': 'ガードプログラムM',
'Physical Vulnerability Up': '被物理ダメージ増加',
'Prey': 'マーキング',
'Remote Resonance': 'レゾナンスプログラム:ファー',
'Cascading Latent Defect': 'レイテントバグ:デグレード',
'Critical Overflow Bug': 'クリティカルバグ:サークル',
'Critical Synchronization Bug': 'クリティカルバグ:シェア',
'Critical Underflow Bug': 'クリティカルバグ:デグレード',
'Latent Defect': 'レイテントバグ',
'Local Regression': 'エンバグ:ニアー',
'Magic Vulnerability Up': '被魔法ダメージ増加',
'Overflow Debugger': 'バグフィックス:サークル',
'Remote Regression': 'エンバグ:ファー',
'Synchronization Debugger': 'バグフィックス:シェア',
'Underflow Debugger': 'バグフィックス:デグレード',
},
},
],
}];