-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathextras.lua
More file actions
426 lines (405 loc) · 10.5 KB
/
extras.lua
File metadata and controls
426 lines (405 loc) · 10.5 KB
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
local _, Simulationcraft = ...
Simulationcraft.RoleTable = {
-- Death Knight
[250] = 'tank',
[251] = 'attack',
[252] = 'attack',
-- Demon Hunter
[577] = 'attack',
[581] = 'tank',
-- Druid
[102] = 'spell',
[103] = 'attack',
[104] = 'tank',
[1480] = 'spell',
-- Evoker
[1467] = 'spell',
[1468] = 'attack',
-- Hunter
[253] = 'attack',
[254] = 'attack',
[255] = 'attack',
-- Mage
[62] = 'spell',
[63] = 'spell',
[64] = 'spell',
-- Monk
[268] = 'tank',
[269] = 'attack',
[270] = 'attack',
-- Paladin
[65] = 'attack',
[66] = 'tank',
[70] = 'attack',
-- Priest
[256] = 'spell',
[257] = 'attack',
[258] = 'spell',
-- Rogue
[259] = 'attack',
[260] = 'attack',
[261] = 'attack',
-- Shaman
[262] = 'spell',
[263] = 'attack',
[264] = 'attack',
-- Warlock
[265] = 'spell',
[266] = 'spell',
[267] = 'spell',
-- Warrior
[71] = 'attack',
[72] = 'attack',
[73] = 'tank'
}
-- regionID lookup
Simulationcraft.RegionString = {
[1] = 'us',
[2] = 'kr',
[3] = 'eu',
[4] = 'tw',
[5] = 'cn',
[72] = 'tr'
}
-- non-localized profession names from ids
Simulationcraft.ProfNames = {
[129] = 'First Aid',
[164] = 'Blacksmithing',
[165] = 'Leatherworking',
[171] = 'Alchemy',
[182] = 'Herbalism',
[184] = 'Cooking',
[186] = 'Mining',
[197] = 'Tailoring',
[202] = 'Engineering',
[333] = 'Enchanting',
[356] = 'Fishing',
[393] = 'Skinning',
[755] = 'Jewelcrafting',
[773] = 'Inscription',
[794] = 'Archaeology'
}
-- non-localized spec names from spec ids
Simulationcraft.SpecNames = {
-- Death Knight
[250] = 'Blood',
[251] = 'Frost',
[252] = 'Unholy',
-- Demon Hunter
[577] = 'Havoc',
[581] = 'Vengeance',
[1480] = 'Devourer',
-- Druid
[102] = 'Balance',
[103] = 'Feral',
[104] = 'Guardian',
[105] = 'Restoration',
-- Evoker
[1473] = 'Augmentation',
[1467] = 'Devastation',
[1468] = 'Preservation',
-- Hunter
[253] = 'Beast Mastery',
[254] = 'Marksmanship',
[255] = 'Survival',
-- Mage
[62] = 'Arcane',
[63] = 'Fire',
[64] = 'Frost',
-- Monk
[268] = 'Brewmaster',
[269] = 'Windwalker',
[270] = 'Mistweaver',
-- Paladin
[65] = 'Holy',
[66] = 'Protection',
[70] = 'Retribution',
-- Priest
[256] = 'Discipline',
[257] = 'Holy',
[258] = 'Shadow',
-- Rogue
[259] = 'Assassination',
[260] = 'Outlaw',
[261] = 'Subtlety',
-- Shaman
[262] = 'Elemental',
[263] = 'Enhancement',
[264] = 'Restoration',
-- Warlock
[265] = 'Affliction',
[266] = 'Demonology',
[267] = 'Destruction',
-- Warrior
[71] = 'Arms',
[72] = 'Fury',
[73] = 'Protection'
}
-- slot name conversion stuff
-- The array indexes are NOT the slot ids - they are the "slot numbers" used by this addons.
Simulationcraft.slotNames = {
"HeadSlot", -- [1]
"NeckSlot", -- [2]
"ShoulderSlot", -- [3]
"BackSlot", -- [4]
"ChestSlot", -- [5]
"ShirtSlot", -- [6]
"TabardSlot", -- [7]
"WristSlot", -- [8]
"HandsSlot", -- [9]
"WaistSlot", -- [10]
"LegsSlot", -- [11]
"FeetSlot", -- [12]
"Finger0Slot", -- [13]
"Finger1Slot", -- [14]
"Trinket0Slot", -- [15]
"Trinket1Slot", -- [16]
"MainHandSlot", -- [17]
"SecondaryHandSlot", -- [18]
"AmmoSlot" -- [19]
}
-- The array indexes are NOT the slot ids - they are the "slot numbers" used by this addons.
Simulationcraft.simcSlotNames = {
'head', -- [1]
'neck', -- [2]
'shoulder', -- [3]
'back', -- [4]
'chest', -- [5]
'shirt', -- [6]
'tabard', -- [7]
'wrist', -- [8]
'hands', -- [9]
'waist', -- [10]
'legs', -- [11]
'feet', -- [12]
'finger1', -- [13]
'finger2', -- [14]
'trinket1', -- [15]
'trinket2', -- [16]
'main_hand', -- [17]
'off_hand', -- [18]
'ammo', -- [19]
}
-- Map of the INVTYPE_ returned by GetItemInfo to the slot number (NOT the slot id).
Simulationcraft.invTypeToSlotNum = {
INVTYPE_HEAD=1,
INVTYPE_NECK=2,
INVTYPE_SHOULDER=3,
INVTYPE_CLOAK=4,
INVTYPE_CHEST=5, INVTYPE_ROBE=5, -- These are the same slot - which one is used appears to differ based on whether the item's model covers the legs.
INVTYPE_BODY=6, -- shirt.
INVTYPE_TABARD=7,
INVTYPE_WRIST=8,
INVTYPE_HAND=9,
INVTYPE_WAIST=10,
INVTYPE_LEGS=11,
INVTYPE_FEET=12,
INVTYPE_FINGER=13,
-- 14 is also a finger slot number.
INVTYPE_TRINKET=15,
-- 16 is also a trinket slot number.
INVTYPE_WEAPON=17, -- 1h weapon.
INVTYPE_2HWEAPON=17, -- 2h weapon.
INVTYPE_RANGED=17, -- bows.
INVTYPE_RANGEDRIGHT=17, -- Guns, wands, crossbows.
INVTYPE_SHIELD=18,
INVTYPE_HOLDABLE=18, -- off hand, but not a weapon or shield.
-- These types are no longer used in current content.
INVTYPE_WEAPONMAINHAND=17, -- Likely no items have this type anymore.
INVTYPE_WEAPONOFFHAND=18, -- Likely no items have this type anymore.
INVTYPE_THROWN=17, -- Thrown weapons. I do not know if this slot number is correct, but it shouldn't matter since these are no longer obtainable and those that do exist are now gray items.
--INVTYPE_RELIC=?, -- No corresponding slot number, and I do not think any such items exist. Existing relics were turned into non-equipable gray items. This is value is not used for legion relics either.
}
-- table for conversion to upgrade level, stolen from AMR (<3)
Simulationcraft.upgradeTable = {
[0] = 0,
[1] = 1, -- 1/1 -> 8
[373] = 1, -- 1/2 -> 4
[374] = 2, -- 2/2 -> 8
[375] = 1, -- 1/3 -> 4
[376] = 2, -- 2/3 -> 4
[377] = 3, -- 3/3 -> 4
[378] = 1, -- 1/1 -> 7
[379] = 1, -- 1/2 -> 4
[380] = 2, -- 2/2 -> 4
[445] = 0, -- 0/2 -> 0
[446] = 1, -- 1/2 -> 4
[447] = 2, -- 2/2 -> 8
[451] = 0, -- 0/1 -> 0
[452] = 1, -- 1/1 -> 8
[453] = 0, -- 0/2 -> 0
[454] = 1, -- 1/2 -> 4
[455] = 2, -- 2/2 -> 8
[456] = 0, -- 0/1 -> 0
[457] = 1, -- 1/1 -> 8
[458] = 0, -- 0/4 -> 0
[459] = 1, -- 1/4 -> 4
[460] = 2, -- 2/4 -> 8
[461] = 3, -- 3/4 -> 12
[462] = 4, -- 4/4 -> 16
[465] = 0, -- 0/2 -> 0
[466] = 1, -- 1/2 -> 4
[467] = 2, -- 2/2 -> 8
[468] = 0, -- 0/4 -> 0
[469] = 1, -- 1/4 -> 4
[470] = 2, -- 2/4 -> 8
[471] = 3, -- 3/4 -> 12
[472] = 4, -- 4/4 -> 16
[476] = 0, -- ? -> 0
[479] = 0, -- ? -> 0
[491] = 0, -- ? -> 0
[492] = 1, -- ? -> 0
[493] = 2, -- ? -> 0
[494] = 0,
[495] = 1,
[496] = 2,
[497] = 3,
[498] = 4,
[504] = 3,
[505] = 4,
-- WOW-20726patch6.2.3_Retail
[529] = 0, -- 0/2 -> 0
[530] = 1, -- 1/2 -> 5
[531] = 2 -- 2/2 -> 10
}
Simulationcraft.zandalariLoaBuffs = {
[292359] = 'akunda',
[292360] = 'bwonsamdi',
[292362] = 'gonk',
[292363] = 'kimbul',
[292364] = 'kragwa',
[292361] = 'paku',
}
Simulationcraft.azeriteEssenceSlotsMajor = {
0
}
Simulationcraft.azeriteEssenceSlotsMinor = {
1,
2
}
Simulationcraft.covenants = {
[1] = 'kyrian',
[2] = 'venthyr',
[3] = 'night_fae',
[4] = 'necrolord',
}
-- 11.1.7 Belt spells
Simulationcraft.discBeltSpell = 1233515
Simulationcraft.discBeltEffectSpells = {
[1241240] = 1236279,
[1241241] = 1236278,
[1241242] = 1236277,
[1241243] = 1236961,
[1241244] = 1236109,
[1241245] = 1236122,
[1241246] = 1236272,
[1241250] = 1236275,
[1241251] = 1236273,
}
-- Spells to load by LoadSpellsAsync and to store in SpellCache
Simulationcraft.preloadSpellIds = {
-- 11.1.7 DISC Belt Spells
1233515,
1241240,
1241241,
1241242,
1241243,
1241244,
1241245,
1241246,
1241250,
1241251,
}
-- Upgrade currencies and item
Simulationcraft.upgradeCurrencies = {
[1191] = 'Valor',
[1792] = 'Honor',
[1813] = 'Reservoir Anima',
[1931] = 'Cataloged Research',
[2122] = 'Storm Sigil',
[3008] = 'Valorstones',
[3284] = 'Weathered Ethereal Crest',
[3286] = 'Carved Ethereal Crest',
[3288] = 'Runed Ethereal Crest',
[3290] = 'Gilded Ethereal Crest',
[3341] = 'Veteran Dawncrest',
[3343] = 'Champion Dawncrest',
[3345] = 'Hero Dawncrest',
[3347] = 'Myth Dawncrest',
[3383] = 'Adventurer Dawncrest',
}
Simulationcraft.upgradeItems = {
[173381] = 'Crafter\'s Mark I',
[180055] = 'Relic of the Past I',
[180057] = 'Relic of the Past II',
[180058] = 'Relic of the Past III',
[180059] = 'Relic of the Past IV',
[180060] = 'Relic of the Past V',
[204276] = 'Untapped Forbidden Knowledge',
[204681] = 'Enchanted Whelpling\'s Shadowflame Crest',
[204682] = 'Enchanted Wyrm\'s Shadowflame Crest',
[204697] = 'Enchanted Aspect\'s Shadowflame Crest',
[206366] = 'Cracked Trophy of Strife',
[210221] = 'Forged Combatant\'s Heraldry',
[210232] = 'Forged Aspirant\'s Heraldry',
[210233] = 'Forged Gladiator\'s Heraldry',
[211296] = 'Spark of Omens',
[224069] = 'Enchanted Weathered Harbinger Crest',
[224072] = 'Enchanted Runed Harbinger Crest',
[224073] = 'Enchanted Gilded Harbinger Crest',
[228338] = 'Soul Sigil I',
[228339] = 'Soul Sigil II',
[228368] = 'Relic of the Past VI',
[229388] = 'Prized Combatant\'s Heraldry',
[229389] = 'Prized Aspirant\'s Heraldry',
[229390] = 'Prized Gladiator\'s Heraldry',
[230285] = 'Astral Combatant\'s Heraldry',
[230286] = 'Astral Aspirant\'s Heraldry',
[230287] = 'Astral Gladiator\'s Heraldry',
[230906] = 'Spark of Fortunes',
[230935] = 'Enchanted Gilded Undermine Crest',
[230936] = 'Enchanted Runed Undermine Crest',
[230937] = 'Enchanted Weathered Undermine Crest',
[231756] = 'Spark of Starlight',
[231767] = 'Enchanted Weathered Ethereal Crest',
[231768] = 'Enchanted Gilded Ethereal Crest',
[231769] = 'Enchanted Runed Ethereal Crest',
[232875] = 'Spark of Radiance',
[239146] = 'Gilded Augmentation Matrix',
[239203] = 'Runed Augmentation Matrix',
[251993] = 'Gilded Starlight Matrix',
[251994] = 'Runed Starlight Matrix',
[256559] = 'Galactic Combatant\'s Heraldry',
[256607] = 'Galactic Aspirant\'s Heraldry',
[256608] = 'Galactic Gladiator\'s Heraldry',
}
Simulationcraft.catalystCurrencies = {
[2813] = 'Harmonized Silk',
[3116] = 'Essence of Kaja\'mite',
[3269] = 'Ethereal Voidsplinter',
[3378] = 'Dawnlight Manaflux',
}
Simulationcraft.upgradeAchievements = {
19326, -- Dreaming of Drakes
19397, -- Dreaming of Wyrms
19398, -- Dreaming of the Aspects
19577, -- The Awakened Drake
19578, -- The Awakened Wyrm
19579, -- The Awakened Aspects
40107, -- Harbinger of the Weathered
40115, -- Harbinger of the Carved
40118, -- Harbinger of the Runed
40939, -- Harbinger of the Gilded
40942, -- Weathered of the Undermine
40943, -- Carved of the Undermine
40944, -- Runed of the Undermine
40945, -- Gilded of the Undermine
41886, -- Weathered of the Ethereal
41887, -- Carved of the Ethereal
41888, -- Runed of the Ethereal
41892, -- Gilded of the Ethereal
42767, -- Veteran of the Dawn
42768, -- Champion of the Dawn
42769, -- Hero of the Dawn
61809, -- Adventurer of the Dawn
}