comparison AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 89:6bbe64d587b4 v42

Improved artifact/relic reading, gear display. Now creates equipment manager sets when you use button or command to equip a set.
author yellowfive
date Sun, 18 Sep 2016 21:24:08 -0700
parents fe0bc2f32851
children b8e9664d3229
comparison
equal deleted inserted replaced
88:b3ff336fad77 89:6bbe64d587b4
1 -- AskMrRobot-Serializer will serialize and communicate character data between users. 1 -- AskMrRobot-Serializer will serialize and communicate character data between users.
2 -- This is used primarily to associate character information to logs uploaded to askmrrobot.com. 2 -- This is used primarily to associate character information to logs uploaded to askmrrobot.com.
3 3
4 local MAJOR, MINOR = "AskMrRobot-Serializer", 41 4 local MAJOR, MINOR = "AskMrRobot-Serializer", 42
5 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) 5 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
6 6
7 if not Amr then return end -- already loaded by something else 7 if not Amr then return end -- already loaded by something else
8 8
9 -- event and comm used for player snapshotting on entering combat 9 -- event and comm used for player snapshotting on entering combat
171 --[1279] = true, 171 --[1279] = true,
172 --[1358] = true, 172 --[1358] = true,
173 [1228] = true, 173 [1228] = true,
174 [1205] = true, 174 [1205] = true,
175 [1448] = true 175 [1448] = true
176 }
177
178 -- just to make life easier, maps ID of each artifact weapon to the spec number (1-4)
179 Amr.ArtifactIdToSpecNumber = {
180 [128402] = 1, -- DK
181 [128292] = 2,
182 [128403] = 3,
183 [127829] = 1, -- DH
184 [128832] = 2,
185 [128858] = 1, -- Druid
186 [128860] = 2,
187 [128821] = 3,
188 [128306] = 4,
189 [128861] = 1, -- Hunter
190 [128826] = 2,
191 [128808] = 3,
192 [127857] = 1, -- Mage
193 [128820] = 2,
194 [128862] = 3,
195 [128938] = 1, -- Monk
196 [128937] = 2,
197 [128940] = 3,
198 [128823] = 1, -- Paladin
199 [128866] = 2,
200 [120978] = 3,
201 [128868] = 1, -- Priest
202 [128825] = 2,
203 [128827] = 3,
204 [128870] = 1, -- Rogue
205 [128872] = 2,
206 [128476] = 3,
207 [128935] = 1, -- Shaman
208 [128819] = 2,
209 [128911] = 3,
210 [128942] = 1, -- Warlock
211 [128943] = 2,
212 [128941] = 3,
213 [128910] = 1, -- Warrior
214 [128908] = 2,
215 [128289] = 3,
216
217 --[128293] = 2, -- Frost OH
218 --[127830] = 1, -- Havoc OH
219 --[128831] = 2, -- Vengeance OH
220 --[128859] = 2, -- Feral OH
221 --[128822] = 3, -- Guardian OH
222 --[133959] = 2, -- Fire OH
223 --[133948] = 3, -- Windwalker OH
224 --[128867] = 2, -- Prot MH
225 --[133958] = 3, -- Shadow OH
226 --[128869] = 1, -- Rogue OH's
227 --[134552] = 2,
228 --[128479] = 3,
229 --[128936] = 1, -- Shaman OH's
230 --[128873] = 2,
231 --[128934] = 3,
232 --[137246] = 2, -- Demo MH
233 --[134553] = 2, -- Fury OH
234 --[128288] = 3 -- Prot MH
176 } 235 }
177 236
178 -- IDs of set tokens that we would care about in a player's inventory 237 -- IDs of set tokens that we would care about in a player's inventory
179 Amr.SetTokenIds = { 238 Amr.SetTokenIds = {
180 [127970] = true, 239 [127970] = true,