Mercurial > wow > askmrrobot
comparison AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 114:4cd98aa90d78 v53
Small update to crucible export.
| author | yellowfive |
|---|---|
| date | Wed, 04 Oct 2017 01:08:56 -0700 |
| parents | 57c6cac5143c |
| children | bccce18e12cb |
comparison
equal
deleted
inserted
replaced
| 113:406f56dd065b | 114:4cd98aa90d78 |
|---|---|
| 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", 52 | 4 local MAJOR, MINOR = "AskMrRobot-Serializer", 53 |
| 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 |
| 1167 local relicInfo = #artifactInfo.Crucible.Equipped >= i and artifactInfo.Crucible.Equipped[i] | 1167 local relicInfo = #artifactInfo.Crucible.Equipped >= i and artifactInfo.Crucible.Equipped[i] |
| 1168 if relicInfo then | 1168 if relicInfo then |
| 1169 prevPowerId = serializeCrucibleInfo(crucibleinfos, relicInfo, i, prevPowerId) | 1169 prevPowerId = serializeCrucibleInfo(crucibleinfos, relicInfo, i, prevPowerId) |
| 1170 end | 1170 end |
| 1171 end | 1171 end |
| 1172 for k,relicInfo in pairs(artifactInfo.Crucible.Inventory) do | 1172 if artifactInfo.Crucible.Previewed then |
| 1173 if relicInfo then | 1173 for k,relicInfo in pairs(artifactInfo.Crucible.Previewed) do |
| 1174 prevPowerId = serializeCrucibleInfo(crucibleinfos, relicInfo, 4, prevPowerId) | 1174 if relicInfo then |
| 1175 prevPowerId = serializeCrucibleInfo(crucibleinfos, relicInfo, 4, prevPowerId) | |
| 1176 end | |
| 1175 end | 1177 end |
| 1176 end | 1178 end |
| 1177 end | 1179 end |
| 1178 | 1180 |
| 1179 table.insert(fields, toCompressedNumberList(powerids)) | 1181 table.insert(fields, toCompressedNumberList(powerids)) |
