forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buff_map.ts
346 lines (340 loc) · 6.02 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
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;
export const missedEffectBuffMap: readonly MissableEffect[] = [
{
id: 'Collective Unconscious',
type: 'mitigation',
effectId: '351',
collectSeconds: 20,
},
{
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,
},
{
id: 'Divine Veil',
type: 'mitigation',
effectId: '2D7',
ignoreSelf: true,
collectSeconds: 2,
},
{
// RPR heal
id: 'Crest of Time Returned',
type: 'heal',
effectId: 'A26',
collectSeconds: 2,
},
] as const;
export const missedAbilityBuffMap: readonly MissableAbility[] = [
{
id: 'Heart Of Light',
type: 'mitigation',
abilityId: '3F20',
},
{
id: 'Dark Missionary',
type: 'mitigation',
abilityId: '4057',
},
{
id: 'Shake It Off',
type: 'mitigation',
abilityId: '1CDC',
},
{
id: 'Technical Finish',
type: 'damage',
// 3F44 is the correct Quadruple Technical Finish, others are Dinky Technical Finish.
abilityId: ['3F41', '3F42', '3F43', '3F44'],
},
{
id: 'Divination',
type: 'damage',
abilityId: '40A8',
},
{
id: 'Brotherhood',
type: 'damage',
abilityId: '1CE4',
},
{
id: 'Battle Litany',
type: 'damage',
abilityId: 'DE5',
},
{
id: 'Embolden',
type: 'damage',
abilityId: '1D60',
},
{
id: 'Battle Voice',
type: 'damage',
abilityId: '76',
// TODO: remove this line after 5.x is not supported anymore.
// Technically Battle Voice can't miss the bard itself, so this is a noop in 6.x.
ignoreSelf: true,
},
{
// 5x
id: 'Devotion',
type: 'damage',
abilityId: '1D1A',
},
{
id: 'Searing Light',
type: 'damage',
abilityId: '64F2',
},
{
id: 'Arcane Circle',
type: 'damage',
abilityId: '5F55',
},
{
id: 'Troubadour',
type: 'mitigation',
abilityId: '1CED',
},
{
id: 'Tactician',
type: 'mitigation',
abilityId: '41F9',
},
{
id: 'Shield Samba',
type: 'mitigation',
abilityId: '3E8C',
},
{
id: 'Mantra',
type: 'mitigation',
abilityId: '41',
},
{
// LB1
id: 'Healing Wind',
type: 'heal',
abilityId: 'CE',
},
{
// LB2
id: 'Breath of the Earth',
type: 'heal',
abilityId: 'CF',
},
{
// LB 3
id: 'Pulse of Life',
type: 'heal',
abilityId: 'D0',
},
{
// SMN phoenix heal
id: 'Everlasting Flight',
type: 'heal',
abilityId: '4085',
},
{
id: 'Medica',
type: 'heal',
abilityId: '7C',
},
{
id: 'Medica II',
type: 'heal',
abilityId: '85',
},
{
id: 'Afflatus Rapture',
type: 'heal',
abilityId: '4096',
},
{
id: 'Temperance',
type: 'heal',
abilityId: '751',
},
{
id: 'Plenary Indulgence',
type: 'heal',
abilityId: '1D09',
},
{
id: 'Succor',
type: 'heal',
abilityId: 'BA',
},
{
id: 'Indomitability',
type: 'heal',
abilityId: 'DFF',
},
{
id: 'Deployment Tactics',
type: 'heal',
abilityId: 'E01',
},
{
id: 'Whispering Dawn',
type: 'heal',
abilityId: '323',
},
{
id: 'Fey Blessing',
type: 'heal',
abilityId: '40A0',
},
{
id: 'Consolation',
type: 'heal',
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: 'Kerachole',
type: 'mitigation',
abilityId: '5EEA',
},
{
id: 'Panhaima',
type: 'mitigation',
abilityId: '5EF7',
},
{
id: 'Angel Feathers',
type: 'heal',
abilityId: '1097',
},
{
id: 'Helios',
type: 'heal',
abilityId: 'E10',
},
{
id: 'Aspected Helios',
type: 'heal',
abilityId: ['E11', '3200'],
},
{
id: 'Celestial Opposition',
type: 'heal',
abilityId: '40A9',
},
{
id: 'Stellar Burst',
type: 'heal',
abilityId: '1D10',
},
{
id: 'Stellar Explosion',
type: 'heal',
abilityId: '1D11',
},
{
id: 'Astral Stasis',
type: 'heal',
abilityId: '1098',
},
{
id: 'Prognosis',
type: 'heal',
abilityId: '5EDE',
},
{
id: 'Physis',
type: 'heal',
abilityId: '5EE0',
},
{
id: 'Eukrasian Prognosis',
type: 'heal',
abilityId: '5EE4',
},
{
id: 'Ixochole',
type: 'heal',
abilityId: '5EEB',
},
{
id: 'Pepsis',
type: 'heal',
abilityId: '5EED',
},
{
id: 'Physis II',
type: 'heal',
abilityId: '5EEE',
},
{
id: 'Holos',
type: 'heal',
abilityId: '5EF6',
},
{
id: 'Pneuma',
type: 'heal',
// 5EFE on enemies, and 6CB6 on friendlies.
abilityId: '6CB6',
},
{
id: 'White Wind',
type: 'heal',
abilityId: '2C8E',
},
{
id: 'Gobskin',
type: 'heal',
abilityId: '4780',
},
{
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}`);
};