forked from quisquous/cactbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
o10n.js
292 lines (290 loc) · 9.58 KB
/
o10n.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
'use strict';
// O10N - Alphascape 2.0
[{
zoneRegex: /^(Alphascape \(V2.0\)|Alphascape V2.0)$/,
timelineFile: 'o10n.txt',
triggers: [
{
// Spin Table
// 31C7 + 31C9 = 31CD (horiz + horiz = out)
// 31C7 + 31CB = 31CF (horiz + vert = in)
// 31C8 + 31CB = 31D0 (vert + vert = +)
id: 'O10N Spin Cleanup',
regex: /15:\y{ObjectId}:Midgardsormr:31C[78]:/,
regexDe: /15:\y{ObjectId}:Midgardsormr:31C[78]:/,
regexFr: /15:\y{ObjectId}:Midgardsormr:31C[78]:/,
regexJa: /15:\y{ObjectId}:ミドガルズオルム:31C[78]:/,
delaySeconds: 10,
run: function(data) {
delete data.lastSpinWasHorizontal;
},
},
{
id: 'O10N Horizontal Spin 1',
regex: /15:\y{ObjectId}:Midgardsormr:31C7:/,
regexDe: /15:\y{ObjectId}:Midgardsormr:31C7:/,
regexFr: /15:\y{ObjectId}:Midgardsormr:31C7:/,
regexJa: /15:\y{ObjectId}:ミドガルズオルム:31C7:/,
infoText: {
en: 'Next Spin: In or Out',
de: 'Nächste Drehung: Rein oder raus',
fr: 'Tour suivant : Dedans/Dehors',
},
run: function(data) {
data.lastSpinWasHorizontal = true;
},
},
{
id: 'O10N Vertical Spin 1',
regex: /15:\y{ObjectId}:Midgardsormr:31C8:/,
regexDe: /15:\y{ObjectId}:Midgardsormr:31C8:/,
regexFr: /15:\y{ObjectId}:Midgardsormr:31C8:/,
regexJa: /15:\y{ObjectId}:ミドガルズオルム:31C8:/,
infoText: {
en: 'Next Spin: Corners',
de: 'Nächste Drehung: Ecken',
fr: 'Tour suivant : Plus',
},
run: function(data) {
data.lastSpinWasHorizontal = false;
},
},
{
id: 'O10N Horizontal Spin 2',
regex: /15:\y{ObjectId}:Midgardsormr:31C9:/,
regexDe: /15:\y{ObjectId}:Midgardsormr:31C9:/,
regexFr: /15:\y{ObjectId}:Midgardsormr:31C9:/,
regexJa: /15:\y{ObjectId}:ミドガルズオルム:31C9:/,
condition: function(data) {
return data.lastSpinWasHorizontal !== undefined;
},
alertText: function(data) {
if (data.lastSpinWasHorizontal) {
return {
en: 'Get Out',
de: 'Raus da',
fr: 'Sortez',
};
}
// This shouldn't happen.
return {
en: 'Go To Cardinals',
de: 'Geh zu den Kanten',
fr: 'Allez sur les points cardinaux',
};
},
},
{
id: 'O10N Vertical Spin 2',
regex: /15:\y{ObjectId}:Midgardsormr:31CB:/,
regexDe: /15:\y{ObjectId}:Midgardsormr:31CB:/,
regexFr: /15:\y{ObjectId}:Midgardsormr:31CB:/,
regexJa: /15:\y{ObjectId}:ミドガルズオルム:31CB:/,
condition: function(data) {
return data.lastSpinWasHorizontal !== undefined;
},
alertText: function(data) {
if (data.lastSpinWasHorizontal) {
return {
en: 'Get In',
de: 'Rein da',
fr: 'Allez sous le boss',
};
}
return {
en: 'Go To Corners',
de: 'In die Ecken',
fr: 'Allez dans les coins',
};
},
},
],
timelineReplace: [
{
'locale': 'de',
'replaceSync': {
'Engage!': 'Start!',
'Midgardsormr': 'Midgardsormr',
'Ancient Dragon': 'Antiker Drache',
'Immortal Key': 'Unsterblicher Schlüssel',
},
'replaceText': {
'--targetable--': '--anvisierbar--',
'--untargetable--': '--nich anvisierbar--',
'Akh Morn': 'Akh Morn',
'Akh Rhai': 'Akh Rhai',
'Azure Wings': 'Azurschwingen',
'Bloodied Maw': 'Blutiger Schlund',
'Cauterize': 'Kauterisieren',
'Coil': 'Angriff',
'Crimson Breath': 'Purpurschwingen',
'Crimson Wings': 'Purpurschwingen',
'Dark Wave': 'Dunkle Welle',
'Dry Ice': 'Trockeneis',
'Earth Shaker': 'Erdstoß',
'Enrage': 'Finalangriff',
'Exaflare': 'Exaflare',
'Flame Blast': 'Flammenhölle',
'Frost Breath': 'Frostiger Atem',
'Horrid Roar': 'Entsetzliches Brüllen',
'Hot Tail': 'Schwelender Schweif',
'Northern Cross': 'Kreuz des Nordens',
'Protostar': 'Protostern',
'Rime Wreath': 'Frostkalter Reif',
'Stygian Maw': 'Stygischer Schlund',
'Tail End': 'Schweifspitze',
'Thunderstorm': 'Gewitter',
'Time Immemorial': 'Urknall',
'Touchdown': 'Himmelssturz',
'attack': 'Attacke',
'Flip': 'Rolle',
'Spin': 'Drehung',
'Cardinals': 'Kanten',
'Corners': 'Ecken',
'In': 'Rein',
'Out': 'Raus',
'Flip/Spin': 'Rolle/Drehung',
'In/Out': 'Rein/Raus',
'Corners/Cardinals': 'Ecken/Kanten',
'Shaker/Thunder': 'Erdstoß/Blitz',
' ready': ' bereit',
'Signal': 'Signal',
'Position': 'Position',
},
'~effectNames': {
'Arcane Bulwark': 'Magische Barriere',
'Crumbling Bulwark': 'Zerstörung der magischen Barriere',
'Death from Above': 'Strafe des Himmels',
'Death from Below': 'Strafe der Erde',
'Defenseless': 'Magische Barriere blockiert',
'Landborne': 'Kraft der Erde',
'Skyborne': 'Kraft des Himmels',
'Thin Ice': 'Glatteis',
},
},
{
'locale': 'fr',
'replaceSync': {
'Engage!': 'À l\'attaque',
'Midgardsormr': 'Midgardsormr',
'Ancient Dragon': 'Dragon Ancien',
'Immortal Key': 'Clef Immortelle',
},
'replaceText': {
'--Reset--': '--Réinitialisation--',
'--sync--': '--Synchronisation--',
'--targetable--': '--Ciblable--',
'--untargetable--': '--Impossible à cibler--',
'Akh Morn': 'Akh Morn',
'Akh Rhai': 'Akh Rhai',
'Azure Wings': 'Ailes azur',
'Bloodied Maw': 'Gueule ensanglantée',
'Cauterize': 'Cautérisation',
'Coil': 'Charge',
'Crimson Breath': 'Haleine cramoisie',
'Crimson Wings': 'Ailes pourpres',
'Dark Wave': 'Vague de ténèbres',
'Dry Ice': 'Poussière glaçante',
'Earth Shaker': 'Secousse',
'Enrage': 'Enrage',
'Exaflare': 'ExaBrasier',
'Flame Blast': 'Explosion de flamme',
'Frost Breath': 'Souffle glacé',
'Horrid Roar': 'Rugissement horrible',
'Hot Tail': 'Queue calorifique',
'Northern Cross': 'Croix du nord',
'Protostar': 'Proto-étoile',
'Rime Wreath': 'Enveloppe de givre',
'Stygian Maw': 'Gueule ténébreuse',
'Tail End': 'Pointe de queue',
'Thunderstorm': 'Tempête de foudre',
'Time Immemorial': 'Big bang',
'Touchdown': 'Atterrissage',
'attack': 'Attaque',
'Flip': 'Tour vertical',
'Spin': 'Tour horizontal',
'Cardinals': 'Cardinaux',
'In': 'Dedans',
'Out': 'Dehors',
'Flip/Spin': 'Tour Hz/Vt',
'In/Out': 'Dedans/Dehors',
'Corners/Cardinals': 'Coins/Cardinaux',
'Shaker/Thunder': 'Secousse/Tempête',
' ready': ' prêt',
'Corners': 'Coins',
'Signal': 'Signal',
'Position': 'Position',
},
'~effectNames': {
'Arcane Bulwark': 'Barrière magique',
'Crumbling Bulwark': 'Barrière magique détériorée',
'Death from Above': 'Désastre céleste',
'Death from Below': 'Désastre terrestre',
'Defenseless': 'Barrière magique bloquée',
'Landborne': 'Force terrestre',
'Skyborne': 'Force céleste',
'Thin Ice': 'Verglas',
},
},
{
'locale': 'ja',
'replaceSync': {
'Engage!': '戦闘開始!',
'Midgardsormr': 'ミドガルズオルム',
'Ancient Dragon': 'エンシェントドラゴン',
'Immortal Key': '竜の楔',
},
'replaceText': {
'Akh Morn': 'アク・モーン',
'Akh Rhai': 'アク・ラーイ',
'Azure Wings': '蒼翼の焔',
'Bloodied Maw': '紅牙の焔',
'Cauterize': 'カータライズ',
'Coil': '',
'Crimson Breath': 'クリムゾンブレス',
'Crimson Wings': '紅翼の焔',
'Dark Wave': 'ダークウェーブ',
'Dry Ice': 'フリージングダスト',
'Earth Shaker': 'アースシェイカー',
'Exaflare': 'エクサフレア',
'Flame Blast': 'フレイムブラスト',
'Frost Breath': 'フロストブレス',
'Horrid Roar': 'ホリッドロア',
'Hot Tail': 'ヒートテイル',
'Northern Cross': 'ノーザンクロス',
'Protostar': 'プロトスター',
'Rime Wreath': 'ライムリリース',
'Stygian Maw': '',
'Tail End': 'テイルエンド',
'Thunderstorm': 'サンダーストーム',
'Time Immemorial': '天地開闢',
'Touchdown': 'タッチダウン',
'attack': '攻撃',
// FIXME
'Flip': 'Flip',
'Spin': 'Spin',
'Cardinals': 'Cardinals',
'Corners': 'Corners',
'In': 'In',
'Out': 'Out',
'Flip/Spin': 'Flip/Spin',
'In/Out': 'In/Out',
'Corners/Cardinals': 'Corners/Cardinals',
'Shaker/Thunder': 'Shaker/Thunder',
' ready': ' ready',
'Signal': 'Signal',
'Position': 'Position',
},
'~effectNames': {
'Arcane Bulwark': '魔法障壁',
'Crumbling Bulwark': '魔法障壁:崩壊',
'Death from Above': '天の災厄',
'Death from Below': '地の災厄',
'Defenseless': '魔法障壁:展開不可',
'Landborne': '地の力',
'Skyborne': '天の力',
'Thin Ice': '氷床',
},
},
],
}];