-
Notifications
You must be signed in to change notification settings - Fork 32
/
extras.lua
357 lines (339 loc) · 8.63 KB
/
extras.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
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',
[105] = 'attack',
-- 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',
-- 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',
}
Simulationcraft.upgradeAchievements = {
40107, -- Harbinger of the Weathered
40115, -- Harbinger of the Carved
40118, -- Harbinger of the Runed
40939, -- Harbinger of the Gilded
}
-- Upgrade currencies and item
Simulationcraft.upgradeCurrencies = {
[1191] = 'Valor',
[1792] = 'Honor',
[2122] = 'Storm Sigil',
[2245] = 'Flightstones',
[2806] = 'Whelpling\'s Awakened Crest',
[2807] = 'Drake\'s Awakened Crest',
[2809] = 'Wyrm\'s Awakened Crest',
[2812] = 'Aspect\'s Awakened Crest',
[2914] = 'Weathered Harbinger Crest',
[2915] = 'Carved Harbinger Crest',
[2916] = 'Runed Harbinger Crest',
[2917] = 'Gilded Harbinger Crest',
[3008] = 'Valorstones',
}
Simulationcraft.upgradeItems = {
[190453] = 'Spark of Ingenuity',
[197921] = 'Primal Infusion',
[198046] = 'Concentrated Primal Infusion',
[198048] = 'Titan Training Matrix I',
[198056] = 'Titan Training Matrix II',
[198058] = 'Titan Training Matrix III',
[198059] = 'Titan Training Matrix IV',
[204440] = 'Spark of Shadowflame',
[204673] = 'Titan Training Matrix V',
[204681] = 'Enchanted Whelpling\'s Shadowflame Crest',
[204682] = 'Enchanted Wyrm\'s Shadowflame Crest',
[204697] = 'Enchanted Aspect\'s Shadowflame Crest',
[206366] = 'Cracked Trophy of Strife',
[206959] = 'Spark of Dreams',
[206960] = 'Enchanted Wyrm\'s Dreaming Crest',
[206961] = 'Enchanted Aspect\'s Dreaming Crest',
[206977] = 'Enchanted Whelpling\'s Dreaming Crest',
[210221] = 'Forged Combatant\'s Heraldry',
[210232] = 'Forged Aspirant\'s Heraldry',
[210233] = 'Forged Gladiator\'s Heraldry',
[211296] = 'Spark of Omens',
[211494] = 'Spark of Beginnings',
[211516] = 'Spark of Awakening',
[211518] = 'Enchanted Wyrm\'s Awakened Crest',
[211519] = 'Enchanted Aspect\'s Awakened Crest',
[211520] = 'Enchanted Whelpling\'s Awakened Crest',
[224069] = 'Enchanted Weathered Harbinger Crest',
[224072] = 'Enchanted Runed Harbinger Crest',
[224073] = 'Enchanted Gilded Harbinger Crest',
[228338] = 'Soul Sigil I',
[228339] = 'Soul Sigil II',
}