comparison AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 104:5bacf5c7c66d v48

trial of valor auto-logging
author yellowfive
date Wed, 16 Nov 2016 00:02:53 -0800
parents ed7ffc8d9936
children e635cd648e01
comparison
equal deleted inserted replaced
103:ed7ffc8d9936 104:5bacf5c7c66d
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", 47 4 local MAJOR, MINOR = "AskMrRobot-Serializer", 48
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
146 ["Horde"] = 2 146 ["Horde"] = 2
147 } 147 }
148 148
149 Amr.InstanceIds = { 149 Amr.InstanceIds = {
150 EmeraldNightmare = 1520, 150 EmeraldNightmare = 1520,
151 Nighthold = 1530 151 Nighthold = 1530,
152 TrialOfValor = 1648
152 } 153 }
153 154
154 -- instances that AskMrRobot currently supports logging for 155 -- instances that AskMrRobot currently supports logging for
155 Amr.SupportedInstanceIds = { 156 Amr.SupportedInstanceIds = {
156 [1520] = true, 157 [1520] = true,
157 [1530] = true 158 [1530] = true,
159 [1648] = true
158 } 160 }
159 161
160 -- just to make life easier, maps ID of each artifact weapon to the spec number (1-4) 162 -- just to make life easier, maps ID of each artifact weapon to the spec number (1-4)
161 Amr.ArtifactIdToSpecNumber = { 163 Amr.ArtifactIdToSpecNumber = {
162 [128402] = 1, -- DK 164 [128402] = 1, -- DK