forked from shirsig/ccc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.lua
389 lines (367 loc) · 7.74 KB
/
data.lua
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
ccwatch_DR_CLASS = {
["Fear"] = 1,
["Howl of Terror"] = 1,
["Seduction"] = 1,
["Polymorph"] = 2,
["Polymorph: Turtle"] = 2,
["Polymorph: Pig"] = 2,
["Freezing Trap Effect"] = 3,
["Wyvern String"] = 3,
["Sap"] = 4,
["Gouge"] = 4,
["Scare Beast"] = 5,
["Entangling Roots"] = 6,
["Frost Nova"] = 7,
["Cheap Shot"] = 8,
["Kidney Shot"] = 9,
["Blind"] = 10,
["Hibernate"] = 11,
["Frost Shock"] = 12,
}
ccwatch_UNIQUENESS_CLASS = {
["Polymorph"] = 1,
["Polymorph: Turtle"] = 1,
["Polymorph: Pig"] = 1,
["Fear"] = 2,
["Sap"] = 3,
["Entangling Roots"] = 4,
["Hibernate"] = 5,
["Turn Undead"] = 6,
["Shackle Undead"] = 7,
["Banish"] = 8,
["Scare Beast"] = 9,
}
ccwatch_PROJECTILE = {
["Death Coil"] = true,
["Frostbolt"] = true,
["Wyvern Sting"] = true,
["Concussive Shot"] = true,
["Net-o-Matic"] = true,
["Trap"] = true,
}
ccwatch_AOE = {
["Cone of Cold"] = true,
["Blast Wave"] = true,
["Piercing Howl"] = true,
["Psychic Scream"] = true,
["Frost Nova"] = true,
["Howl of Terror"] = true,
["War Stomp"] = true,
}
local function talentRank(i, j)
local _, _, _, _, rank = GetTalentInfo(i, j)
return rank
end
ccwatch_BONUS = {
["Freezing Trap"] = function()
return 20 * talentRank(3, 7) * .15
end,
["Seduction"] = function()
return talentRank(2, 7) * 1.5
end,
["Gouge"] = function()
return talentRank(2, 1) * .5
end,
["Cone of Cold"] = function()
return min(1, talentRank(3, 2)) * .5 + talentRank(3, 2) * .5
end,
["Frostbolt"] = function()
return min(1, talentRank(3, 2)) * .5 + talentRank(3, 2) * .5
end,
["Pounce"] = function()
return talentRank(2, 4) * .5
end,
["Bash"] = function()
return talentRank(2, 4) * .5
end,
}
ccwatch_HEARTBEAT = {
["Scare Beast"] = true,
["Freezing Trap"] = true,
["Entangling Roots"] = true,
["Hibernate"] = true,
["Fear"] = true,
["Sap"] = true,
["Polymorph"] = true,
["Polymorph: Turtle"] = true,
["Polymorph: Pig"] = true,
["Reckless Charge"] = true,
["Sleep"] = true,
}
ccwatch_COMBO = {
["Kidney Shot"] = 1,
}
ccwatch_ITEM_ACTION = {
["Goblin Rocket Helmet"] = {name="Reckless Charge"},
["Horned Viking Helmet"] = {name="Reckless Charge"},
["Slumber Sand"] = {name="Sleep", rank=1},
["Magic Dust"] = {name="Sleep", rank=2},
["Gnomish Net-o-Matic Projector"] = {name="Net-o-Matic"},
["Large Rope Net"] = {name="Trap"},
["Really Sticky Glue"] = {name="Trap"},
}
ccwatch_ACTION = {
["Riposte"] = true,
["Frostbolt"] = true,
["Cone of Cold"] = true,
["Blast Wave"] = true,
["Wing Clip"] = true,
["Curse of Exhaustion"] = true,
["Curse of Tongues"] = true,
["Disarm"] = true,
["Mortal Strike"] = true,
["Hamstring"] = true,
["Piercing Howl"] = true,
["Frost Shock"] = true,
["Gouge"] = true,
["Blind"] = true,
["Sap"] = true,
["Kidney Shot"] = true,
["Cheap Shot"] = true,
["Shackle Undead"] = true,
["Psychic Scream"] = true,
["Polymorph"] = true,
["Polymorph: Turtle"] = true,
["Polymorph: Pig"] = true,
["Frost Nova"] = true,
["Entangling Roots"] = true,
["Hibernate"] = true,
["Feral Charge"] = true,
["Pounce"] = true,
["Bash"] = true,
["Scare Beast"] = true,
["Scatter Shot"] = true,
["Wyvern Sting"] = true,
["Concussive Shot"] = true,
["Counterattack"] = true,
["Hammer of Justice"] = true,
["Repentance"] = true,
["Turn Undead"] = true,
["Fear"] = true,
["Howl of Terror"] = true,
["Death Coil"] = true,
["Banish"] = true,
["Hamstring"] = true,
["Intimidating Shout"] = true,
["Concussion Blow"] = true,
["War Stomp"] = true,
["Intercept"] = true,
["Reckless Charge"] = true,
["Sleep"] = true,
["Net-o-Matic"] = true,
["Large Rope Net"] = true,
["Tidal Charm"] = true,
}
ccwatch_ACTION_EFFECT = {
["Intercept"] = "Intercept Stun",
}
ccwatch_EFFECTS = {
["Riposte"] = {
ICON = 'Ability_Warrior_Challange',
DURATION = {6},
},
["Frostbolt"] = {
ICON = 'Spell_Frost_FrostBolt02',
DURATION = {5, 6, 6, 7, 7, 8, 8, 9, 9, 9, 9},
},
["Cone of Cold"] = {
ICON = 'Spell_Frost_Glacier',
DURATION = {8},
},
["Blast Wave"] = {
ICON = 'Spell_Holy_Excorcism_02',
DURATION = {6},
},
["Wing Clip"] = {
ICON = 'Ability_Rogue_Trip',
DURATION = {10},
},
["Curse of Exhaustion"] = {
ICON = 'Spell_Shadow_GrimWard',
DURATION = {12},
},
["Curse of Tongues"] = {
ICON = 'Spell_Shadow_CurseOfTounges',
DURATION = {30},
},
["Disarm"] = {
ICON = 'Ability_Warrior_Disarm',
DURATION = {10},
},
["Mortal Strike"] = {
ICON = 'Ability_Warrior_SavageBlow',
DURATION = {10},
},
["Hamstring"] = {
ICON = 'Ability_ShockWave',
DURATION = {15},
},
["Piercing Howl"] = {
ICON = 'Spell_Shadow_DeathScream',
DURATION = {6},
},
["Frost Shock"] = {
ICON = 'Spell_Frost_FrostShock',
DURATION = {8},
},
["Gouge"] = {
ICON = 'Ability_Gouge',
DURATION = {4},
},
["Blind"] = {
ICON = 'Spell_Shadow_MindSteal',
DURATION = {10},
},
["Sap"] = {
ICON = 'Ability_Sap',
DURATION = {25, 35, 45},
},
["Kidney Shot"] = {
ICON = 'Ability_Rogue_KidneyShot',
DURATION = {0, 1},
},
["Cheap Shot"] = {
ICON = 'Ability_CheapShot',
DURATION = {4},
},
["Shackle Undead"] = {
ICON = 'Spell_Nature_Slow',
DURATION = {30, 40, 50},
},
["Psychic Scream"] = {
ICON = 'Spell_Shadow_PsychicScream',
DURATION = {8},
},
["Polymorph"] = {
ICON = 'Spell_Nature_Polymorph',
DURATION = {20, 30, 40, 50},
},
["Polymorph: Turtle"] = {
ICON = "Ability_Hunter_Pet_Turtle",
DURATION = {50},
},
["Polymorph: Pig"] = {
ICON = "Spell_Magic_PolymorphPig",
DURATION = {50},
},
["Frost Nova"] = {
ICON = 'Spell_Frost_FrostNova',
DURATION = {8},
},
["Entangling Roots"] = {
ICON = 'Spell_Nature_StrangleVines',
DURATION = {12, 15, 18, 21, 24, 27},
},
["Hibernate"] = {
ICON = 'Spell_Nature_Sleep',
DURATION = {20, 30, 40},
},
["Feral Charge"] = {
ICON = 'Ability_Hunter_Pet_Bear',
DURATION = {4},
},
["Pounce"] = {
ICON = 'Ability_Druid_SupriseAttack',
DURATION = {2},
},
["Bash"] = {
ICON = 'Ability_Druid_Bash',
DURATION = {2, 3, 4},
},
["Scare Beast"] = {
ICON = 'Ability_Druid_Cower',
DURATION = {10, 15, 20},
},
["Scatter Shot"] = {
ICON = 'Ability_GolemStormBolt',
DURATION = {4},
},
["Wyvern Sting"] = {
ICON = 'INV_Spear_02',
DURATION = {12},
},
["Concussive Shot"] = {
ICON = 'Spell_Frost_Stun',
DURATION = {4},
},
["Counterattack"] = {
ICON = 'Ability_Warrior_Challange',
DURATION = {5},
},
["Hammer of Justice"] = {
ICON = 'Spell_Holy_SealOfMight',
DURATION = {3, 4, 5, 6},
},
["Repentance"] = {
ICON = 'Spell_Holy_PrayerOfHealing',
DURATION = {6},
},
["Turn Undead"] = {
ICON = 'Spell_Holy_TurnUndead',
DURATION = {10, 15, 20},
},
["Fear"] = {
ICON = 'Spell_Shadow_Possession',
DURATION = {10, 15, 20},
},
["Howl of Terror"] = {
ICON = 'Spell_Shadow_DeathScream',
DURATION = {10, 15},
},
["Death Coil"] = {
ICON = 'Spell_Shadow_DeathCoil',
DURATION = {3},
},
["Banish"] = {
ICON = 'Spell_Shadow_Cripple',
DURATION = {20, 30},
},
["Hamstring"] = {
ICON = 'Ability_ShockWave',
DURATION = {15},
},
["Intimidating Shout"] = {
ICON = 'Ability_GolemThunderClap',
DURATION = {8},
},
["Concussion Blow"] = {
ICON = 'Ability_ThunderBolt',
DURATION = {5},
},
["War Stomp"] = {
ICON = 'Ability_WarStomp',
DURATION = {2},
},
["Intercept Stun"] = {
ICON = 'Spell_Frost_Stun',
DURATION = {3},
},
["Tidal Charm"] = {
ICON = 'Spell_Frost_SummonWaterElemental',
DURATION = {3},
},
["Sleep"] = {
ICON = 'Spell_Holy_MindVision',
DURATION = {20, 30},
},
["Net-o-Matic"] = {
ICON = 'INV_Misc_Net_01',
DURATION = {10},
},
["Trap"] = {
ICON = 'INV_Misc_Net_01',
DURATION = {10},
},
["Reckless Charge"] = {
ICON = 'Spell_Nature_AstralRecal',
DURATION = {30},
},
["Seduction"] = {
ICON = 'Spell_Shadow_MindSteal',
DURATION = {15},
},
["Freezing Trap Effect"] = {
ICON = 'Spell_Frost_ChainsOfIce',
DURATION = {20},
},
}