forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 45
/
buff_map.ts
605 lines (589 loc) · 11.9 KB
/
buff_map.ts
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
// TODO: We could add BRD's songs (Minuet = 8A8, Ballad = 8A9, Paeon = 8AA),
// but effect re-application lines are continuously sent by ACT (as this is a cancellable buff).
// If we use `collectSeconds` for the full duration, the 'missed' message will be very delayed;
// but any shorter, we'll get repeated 'missed' messages for the same buff.
// We probably need to add support for something like a 'suppressSeconds' property.
export type MissableBuffType = 'heal' | 'damage' | 'mitigation';
export type MissableEffect = {
id: string;
type: MissableBuffType;
effectId: string | readonly string[];
collectSeconds: number;
ignoreSelf?: boolean;
};
export type MissableAbility = {
id: string;
type: MissableBuffType;
abilityId: string | readonly string[];
collectSeconds?: number;
ignoreSelf?: boolean;
};
export type MissableBuff = MissableAbility | MissableEffect;
// missedEffectBuffMap is for buffs that can be detected solely by `GainsEffect` lines,
// where there is no corresponding `Ability` line to indicate the player received the effect.
// These are predominantly bubble-type AoE buffs, like WHM's Asylum.
// If there is an ability line for each affected player, use `missedAbilityBuffMap` instead.
export const missedEffectBuffMap: readonly MissableEffect[] = [
// ******************** Tanks ******************** //
{
// PLD
id: 'Passage of Arms',
type: 'mitigation',
// Arms Up = 498 (others), Passage Of Arms = 497 (you). Use both in case everybody is missed.
effectId: ['497', '498'],
ignoreSelf: true,
collectSeconds: 15,
},
// ******************** Healers ******************** //
{
// WHM
id: 'Asylum',
type: 'heal',
// 777 = you (bubble), 778 = you + others (healing). Use both in case everybody is missed.
effectId: ['777', '778'],
collectSeconds: 24,
},
{
// WHM
id: 'Temperance',
type: 'mitigation',
effectId: '751',
collectSeconds: 2,
},
{
// SCH
id: 'Seraphism',
type: 'heal',
effectId: 'F2D',
collectSeconds: 2,
},
{
// AST
id: 'Collective Unconscious',
type: 'mitigation',
effectId: '351',
collectSeconds: 20,
},
// ******************** Melee DPS ******************** //
{
// RPR heal
id: 'Crest of Time Returned',
type: 'heal',
effectId: 'A26',
collectSeconds: 2,
},
// ******************** Physical Ranged DPS ******************** //
{
// DNC channeled heal
id: 'Improvisation',
type: 'heal',
effectId: 'A87',
collectSeconds: 15,
},
// ******************** Magical Ranged DPS ******************** //
// ******************** Field Operations & Misc. ******************** //
] as const;
// missedAbilityBuffMap is for buffs that have a corresponding Ability line for
// each affected player. If the effect's application to a particular player can only
// be measured by `GainsEffect` lines, use `missedEffectBuffMap` instead.
export const missedAbilityBuffMap: readonly MissableAbility[] = [
// ******************** Tanks ******************** //
{
// tank LB1
id: 'Shield Wall',
type: 'mitigation',
abilityId: 'C5',
},
{
// tank LB2
id: 'Stronghold',
type: 'mitigation',
abilityId: 'C6',
},
// ************ PLD ************ //
{
// PLD LB3
id: 'Last Bastion',
type: 'mitigation',
abilityId: 'C7',
},
{
id: 'Divine Veil',
type: 'mitigation',
abilityId: 'DD4',
},
// ************ WAR ************ //
{
// WAR LB3
id: 'Land Waker',
type: 'mitigation',
abilityId: '1090',
},
{
id: 'Shake It Off',
type: 'mitigation',
abilityId: '1CDC',
},
// ************ DRK ************ //
{
// DRK LB3
id: 'Dark Force',
type: 'mitigation',
abilityId: '1091',
},
{
id: 'Dark Missionary',
type: 'mitigation',
abilityId: '4057',
},
// ************ GNB ************ //
{
// GNB LB3
id: 'Gunmetal Soul',
type: 'mitigation',
abilityId: '42D1',
},
{
id: 'Heart Of Light',
type: 'mitigation',
abilityId: '3F20',
},
// ******************** Healers ******************** //
{
// heal LB1
id: 'Healing Wind',
type: 'heal',
abilityId: 'CE',
},
{
// heal LB2
id: 'Breath of the Earth',
type: 'heal',
abilityId: 'CF',
},
// ************ WHM ************ //
{
// WHM LB3
id: 'Pulse of Life',
type: 'heal',
abilityId: 'D0',
},
{
id: 'Medica',
type: 'heal',
abilityId: '7C',
},
{
id: 'Medica II',
type: 'heal',
abilityId: '85',
},
{
'id': 'Medica III',
'type': 'heal',
'abilityId': '9092',
},
{
id: 'Cure III',
type: 'heal',
abilityId: '83',
},
{
// (same ID for damage component)
id: 'Assize',
type: 'heal',
abilityId: 'DF3',
},
{
id: 'Afflatus Rapture',
type: 'heal',
abilityId: '4096',
},
{
id: 'Plenary Indulgence',
type: 'heal',
abilityId: '1D09',
},
{
// 6507 heal on tick
// 6508 heal on expire
id: 'Liturgy of the Bell',
type: 'heal',
abilityId: ['6507', '6508'],
},
{
id: 'Divine Caress',
type: 'mitigation',
abilityId: '9093',
},
// ************ SCH ************ //
{
// SCH LB3
id: 'Angel Feathers',
type: 'heal',
abilityId: '1097',
},
{
id: 'Succor',
type: 'mitigation',
abilityId: 'BA',
},
{
id: 'Concitation',
type: 'mitigation',
abilityId: '9095',
},
{
id: 'Indomitability',
type: 'heal',
abilityId: 'DFF',
},
{
id: 'Deployment Tactics',
type: 'mitigation',
abilityId: 'E01',
},
{
id: 'Whispering Dawn',
type: 'heal',
abilityId: '323',
},
{
id: 'Fey Blessing',
type: 'heal',
abilityId: '40A0',
},
{
id: 'Consolation',
type: 'mitigation',
abilityId: '40A3',
},
{
id: 'Angel\'s Whisper',
type: 'heal',
abilityId: '40A6',
},
{
id: 'Fey Illumination',
type: 'mitigation',
abilityId: '325',
},
{
id: 'Seraphic Illumination',
type: 'mitigation',
abilityId: '40A7',
},
{
// Technically the mitigation is "Desperate Measures", but it comes from
// the Expedient ability on each player and "Expedience" is the haste buff.
id: 'Expedient',
type: 'mitigation',
abilityId: '650C',
},
{
id: 'Accession',
type: 'heal',
abilityId: '9098',
},
// ************ AST ************ //
{
// AST LB3
id: 'Astral Stasis',
type: 'heal',
abilityId: '1098',
},
{
id: 'Divination',
type: 'damage',
abilityId: '40A8',
},
{
id: 'Helios',
type: 'heal',
abilityId: 'E10',
},
{
id: 'Aspected Helios',
type: 'heal',
abilityId: 'E11',
},
{
id: 'Helios Conjunction',
type: 'heal',
abilityId: '90A6',
},
{
id: 'Celestial Opposition',
type: 'heal',
abilityId: '40A9',
},
{
id: 'Stellar Burst',
type: 'heal',
abilityId: '1D10',
},
{
id: 'Stellar Explosion',
type: 'heal',
abilityId: '1D11',
},
{
// 40AD initial application
// 40AE cure on manual trigger
// same IDs for Horoscope Helios
id: 'Horoscope',
type: 'heal',
abilityId: ['40AD', '40AE'],
},
{
id: 'Macrocosmos',
type: 'heal',
abilityId: '6512',
},
{
id: 'Microcosmos',
type: 'heal',
abilityId: '6513',
},
{
id: 'Lady of Crowns',
type: 'heal',
abilityId: '1D15',
},
{
id: 'Sun Sign',
type: 'mitigation',
abilityId: '90A7',
},
// ************ SGE ************ //
{
// SGE LB3
id: 'Techne Makre',
type: 'heal',
abilityId: '611B',
},
{
id: 'Kerachole',
type: 'mitigation',
abilityId: '5EEA',
},
{
id: 'Panhaima',
type: 'mitigation',
abilityId: '5EF7',
},
{
id: 'Prognosis',
type: 'heal',
abilityId: '5EDE',
},
{
id: 'Physis',
type: 'heal',
abilityId: '5EE0',
},
{
id: 'Physis II',
type: 'heal',
abilityId: '5EEE',
},
{
id: 'Eukrasian Prognosis',
type: 'mitigation',
abilityId: '5EE4',
},
{
id: 'Eukrasian Prognosis II',
type: 'mitigation',
abilityId: '90AA',
},
{
id: 'Ixochole',
type: 'heal',
abilityId: '5EEB',
},
{
id: 'Pepsis',
type: 'heal',
abilityId: '5EED',
},
{
id: 'Holos',
type: 'mitigation',
abilityId: '5EF6',
},
{
id: 'Pneuma',
type: 'heal',
// 5EFE on enemies, and 6CB6 on friendlies.
abilityId: '6CB6',
},
{
id: 'Philosophia',
type: 'heal',
abilityId: '90AB',
},
// ******************** Melee DPS ******************** //
// ************ MNK ************ //
{
id: 'Brotherhood',
type: 'damage',
abilityId: '1CE4',
},
{
id: 'Mantra',
type: 'heal',
abilityId: '41',
},
// ************ DRG ************ //
{
id: 'Battle Litany',
type: 'damage',
abilityId: 'DE5',
},
// ************ RPR ************ //
{
id: 'Arcane Circle',
type: 'damage',
abilityId: '5F55',
},
// ******************** Physical Ranged DPS ******************** //
// ************ BRD ************ //
{
id: 'Battle Voice',
type: 'damage',
abilityId: '76',
},
{
id: 'Radiant Finale',
type: 'damage',
abilityId: '64B9',
},
{
id: 'Nature\'s Minne',
type: 'heal',
abilityId: '1CF0',
},
{
id: 'Troubadour',
type: 'mitigation',
abilityId: '1CED',
},
// ************ MCH ************ //
{
id: 'Tactician',
type: 'mitigation',
abilityId: '41F9',
},
// ************ DNC ************ //
{
id: 'Technical Finish',
type: 'damage',
// 81C2 is the correct Quadruple Technical Finish, others are Dinky Technical Finish.
// TODO: pre-6.4, these were the abilityIds, but there's no backwards compat support here
// See: https://github.com/quisquous/cactbot/issues/5415
// abilityId: ['3F41', '3F42', '3F43', '3F44'],
abilityId: ['81BF', '81C0', '81C1', '81C2'],
},
{
// Channeled shield
id: 'Improvised Finish',
type: 'mitigation',
abilityId: '64BD',
},
{
// AoE heal (same ID from DNC and partner)
id: 'Curing Waltz',
type: 'heal',
abilityId: '3E8F',
},
{
id: 'Shield Samba',
type: 'mitigation',
abilityId: '3E8C',
},
// ******************** Magical Ranged DPS ******************** //
// ************ SMN ************ //
{
id: 'Searing Light',
type: 'damage',
abilityId: '64C9',
},
{
// phoenix heal
id: 'Everlasting Flight',
type: 'heal',
abilityId: '4085',
},
{
id: 'Lux Solaris',
type: 'heal',
abilityId: '9085',
},
// ************ RDM ************ //
{
id: 'Embolden',
type: 'damage',
abilityId: '1D60',
},
{
id: 'Magick Barrier',
type: 'mitigation',
abilityId: '6501',
},
// ************ PCT ************ //
{
id: 'Tempera Grassa',
type: 'mitigation',
abilityId: '877E',
},
{
id: 'Starry Muse',
type: 'damage',
abilityId: '8773',
},
{
id: 'Star Prism',
type: 'heal',
abilityId: '877A', // 8779 is the damage component
},
// ************ BLU ************ //
{
id: 'White Wind',
type: 'heal',
abilityId: '2C8E',
},
{
id: 'Gobskin',
type: 'mitigation',
abilityId: '4780',
},
{
id: 'Exuviation',
type: 'heal',
abilityId: '478E',
},
{
// only heals in heal mimic
id: 'Stotram',
type: 'heal',
abilityId: '5B78',
},
{
id: 'Angel\'s Snack',
type: 'heal',
abilityId: '5AE8',
},
// ******************** Field Operations & Misc. ******************** //
// ************ Bozja ************ //
{
id: 'Lost Aethershield',
type: 'mitigation',
abilityId: '5753',
},
] as const;
export const generateBuffTriggerIds = (): string[] => {
const buffs: MissableBuff[] = [...missedEffectBuffMap, ...missedAbilityBuffMap];
buffs.sort((a, b) => a.id.localeCompare(b.id));
return buffs.map((buff) => `Buff ${buff.id}`);
};