comparison Constants.lua @ 358:703714202ffe 6.0.2-1

Merge with WoD
author MMOSimca <MMOSimca@gmail.com>
date Tue, 14 Oct 2014 00:36:05 -0400
parents 06b53a3d2b4a
children 97824a39ddd3
comparison
equal deleted inserted replaced
328:3487529df8e5 358:703714202ffe
11 ----------------------------------------------------------------------- 11 -----------------------------------------------------------------------
12 local ADDON_NAME, private = ... 12 local ADDON_NAME, private = ...
13 13
14 14
15 ----------------------------------------------------------------------- 15 -----------------------------------------------------------------------
16 -- Constants. 16 -- Game Data Constants.
17 -----------------------------------------------------------------------
18 -- Map of Alliance Logging NPC Summon spells to all possible Timber objectIDs of the proper tree size
19 private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP = {
20 [167902] = 234021, --{ 233604, 233922, , 234080, 234097, 234109, 234110, 234122, 234126, 234193, 234197, 237727, },
21 [167969] = 234022, --{ 233634, 234000, , 234098, 234111, 234119, 234123, 234127, 234194, 234196, 234198, },
22 [168201] = 234023, --{ 233625, 234007, , 234099, 234120, 234124, 234128, 234195, 234199, },
23 }
24 -- Account for Horde spell IDs
25 private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[167961] = private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[167902]
26 private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[168043] = private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[167969]
27 private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[168200] = private.LOGGING_SPELL_ID_TO_OBJECT_ID_MAP[168201]
28
29 -- Map of Salvage spells to item IDs of the Salvage containers (no longer loot toasts)
30 private.SALVAGE_SPELL_ID_TO_ITEM_ID_MAP = {
31 [168178] = 114116, -- Bag of Salvaged Goods
32 [168179] = 114119, -- Crate of Salvage
33 [168180] = 114120, -- Big Crate of Salvage
34 }
35
36 -- Map of Garrison Cache object names to Garrison Cache object IDs
37 private.GARRISON_CACHE_OBJECT_NAME_TO_OBJECT_ID_MAP = {
38 ["Garrison Cache"] = 236916,
39 ["Full Garrison Cache"] = 237722,
40 ["Hefty Garrison Cache"] = 237723,
41 }
42 private.GARRISON_CACHE_LOOT_SOURCE_ID = 10
43
44 private.LOOT_SPELL_ID_TO_ITEM_ID_MAP = {
45 [142397] = 98134, -- Heroic Cache of Treasures
46 [142901] = 98546, -- Bulging Heroic Cache of Treasures
47 [143506] = 98095, -- Brawler's Pet Supplies
48 [143507] = 94207, -- Fabled Pandaren Pet Supplies
49 [143508] = 89125, -- Sack of Pet Supplies
50 [143509] = 93146, -- Pandaren Spirit Pet Supplies
51 [143510] = 93147, -- Pandaren Spirit Pet Supplies
52 [143511] = 93149, -- Pandaren Spirit Pet Supplies
53 [143512] = 93148, -- Pandaren Spirit Pet Supplies
54 [146885] = 103535, -- Bulging Bag of Charms
55 [147598] = 104014, -- Pouch of Timeless Coins
56 [149222] = 105911, -- Pouch of Enduring Wisdom
57 [149223] = 105912, -- Oversized Pouch of Enduring Wisdom
58 --[168178] = 114116, -- Bag of Salvaged Goods
59 --[168179] = 114119, -- Crate of Salvage
60 --[168180] = 114120, -- Big Crate of Salvage
61 [171513] = 116414, -- Pet Supplies
62 [175767] = 118697, -- Big Bag of Pet Supplies
63 [178508] = 120321, -- Mystery Bag
64 }
65
66 private.FACTION_DATA = {
67 -- Used only for private.REP_BUFFS
68 ARGENT_CRUSADE = { 1106, _G.GetFactionInfoByID(1106) },
69 BILGEWATER_CARTEL = { 1133, _G.GetFactionInfoByID(1133) },
70 CENARION_CIRCLE = { 609, _G.GetFactionInfoByID(609) },
71 DARKSPEAR = { 530, _G.GetFactionInfoByID(530) },
72 DARNASSUS = { 69, _G.GetFactionInfoByID(69) },
73 DRAGONMAW_CLAN = { 1172, _G.GetFactionInfoByID(1172) },
74 EARTHEN_RING = { 1135, _G.GetFactionInfoByID(1135) },
75 EBON_BLADE = { 1098, _G.GetFactionInfoByID(1098) },
76 EXODAR = { 930, _G.GetFactionInfoByID(930) },
77 GILNEAS = { 1134, _G.GetFactionInfoByID(1134) },
78 GNOMEREGAN = { 54, _G.GetFactionInfoByID(54) },
79 GUARDIANS_OF_HYJAL = { 1158, _G.GetFactionInfoByID(1158) },
80 GUILD = { 1168, _G.GetFactionInfoByID(1168) },
81 HONOR_HOLD = { 946, _G.GetFactionInfoByID(946) },
82 HUOJIN = { 1352, _G.GetFactionInfoByID(1352) },
83 IRONFORGE = { 47, _G.GetFactionInfoByID(47) },
84 KIRIN_TOR = { 1090, _G.GetFactionInfoByID(1090) },
85 ORGRIMMAR = { 76, _G.GetFactionInfoByID(76) },
86 RAMKAHEN = { 1173, _G.GetFactionInfoByID(1173) },
87 SHATAR = { 935, _G.GetFactionInfoByID(935) },
88 SILVERMOON = { 911, _G.GetFactionInfoByID(911) },
89 STORMWIND = { 72, _G.GetFactionInfoByID(72) },
90 THERAZANE = { 1171, _G.GetFactionInfoByID(1171) },
91 THRALLMAR = { 947, _G.GetFactionInfoByID(947) },
92 THUNDER_BLUFF = { 81, _G.GetFactionInfoByID(81) },
93 TUSHUI = { 1353, _G.GetFactionInfoByID(1353) },
94 UNDERCITY = { 68, _G.GetFactionInfoByID(68) },
95 WILDHAMMER_CLAN = { 1174, _G.GetFactionInfoByID(1174) },
96 WYRMREST_ACCORD = { 1091, _G.GetFactionInfoByID(1091) },
97 -- Commendation Factions
98 ANGLERS = { 1302, _G.GetFactionInfoByID(1302) },
99 AUGUST_CELESTIALS = { 1341, _G.GetFactionInfoByID(1341) },
100 DOMINANCE_OFFENSIVE = { 1375, _G.GetFactionInfoByID(1375) },
101 GOLDEN_LOTUS = { 1269, _G.GetFactionInfoByID(1269) },
102 KIRIN_TOR_OFFENSIVE = { 1387, _G.GetFactionInfoByID(1387) },
103 KLAXXI = { 1337, _G.GetFactionInfoByID(1337) },
104 LOREWALKERS = { 1345, _G.GetFactionInfoByID(1345) },
105 OPERATION_SHIELDWALL = { 1376, _G.GetFactionInfoByID(1376) },
106 ORDER_OF_THE_CLOUD_SERPENTS = { 1271, _G.GetFactionInfoByID(1271) },
107 SHADO_PAN = { 1270, _G.GetFactionInfoByID(1270) },
108 SHADO_PAN_ASSAULT = { 1435, _G.GetFactionInfoByID(1435) },
109 SUNREAVER_ONSLAUGHT = { 1388, _G.GetFactionInfoByID(1388) },
110 TILLERS = { 1272, _G.GetFactionInfoByID(1272) },
111 }
112
113 private.REP_BUFFS = {
114 -- Tabard Buffs
115 [_G.GetSpellInfo(93830)] = { -- BILGEWATER CARTEL TABARD
116 faction = private.FACTION_DATA.BILGEWATER_CARTEL[2],
117 ignore = true,
118 },
119 [_G.GetSpellInfo(93827)] = { -- DARKSPEAR TABARD
120 faction = private.FACTION_DATA.DARKSPEAR[2],
121 ignore = true,
122 },
123 [_G.GetSpellInfo(93806)] = { -- DARNASSUS TABARD
124 faction = private.FACTION_DATA.DARNASSUS[2],
125 ignore = true,
126 },
127 [_G.GetSpellInfo(93811)] = { -- EXODAR TABARD
128 faction = private.FACTION_DATA.EXODAR[2],
129 ignore = true,
130 },
131 [_G.GetSpellInfo(93816)] = { -- GILNEAS TABARD
132 faction = private.FACTION_DATA.GILNEAS[2],
133 ignore = true,
134 },
135 [_G.GetSpellInfo(93821)] = { -- GNOMEREGAN TABARD
136 faction = private.FACTION_DATA.GNOMEREGAN[2],
137 ignore = true,
138 },
139 [_G.GetSpellInfo(126436)] = { -- HUOJIN TABARD
140 faction = private.FACTION_DATA.HUOJIN[2],
141 ignore = true,
142 },
143 [_G.GetSpellInfo(97340)] = { -- ILLUSTRIOUS GUILD TABARD
144 faction = private.FACTION_DATA.GUILD[2],
145 modifier = 1,
146 },
147 [_G.GetSpellInfo(93805)] = { -- IRONFORGE TABARD
148 faction = private.FACTION_DATA.IRONFORGE[2],
149 ignore = true,
150 },
151 [_G.GetSpellInfo(93825)] = { -- ORGRIMMAR TABARD
152 faction = private.FACTION_DATA.ORGRIMMAR[2],
153 ignore = true,
154 },
155 [_G.GetSpellInfo(97341)] = { -- RENOWNED GUILD TABARD
156 faction = private.FACTION_DATA.GUILD[2],
157 modifier = 0.5,
158 },
159 [_G.GetSpellInfo(93828)] = { -- SILVERMOON CITY TABARD
160 faction = private.FACTION_DATA.SILVERMOON[2],
161 ignore = true,
162 },
163 [_G.GetSpellInfo(93795)] = { -- STORMWIND TABARD
164 faction = private.FACTION_DATA.STORMWIND[2],
165 ignore = true,
166 },
167 [_G.GetSpellInfo(93337)] = { -- TABARD OF RAMKAHEN
168 faction = private.FACTION_DATA.RAMKAHEN[2],
169 ignore = true,
170 },
171 [_G.GetSpellInfo(57819)] = { -- TABARD OF THE ARGENT CRUSADE
172 faction = private.FACTION_DATA.ARGENT_CRUSADE[2],
173 ignore = true,
174 },
175 [_G.GetSpellInfo(94158)] = { -- TABARD OF THE DRAGONMAW CLAN
176 faction = private.FACTION_DATA.DRAGONMAW_CLAN[2],
177 ignore = true,
178 },
179 [_G.GetSpellInfo(93339)] = { -- TABARD OF THE EARTHEN RING
180 faction = private.FACTION_DATA.EARTHEN_RING[2],
181 ignore = true,
182 },
183 [_G.GetSpellInfo(57820)] = { -- TABARD OF THE EBON BLADE
184 faction = private.FACTION_DATA.EBON_BLADE[2],
185 ignore = true,
186 },
187 [_G.GetSpellInfo(93341)] = { -- TABARD OF THE GUARDIANS OF HYJAL
188 faction = private.FACTION_DATA.GUARDIANS_OF_HYJAL[2],
189 ignore = true,
190 },
191 [_G.GetSpellInfo(57821)] = { -- TABARD OF THE KIRIN TOR
192 faction = private.FACTION_DATA.KIRIN_TOR[2],
193 ignore = true,
194 },
195 [_G.GetSpellInfo(93368)] = { -- TABARD OF THE WILDHAMMER CLAN
196 faction = private.FACTION_DATA.WILDHAMMER_CLAN[2],
197 ignore = true,
198 },
199 [_G.GetSpellInfo(57822)] = { -- TABARD OF THE WYRMREST ACCORD
200 faction = private.FACTION_DATA.WYRMREST_ACCORD[2],
201 ignore = true,
202 },
203 [_G.GetSpellInfo(93347)] = { -- TABARD OF THERAZANE
204 faction = private.FACTION_DATA.THERAZANE[2],
205 ignore = true,
206 },
207 [_G.GetSpellInfo(94463)] = { -- THUNDERBLUFF TABARD
208 faction = private.FACTION_DATA.THUNDER_BLUFF[2],
209 ignore = true,
210 },
211 [_G.GetSpellInfo(126434)] = { -- TUSHUI TABARD
212 faction = private.FACTION_DATA.TUSHUI[2],
213 ignore = true,
214 },
215 [_G.GetSpellInfo(94462)] = { -- UNDERCITY TABARD
216 faction = private.FACTION_DATA.UNDERCITY[2],
217 ignore = true,
218 },
219
220 -- Banner Buffs
221 [_G.GetSpellInfo(90216)] = { -- ALLIANCE GUILD STANDARD
222 ignore = true,
223 },
224 [_G.GetSpellInfo(90708)] = { -- HORDE GUILD STANDARD
225 ignore = true,
226 },
227
228 -- Holiday Buffs
229 [_G.GetSpellInfo(136583)] = { -- DARKMOON TOP HAT
230 modifier = 0.1,
231 },
232 [_G.GetSpellInfo(24705)] = { -- GRIM VISAGE
233 modifier = 0.1,
234 },
235 [_G.GetSpellInfo(61849)] = { -- SPIRIT OF SHARING
236 modifier = 0.1,
237 },
238 [_G.GetSpellInfo(95987)] = { -- UNBURDENED
239 modifier = 0.1,
240 },
241 [_G.GetSpellInfo(46668)] = { -- WHEE!
242 modifier = 0.1,
243 },
244 [_G.GetSpellInfo(100951)] = { -- WOW 8TH ANNIVERSARY
245 modifier = 0.08,
246 },
247 [_G.GetSpellInfo(132700)] = { -- WOW 9TH ANNIVERSARY
248 modifier = 0.09,
249 },
250 [_G.GetSpellInfo(150986)] = { -- WOW 10TH ANNIVERSARY
251 modifier = 0.1,
252 },
253
254 -- Situational Buffs
255 [_G.GetSpellInfo(39953)] = { -- ADALS SONG OF BATTLE
256 faction = private.FACTION_DATA.SHATAR[2],
257 modifier = 0.1,
258 },
259 [_G.GetSpellInfo(30754)] = { -- CENARION FAVOR
260 faction = private.FACTION_DATA.CENARION_CIRCLE[2],
261 modifier = 0.25,
262 },
263 [_G.GetSpellInfo(32098)] = { -- HONOR HOLD FAVOR
264 faction = private.FACTION_DATA.HONOR_HOLD[2],
265 modifier = 0.25,
266 },
267 [_G.GetSpellInfo(39913)] = { -- NAZGRELS FERVOR
268 faction = private.FACTION_DATA.THRALLMAR[2],
269 modifier = 0.1,
270 },
271 [_G.GetSpellInfo(32096)] = { -- THRALLMARS FAVOR
272 faction = private.FACTION_DATA.THRALLMAR[2],
273 modifier = 0.25,
274 },
275 [_G.GetSpellInfo(39911)] = { -- TROLLBANES COMMAND
276 faction = private.FACTION_DATA.HONOR_HOLD[2],
277 modifier = 0.1,
278 },
279 }
280
281 private.RAID_BOSS_BONUS_SPELL_ID_TO_NPC_ID_MAP = {
282 -----------------------------------------------------------------------
283 -- World Bosses
284 -----------------------------------------------------------------------
285 [132205] = 60491, -- Sha of Anger Bonus (Sha of Anger)
286 [132206] = 62346, -- Galleon Bonus (Galleon)
287 [136381] = 69099, -- Nalak Bonus (Nalak)
288 [137554] = 69161, -- Oondasta Bonus (Oondasta)
289 [148317] = 71952, -- Celestials Bonus (Chi-Ji)
290 [148316] = 72057, -- Ordos Bonus (Ordos)
291 --[????] = 81535, -- Tarlna the Ageless Bonus Loot (Tarlna the Ageless)
292 --[????] = 87437, -- Drov the Ruiner Bonus Loot (Drov the Ruiner)
293 --[????] = 87493, -- Rukhmar Bonus Loot (Rukhmar)
294
295 -----------------------------------------------------------------------
296 -- Mogu'shan Vaults
297 -----------------------------------------------------------------------
298 [125144] = 59915, -- Stone Guard Bonus (Jasper Guardian)
299 [132189] = 60009, -- Feng the Accursed Bonus (Feng the Accursed)
300 [132190] = 60143, -- Gara'jal the Spiritbinder Bonus (Gara'jal the Spiritbinder)
301 [132191] = 60709, -- Spirit Kings Bonus (Qiang the Merciless)
302 [132192] = 60410, -- Elegon Bonus (Elegon)
303 [132193] = 60399, -- Will of the Emperor Bonus (Qin-xi)
304
305 -----------------------------------------------------------------------
306 -- Terrace of Endless Spring
307 -----------------------------------------------------------------------
308 [132200] = 60583, -- Protectors of the Endless Bonus (Protector Kaolan)
309 [132204] = 60583, -- Protectors of the Endless (Elite) Bonus (Protector Kaolan)
310 [132201] = 62442, -- Tsulong Bonus (Tsulong)
311 [132202] = 62983, -- Lei Shi Bonus (Lei Shi)
312 [132203] = 60999, -- Sha of Fear Bonus (Sha of Fear)
313
314 -----------------------------------------------------------------------
315 -- Heart of Fear
316 -----------------------------------------------------------------------
317 [132194] = 62980, -- Imperial Vizier Zor'lok Bonus (Imperial Vizier Zor'lok)
318 [132195] = 62543, -- Blade Lord Tay'ak Bonus (Blade Lord Ta'yak)
319 [132196] = 62164, -- Garalon Bonus (Garalon)
320 [132197] = 62397, -- Wind Lord Mel'jarak Bonus (Wind Lord Mel'jarak)
321 [132198] = 62511, -- Amber-Shaper Un'sok Bonus (Amber-Shaper Un'sok)
322 [132199] = 62837, -- Grand Empress Shek'zeer Bonus (Grand Empress Shek'zeer)
323
324 -----------------------------------------------------------------------
325 -- Throne of Thunder
326 -----------------------------------------------------------------------
327 [139674] = 69465, -- Jin'rokh the Breaker Bonus (Jin'rokh the Breaker)
328 [139677] = 68476, -- Horridon Bonus (Horridon)
329 [139679] = 69078, -- Zandalari Troll Council Bonus (Sul the Sandcrawler)
330 [139680] = 67977, -- Tortos Bonus (Tortos)
331 [139682] = 68065, -- Magaera Bonus (Megaera)
332 [139684] = 69712, -- Ji'kun, the Ancient Mother Bonus (Ji-Kun)
333 [139686] = 68036, -- Durumu the Forgotten Bonus (Durumu the Forgotten)
334 [139687] = 69017, -- Primordious Bonus (Primordius)
335 [139688] = 69427, -- Dark Animus Bonus (Dark Animus)
336 [139689] = 68078, -- Iron Qon Bonus (Iron Qon)
337 [139690] = 68904, -- The Empyreal Queens Bonus (Suen)
338 [139691] = 68397, -- Lei Shen, The Thunder King Bonus (Lei Shen)
339 [139692] = 69473, -- Ra-den Bonus (Ra-den)
340
341 -----------------------------------------------------------------------
342 -- Siege of Orgrimmar
343 -----------------------------------------------------------------------
344 [145909] = 71543, -- Immerseus Bonus (Immerseus)
345 [145910] = 71475, -- Fallen Protectors Bonus (Rook Stonetoe)
346 [145911] = 72276, -- Norushen Bonus (Amalgam of Corruption)
347 [145912] = 71734, -- Sha of Pride Bonus (Sha of Pride)
348 [145913] = 72249, -- Galakras Bonus (Galakras)
349 [145914] = 71466, -- Iron Juggernaut Bonus (Iron Juggernaut)
350 [145915] = 71859, -- Dark Shaman Bonus (Earthbreaker Haromm)
351 [145916] = 71515, -- General Nazgrim Bonus (General Nazgrim)
352 [145917] = 71454, -- Malkorok Bonus (Malkorok)
353 [145919] = 71889, -- Spoils of Pandaria Bonus (Secured Stockpile of Pandaren Spoils)
354 [145920] = 71529, -- Thok the Bloodthirsty Bonus (Thok the Bloodthirsty)
355 [145918] = 71504, -- Siegecrafter Blackfuse Bonus (Siegecrafter Blackfuse)
356 [145921] = 71161, -- Klaxxi Paragons Bonus (Kil'ruk the Wind-Reaver)
357 [145922] = 71865, -- Garrosh Hellscream Bonus (Garrosh Hellscream)
358
359 -----------------------------------------------------------------------
360 -- Blackrock Foundry
361 -----------------------------------------------------------------------
362 [177510] = 76877, -- Gruul Bonus Loot (Gruul)
363 [177511] = 77182, -- Oregorger Bonus Loot (Oregorger)
364 [177512] = 76809, -- Blast Furnace Loot (Foreman Feldspar)
365 [177513] = 76973, -- Hans'gar & Franzok Bonus Loot (Hans'gar)
366 [177515] = 76814, -- Flamebender Ka'graz Bonus Loot (Flamebender Ka'graz)
367 [177516] = 77692, -- Kromog Bonus Loot (Kromog)
368 [177517] = 76865, -- Beastlord Darmac Bonus Loot (Beastlord Darmac)
369 [177518] = 76906, -- Operator Thogar Bonus Loot (Operator Thogar)
370 [177519] = 77557, -- The Iron Maidens Bonus Loot (Admiral Gar'an)
371 [177520] = 87420, -- Blackhand Bonus Loot (Blackhand)
372
373 -----------------------------------------------------------------------
374 -- Highmaul
375 -----------------------------------------------------------------------
376 [177503] = 87444, -- Kargath Bladefist Bonus Loot (Kargath Bladefist)
377 [177504] = 87447, -- Butcher Bonus Loot (The Butcher)
378 [177505] = 87446, -- Tectus Bonus Loot (Tectus)
379 [177506] = 87441, -- Brackenspore Bonus Loot (Brackenspore)
380 [177507] = 87449, -- Twin Ogron Bonus Loot (Twin Ogron)
381 [177508] = 87445, -- Ko'ragh Bonus Loot (Ko'ragh)
382 [177509] = 87818, -- Imperator Mar'gok Bonus Loot (Imperator Mar'gok)
383 }
384
385
386 -----------------------------------------------------------------------
387 -- Fundamental Constants.
17 ----------------------------------------------------------------------- 388 -----------------------------------------------------------------------
18 private.wow_version, private.build_num = _G.GetBuildInfo() 389 private.wow_version, private.build_num = _G.GetBuildInfo()
390 private.region = GetCVar("portal"):sub(0,2):upper()
391 -- PTR/Beta return "public-test", but they are properly called "XX"
392 if private.region == "PU" then private.region = "XX" end
19 393
20 private.UNIT_TYPES = { 394 private.UNIT_TYPES = {
21 PLAYER = 0, 395 PLAYER = "Player",
22 OBJECT = 1, 396 OBJECT = "GameObject",
23 UNKNOWN = 2, 397 UNKNOWN = "Unknown",
24 NPC = 3, 398 NPC = "Creature",
25 PET = 4, 399 PET = "Pet",
26 VEHICLE = 5, 400 VEHICLE = "Vehicle",
27 } 401 ITEM = "Item",
28 402 }
29 403
30 private.UNIT_TYPE_NAMES = { 404 private.UNIT_TYPE_NAMES = {
31 "PLAYER", 405 ["Player"] = "PLAYER",
32 "OBJECT", 406 ["GameObject"] = "OBJECT",
33 "UNKNOWN", 407 ["Unknown"] = "UNKNOWN",
34 "NPC", 408 ["Creature"] = "NPC",
35 "PET", 409 ["Pet"] = "PET",
36 "VEHICLE", 410 ["Vehicle"] = "VEHICLE",
37 } 411 ["Item"] = "ITEM",
38 412 }
39 413
40 private.ACTION_TYPE_FLAGS = { 414 private.ACTION_TYPE_FLAGS = {
41 ITEM = 0x00000001, 415 ITEM = 0x00000001,
42 NPC = 0x00000002, 416 NPC = 0x00000002,
43 OBJECT = 0x00000004, 417 OBJECT = 0x00000004,
44 ZONE = 0x00000008, 418 ZONE = 0x00000008,
45 } 419 }
46 420
47
48 private.ACTION_TYPE_NAMES = {} 421 private.ACTION_TYPE_NAMES = {}
49 422
50 for name, bit in _G.pairs(private.ACTION_TYPE_FLAGS) do 423 for name, bit in _G.pairs(private.ACTION_TYPE_FLAGS) do
51 private.ACTION_TYPE_NAMES[bit] = name 424 private.ACTION_TYPE_NAMES[bit] = name
52 end 425 end
53
54
55 private.EXTRAPOLATION_BANNED_SPELL_IDS = {
56 [13262] = "DISENCHANT",
57 [4036] = "ENGINEERING",
58 [30427] = "EXTRACT_GAS",
59 [131476] = "FISHING",
60 [2366] = "HERB_GATHERING",
61 [51005] = "MILLING",
62 [605] = "MIND_CONTROL",
63 [2575] = "MINING",
64 [921] = "PICK_POCKET",
65 [31252] = "PROSPECTING",
66 [73979] = "SEARCHING_FOR_ARTIFACTS",
67 [8613] = "SKINNING",
68 }
69
70 426
71 private.SPELL_LABELS_BY_NAME = { 427 private.SPELL_LABELS_BY_NAME = {
72 [_G.GetSpellInfo(13262)] = "DISENCHANT", 428 [_G.GetSpellInfo(13262)] = "DISENCHANT",
73 [_G.GetSpellInfo(4036)] = "ENGINEERING", 429 [_G.GetSpellInfo(4036)] = "ENGINEERING",
74 [_G.GetSpellInfo(30427)] = "EXTRACT_GAS", 430 [_G.GetSpellInfo(30427)] = "EXTRACT_GAS",
82 [_G.GetSpellInfo(31252)] = "PROSPECTING", 438 [_G.GetSpellInfo(31252)] = "PROSPECTING",
83 [_G.GetSpellInfo(73979)] = "SEARCHING_FOR_ARTIFACTS", 439 [_G.GetSpellInfo(73979)] = "SEARCHING_FOR_ARTIFACTS",
84 [_G.GetSpellInfo(8613)] = "SKINNING", 440 [_G.GetSpellInfo(8613)] = "SKINNING",
85 } 441 }
86 442
87
88 private.NON_LOOT_SPELL_LABELS = { 443 private.NON_LOOT_SPELL_LABELS = {
89 MIND_CONTROL = true, 444 MIND_CONTROL = true,
90 } 445 }
91
92 446
93 local AF = private.ACTION_TYPE_FLAGS 447 local AF = private.ACTION_TYPE_FLAGS
94 448
95 private.SPELL_FLAGS_BY_LABEL = { 449 private.SPELL_FLAGS_BY_LABEL = {
96 DISENCHANT = AF.ITEM, 450 DISENCHANT = AF.ITEM,
105 PICK_POCKET = AF.NPC, 459 PICK_POCKET = AF.NPC,
106 PROSPECTING = AF.ITEM, 460 PROSPECTING = AF.ITEM,
107 SEARCHING_FOR_ARTIFACTS = AF.OBJECT, 461 SEARCHING_FOR_ARTIFACTS = AF.OBJECT,
108 SKINNING = AF.NPC, 462 SKINNING = AF.NPC,
109 } 463 }
110
111
112 private.LOOT_SPELL_ID_TO_ITEM_ID_MAP = {
113 [142397] = 98134, -- Heroic Cache of Treasures
114 [143506] = 98095, -- Brawler's Pet Supplies
115 [143507] = 94207, -- Fabled Pandaren Pet Supplies
116 [143508] = 89125, -- Sack of Pet Supplies
117 [143509] = 93146, -- Pandaren Spirit Pet Supplies
118 [143510] = 93147, -- Pandaren Spirit Pet Supplies
119 [143511] = 93149, -- Pandaren Spirit Pet Supplies
120 [143512] = 93148, -- Pandaren Spirit Pet Supplies
121 [146885] = 103535, -- Bulging Bag of Charms
122 [147598] = 104014, -- Pouch of Timeless Coins
123 [149222] = 105911, -- Pouch of Enduring Wisdom
124 [149223] = 105912, -- Oversized Pouch of Enduring Wisdom
125 }
126
127
128 private.RAID_FINDER_BOSS_IDS = {
129 -----------------------------------------------------------------------
130 -- Mogu'shan Vaults
131 -----------------------------------------------------------------------
132 [59915] = true, -- Jasper Guardian
133 [60009] = true, -- Feng the Accursed
134 [60043] = true, -- Jade Guardian
135 [60047] = true, -- Amethyst Guardian
136 [60051] = true, -- Cobalt Guardian
137 [60143] = true, -- Gara'jal the Spiritbinder
138 [60399] = true, -- Qin-xi
139 [60400] = true, -- Jan-xi
140 [60410] = true, -- Elegon
141 [60701] = true, -- Zian of the Endless Shadow
142 [60708] = true, -- Meng the Demented
143 [60709] = true, -- Qiang the Merciless
144 [60710] = true, -- Subetai the Swift
145
146 -----------------------------------------------------------------------
147 -- Terrace of Endless Spring
148 -----------------------------------------------------------------------
149 [60583] = true, -- Protector Kaolan
150 [60585] = true, -- Elder Regail
151 [60586] = true, -- Elder Asani
152 [60999] = true, -- Sha of Fear
153 [62442] = true, -- Tsulong
154 [62983] = true, -- Lei Shi
155
156 -----------------------------------------------------------------------
157 -- Heart of Fear
158 -----------------------------------------------------------------------
159 [62164] = true, -- Garalon
160 [62397] = true, -- Wind Lord Mel'jarak
161 [62511] = true, -- Amber-Shaper Un'sok
162 [62543] = true, -- Blade Lord Ta'yak
163 [62837] = true, -- Grand Empress Shek'zeer
164 [62980] = true, -- Imperial Vizier Zor'lok
165
166 -----------------------------------------------------------------------
167 -- Throne of Thunder
168 -----------------------------------------------------------------------
169 [69465] = true, -- Jin'rokh the Breaker
170 [68476] = true, -- Horridon
171 [69078] = true, -- Sul the Sandcrawler
172 [69131] = true, -- Frost King Malakk
173 [69132] = true, -- High Priestess Mar'li
174 [69134] = true, -- Kazra'jin
175 [67977] = true, -- Tortos
176 [70212] = true, -- Flaming Head (of Megaera)
177 [70235] = true, -- Frozen Head (of Megaera)
178 [70247] = true, -- Venomous Head (of Megaera)
179 [69712] = true, -- Ji-kun
180 [68036] = true, -- Durumu
181 [69017] = true, -- Primordius
182 [69427] = true, -- Dark Animus
183 [68078] = true, -- Iron Qon
184 [68904] = true, -- Suen
185 [68905] = true, -- Lu'lin
186 [68397] = true, -- Lei Shen
187
188 -----------------------------------------------------------------------
189 -- Siege of Orgrimmar
190 -----------------------------------------------------------------------
191 [71543] = true, -- Immerseus
192 [71475] = true, -- Rook Stonetoe (Fallen Protectors encounter)
193 [71479] = true, -- He Softfoot (Fallen Protectors encounter)
194 [71480] = true, -- Sun Tenderheart (Fallen Protectors encounter)
195 [71967] = true, -- Norushen (Norushen encounter)
196 [72276] = true, -- Amalgam of Corruption (Norushen encounter)
197 [71734] = true, -- Sha of Pride
198 [72249] = true, -- Galakras
199 [71466] = true, -- Iron Juggernaut
200 [71858] = true, -- Wavebinder Kardris (Kor'kron Dark Shaman encounter)
201 [71859] = true, -- Earthbreaker Haromm (Kor'kron Dark Shaman encounter)
202 [71515] = true, -- General Nazgrim
203 [71454] = true, -- Malkorok
204 [71889] = true, -- Secured Stockpile of Pandaren Spoils (Spoils of Pandaria encounter)
205 [71529] = true, -- Thok the Bloodthirsty
206 [71504] = true, -- Siegecrafter Blackfuse
207 [71152] = true, -- Skeer the Bloodseeker (Paragons of the Klaxxi encounter)
208 [71153] = true, -- Hisek the Swarmkeeper (Paragons of the Klaxxi encounter)
209 [71154] = true, -- Ka'roz the Locust (Paragons of the Klaxxi encounter)
210 [71155] = true, -- Korven the Prime (Paragons of the Klaxxi encounter)
211 [71156] = true, -- Kaz'tik the Manipulator (Paragons of the Klaxxi encounter)
212 [71157] = true, -- Xaril the Poisoned Mind (Paragons of the Klaxxi encounter)
213 [71158] = true, -- Rik'kal the Dissector (Paragons of the Klaxxi encounter)
214 [71160] = true, -- Iyyokuk the Lucid (Paragons of the Klaxxi encounter)
215 [71161] = true, -- Kil'ruk the Wind-Reaver (Paragons of the Klaxxi encounter)
216 [71865] = true, -- Garrosh Hellscream
217 }
218
219
220 private.WORLD_BOSS_IDS = {
221 [60491] = true, -- Sha of Anger
222 [62346] = true, -- Galleon
223 [69099] = true, -- Nalak
224 [69161] = true, -- Oondasta
225 [71952] = true, -- Chi-Ji
226 [71953] = true, -- Xuen
227 [71954] = true, -- Niuzao
228 [71955] = true, -- Yu'lon
229 [72057] = true, -- Ordos
230 }
231
232
233 private.RAID_BOSS_BONUS_SPELL_ID_TO_NPC_ID_MAP = {
234 -----------------------------------------------------------------------
235 -- Mogu'shan Vaults
236 -----------------------------------------------------------------------
237 [125144] = 59915, -- Stone Guard Bonus (Jasper Guardian)
238 [132189] = 60009, -- Feng the Accursed Bonus (Feng the Accursed)
239 [132190] = 60143, -- Gara'jal the Spiritbinder Bonus (Gara'jal the Spiritbinder)
240 [132191] = 60709, -- Spirit Kings Bonus (Qiang the Merciless)
241 [132192] = 60410, -- Elegon Bonus (Elegon)
242 [132193] = 60399, -- Will of the Emperor Bonus (Qin-xi)
243
244 -----------------------------------------------------------------------
245 -- Terrace of Endless Spring
246 -----------------------------------------------------------------------
247 [132200] = 60583, -- Protectors of the Endless Bonus (Protector Kaolan)
248 [132204] = 60583, -- Protectors of the Endless (Elite) Bonus (Protector Kaolan)
249 [132201] = 62442, -- Tsulong Bonus (Tsulong)
250 [132202] = 62983, -- Lei Shi Bonus (Lei Shi)
251 [132203] = 60999, -- Sha of Fear Bonus (Sha of Fear)
252
253 -----------------------------------------------------------------------
254 -- Heart of Fear
255 -----------------------------------------------------------------------
256 [132194] = 62980, -- Imperial Vizier Zor'lok Bonus (Imperial Vizier Zor'lok)
257 [132195] = 62543, -- Blade Lord Tay'ak Bonus (Blade Lord Ta'yak)
258 [132196] = 62164, -- Garalon Bonus (Garalon)
259 [132197] = 62397, -- Wind Lord Mel'jarak Bonus (Wind Lord Mel'jarak)
260 [132198] = 62511, -- Amber-Shaper Un'sok Bonus (Amber-Shaper Un'sok)
261 [132199] = 62837, -- Grand Empress Shek'zeer Bonus (Grand Empress Shek'zeer)
262
263 -----------------------------------------------------------------------
264 -- Throne of Thunder
265 -----------------------------------------------------------------------
266 [139674] = 69465, -- Jin'rokh the Breaker Bonus (Jin'rokh the Breaker)
267 [139677] = 68476, -- Horridon Bonus (Horridon)
268 [139679] = 69078, -- Zandalari Troll Council Bonus (Sul the Sandcrawler)
269 [139680] = 67977, -- Tortos Bonus (Tortos)
270 [139682] = 68065, -- Magaera Bonus (Megaera)
271 [139684] = 69712, -- Ji'kun, the Ancient Mother Bonus (Ji-Kun)
272 [139686] = 68036, -- Durumu the Forgotten Bonus (Durumu the Forgotten)
273 [139687] = 69017, -- Primordious Bonus (Primordius)
274 [139688] = 69427, -- Dark Animus Bonus (Dark Animus)
275 [139689] = 68078, -- Iron Qon Bonus (Iron Qon)
276 [139690] = 68904, -- The Empyreal Queens Bonus (Suen)
277 [139691] = 68397, -- Lei Shen, The Thunder King Bonus (Lei Shen)
278 [139692] = 69473, -- Ra-den Bonus (Ra-den)
279
280 -----------------------------------------------------------------------
281 -- Siege of Orgrimmar
282 -----------------------------------------------------------------------
283 [145909] = 71543, -- Immerseus Bonus (Immerseus)
284 [145910] = 71475, -- Fallen Protectors Bonus (Rook Stonetoe)
285 [145911] = 72276, -- Norushen Bonus (Amalgam of Corruption)
286 [145912] = 71734, -- Sha of Pride Bonus (Sha of Pride)
287 [145913] = 72249, -- Galakras Bonus (Galakras)
288 [145914] = 71466, -- Iron Juggernaut Bonus (Iron Juggernaut)
289 [145915] = 71859, -- Dark Shaman Bonus (Earthbreaker Haromm)
290 [145916] = 71515, -- General Nazgrim Bonus (General Nazgrim)
291 [145917] = 71454, -- Malkorok Bonus (Malkorok)
292 [145919] = 71889, -- Spoils of Pandaria Bonus (Secured Stockpile of Pandaren Spoils)
293 [145920] = 71529, -- Thok the Bloodthirsty Bonus (Thok the Bloodthirsty)
294 [145918] = 71504, -- Siegecrafter Blackfuse Bonus (Siegecrafter Blackfuse)
295 [145921] = 71161, -- Klaxxi Paragons Bonus (Kil'ruk the Wind-Reaver)
296 [145922] = 71865, -- Garrosh Hellscream Bonus (Garrosh Hellscream)
297 }
298
299 private.WORLD_BOSS_BONUS_SPELL_ID_TO_NPC_ID_MAP = {
300 [132205] = 60491, -- Sha of Anger Bonus (Sha of Anger)
301 [132206] = 62346, -- Galleon Bonus (Galleon)
302 [136381] = 69099, -- Nalak Bonus (Nalak)
303 [137554] = 69161, -- Oondasta Bonus (Oondasta)
304 [148317] = 71952, -- Celestials Bonus (Chi-Ji)
305 [148316] = 72057, -- Ordos Bonus (Ordos)
306 }