-
Notifications
You must be signed in to change notification settings - Fork 2
/
clsJobBuff.gs
291 lines (254 loc) · 9.67 KB
/
clsJobBuff.gs
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
////////////////////////////////////////
// ジョブ別出力セル定義
////////////////////////////////////////
Job_OutputBuff = function(outputType, who, whom, type, event, userName) {
this.outputType = outputType;
this.who = who;
this.whom = whom;
this.type = type;
this.event = event;
this.userName = userName;
this.baseCol = CNT_TIMELINE_COL + CNT_RAIDBUFF_COL;
}
// Colを返す
Job_OutputBuff.prototype.getCol = function() {
var col = null;
if (this.outputType == OUTPUT_BRDBUFF) {
return this.BRD(this.type, this.event);
} else if(this.outputType == OUTPUT_MCHBUFF) {
return this.MCH(this.type, this.event);
} else if(this.outputType == OUTPUT_MNKBUFF) {
return this.MNK(this.who, this.type, this.event);
} else if(this.outputType == OUTPUT_DRGBUFF) {
return this.DRG(this.who, this.type, this.event);
} else if(this.outputType == OUTPUT_WARBUFF) {
return this.WAR(this.type, this.event);
} else if(this.outputType == OUTPUT_PLDBUFF) {
return this.PLD(this.type, this.event);
} else if(this.outputType == OUTPUT_BLMBUFF) {
return this.BLM(this.who, this.type, this.event);
} else if(this.outputType == OUTPUT_SMNBUFF) {
return this.SMN(this.who, this.type, this.event, this.whom);
}
return col;
}
// 出力バフタイプがジョブ別用か
Job_OutputBuff.prototype.getoutputTypeJob = function() {
if(this.getCol() == null) {
return false;
} else {
return true;
}
}
// 詩人
Job_OutputBuff.prototype.BRD = function(type, event) {
var col = null;
if(type == AC_ACTION && BRD_SongValue(event) != null) {
col = 1;
} else if((type == AC_ACTION || type == AC_LOSE_EFFECT) && event == "猛者の撃") {
col = 2;
} else if(type == AC_ACTION && event == "アイアンジョー") {
col = 3;
} else if(type == AC_ACTION && event == "エンピリアルアロー") {
col = 4;
} else if(type == AC_ACTION && event == "サイドワインダー") {
col = 5;
} else if((type == AC_LOSE_EFFECT || type == AC_EFFECT) && event == "タクティシャン") {
col = 6;
}
if (col != null) col = this.baseCol + col;
return col;
}
// 機工士
Job_OutputBuff.prototype.MCH = function(type, event) {
var col = null;
if(type == AC_ACTION && event == "ガウスバレル") {
col = 1;
} else if(type == AC_ACTION && event == "バレルヒーター") {
col = 2;
} else if((type == AC_ACTION || type == AC_LOSE_EFFECT) && event == "フレイムスロアー") {
col = 3;
} else if(type == AC_ACTION && (event == "オーバードライブ・ルーク" || event == "オーバードライブ・ビショップ")) {
col = 4;
} else if(type == AC_ACTION && event == "ガウスラウンド") {
col = 5;
} else if(type == AC_ACTION && event == "クールダウン") {
col = 6;
} else if(type == AC_ACTION && event == "リコシェット") {
col = 7;
} else if((type == AC_LOSE_EFFECT || type == AC_EFFECT) && event == "タクティシャン") {
col = 8;
}
if (col != null) col = this.baseCol + col;
return col;
}
// モンク
Job_OutputBuff.prototype.MNK = function(who, type, event) {
var col = null;
if((type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "発勁") {
col = 1;
} else if((type == AC_ACTION || type == AC_LOSE_EFFECT) && event == "紅蓮の極意") {
col = 2;
} else if(type == AC_ACTION && event == "空鳴拳") {
col = 3;
} else if(type == AC_ACTION && event == "蒼気砲") {
col = 4;
} else if(type == AC_ACTION && event == "闘魂旋風脚") {
col = 5;
} else if(type == AC_ACTION && event == "疾風羅刹衝") {
col = 6;
} else if(type == AC_ACTION && event == "疾風の極意") {
col = 7;
} else if(type == AC_ACTION && event == "紅蓮羅刹衝") {
col = 8;
} else if((type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "踏鳴") {
col = 9;
} else if(who == this.userName && (type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "トゥルーノース") {
col = 10;
}
if (col != null) col = this.baseCol + col;
return col;
}
// 竜
Job_OutputBuff.prototype.DRG = function(who, type, event) {
var col = null;
if((type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "捨身") {
col = 1;
} else if((type == AC_ACTION || type == AC_LOSE_EFFECT) && event == "ライフサージ") {
col = 2;
} else if(type == AC_ACTION && (event == "竜牙竜爪" || event == "竜尾大車輪")) {
col = 3;
} else if(type == AC_ACTION && event == "ゲイルスコグル") {
col = 4;
} else if(type == AC_ACTION && event == "ジャンプ") {
col = 5;
} else if(type == AC_ACTION && event == "スパインダイブ") {
col = 6;
} else if(type == AC_ACTION && event == "ミラージュダイブ") {
col = 7;
} else if(type == AC_ACTION && event == "ナーストレンド") {
col = 8;
} else if(who == this.userName && (type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "トゥルーノース") {
col = 9;
}
if (col != null) col = this.baseCol + col;
return col;
}
// 戦士定義
Job_OutputBuff.prototype.WAR = function(type, event) {
var col = null;
if((type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "原初の解放") {
col = 1;
} else if(type == AC_ACTION && event == "オンスロート") {
col = 2;
} else if(type == AC_ACTION && event == "アップヒーバル") {
col = 3;
} else if(type == AC_ACTION && event == "ウォークライ") {
col = 4;
}
if (col != null) col = this.baseCol + col;
return col;
}
// ナイト定義
Job_OutputBuff.prototype.PLD = function(type, event) {
var col = null;
if((type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "ファイト・オア・フライト") {
col = 1;
} else if(type == AC_ACTION && event == "レイジ・オブ・ハルオーネ") {
col = 2;
} else if((type == AC_ACTION || type == AC_REFRESH) && event == "ゴアブレード") {
col = 3;
} else if(type == AC_ACTION && event == "ロイヤルアソリティ") {
col = 4;
} else if((type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "レクイエスカット") {
col = 5;
} else if(type == AC_ACTION && event == "ホーリースピリット") {
col = 6;
} else if(type == AC_ACTION && event == "スピリッツウィズイン") {
col = 7;
} else if(type == AC_ACTION && event == "サークル・オブ・ドゥーム") {
col = 8;
}
if (col != null) col = this.baseCol + col;
return col;
}
// 黒魔道士
Job_OutputBuff.prototype.BLM = function(who, type, event) {
var col = null;
if(type == AC_ACTION && event == "三連魔") {
col = 1;
} else if(who == this.userName && type == AC_ACTION && event == "迅速魔") {
col = 2;
} else if((type == AC_LOSE_EFFECT || type == AC_EFFECT) && event == "黒魔紋") {
col = 3;
} else if(type == AC_ACTION && event == "マナフォント") {
col = 4;
} else if(type == AC_ACTION && event == "フレア") {
col = 5;
} else if(type == AC_ACTION && event == "ファウル") {
col = 6;
} else if(type == AC_ACTION && event == "デスペア") {
col = 7;
} else if(type == AC_ACTION && event == "ゼノグロシー") {
col = 8;
} else if(type == AC_ACTION && event == "サンダガ") {
col = 9;
} else if(type == AC_ACTION && event == "サンダジャ") {
col = 10;
} else if(type == AC_ACTION && event == "ブリザガ") {
col = 11;
} else if(type == AC_ACTION && event == "フリーズ") {
col = 12;
} else if(type == AC_ACTION && event == "ブリザジャ") {
col = 13;
} else if(type == AC_ACTION && event == "ファイガ") {
col = 14;
} else if(type == AC_ACTION && event == "ファイジャ") {
col = 15;
}
if (col != null) col = this.baseCol + col;
return col;
}
// 召喚定義
Job_OutputBuff.prototype.SMN = function(who, type, event, whom) {
var col = null;
if((type == AC_EFFECT || type == AC_LOSE_EFFECT) && event == "ルイネーション") {
col = 1;
} else if((type == AC_ACTION || type == AC_REFRESH) && event == "トライディザスター") {
col = 2;
} else if((type == AC_ACTION || type == AC_REFRESH) && event == "ミアズガ") {
col = 3;
} else if((type == AC_ACTION || type == AC_REFRESH) && event == "バイオガ") {
col = 4;
} else if(who == this.userName && type == AC_ACTION && SMN_EnagyValue(event) != null) {
col = 5;
} else if(who == this.userName && type == AC_ACTION && SMN_FlowValue(event) != null) {
col = 6;
} else if(type == AC_ACTION && ['エリアルスラッシュ', '大地の鎧', 'クリムゾンサイクロン'].indexOf(event) >= 0) {
col = 7;
} else if(type == AC_ACTION && ['スリップストリーム', 'マウンテンバスター', 'フレイミングクラッシュ'].indexOf(event) >= 0) {
col = 8;
} else if(type == AC_ACTION && ['エリアルブラスト', '大地の怒り', '地獄の火炎'].indexOf(event) >= 0) {
col = 9;
} else if(type == AC_ACTION && event == "トランス・バハムート") {
col = 10;
} else if(type == AC_ACTION && event == "デスフレア") {
col = 11;
} else if(type == AC_ACTION && event == "サモン・バハムート") {
col = 12;
} else if(type == AC_ACTION && event == "ウィルムウェーブ") {
col = 13;
} else if(type == AC_ACTION && event == "アク・モーン") {
col = 14;
} else if(type == AC_ACTION && event == "トランス・フェニックス") {
col = 15;
} else if(type == AC_ACTION && event == "霊泉の炎") {
col = 16;
} else if(type == AC_ACTION && event == "煉獄の炎") {
col = 17;
} else if(type == AC_ACTION && event == "リヴァレーション") {
col = 18;
}
if (col != null) col = this.baseCol + col;
return col;
}