Mercurial > wow > askmrrobot
comparison AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 129:d9a059484b22 v60
Several bug fixes for 8.0.
author | yellowfive |
---|---|
date | Wed, 18 Jul 2018 13:08:22 -0700 |
parents | 65c285394049 |
children | 318c93e0cd6b |
comparison
equal
deleted
inserted
replaced
128:b16e1f4d100e | 129:d9a059484b22 |
---|---|
1 -- AskMrRobot-Serializer will serialize and communicate character data between users. | 1 -- AskMrRobot-Serializer will serialize and communicate character data between users. |
2 | 2 |
3 local MAJOR, MINOR = "AskMrRobot-Serializer", 59 | 3 local MAJOR, MINOR = "AskMrRobot-Serializer", 60 |
4 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) | 4 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) |
5 | 5 |
6 if not Amr then return end -- already loaded by something else | 6 if not Amr then return end -- already loaded by something else |
7 | 7 |
8 -- event and comm used for player snapshotting on entering combat | 8 -- event and comm used for player snapshotting on entering combat |
226 if numBonuses then | 226 if numBonuses then |
227 if numBonuses > 0 then | 227 if numBonuses > 0 then |
228 item.relicBonusIds[1] = readBonusIdList(parts, 17 + offset, 16 + offset + numBonuses) | 228 item.relicBonusIds[1] = readBonusIdList(parts, 17 + offset, 16 + offset + numBonuses) |
229 end | 229 end |
230 | 230 |
231 offset= offset + numBonuses | 231 offset = offset + numBonuses |
232 if #parts > 17 + offset then | 232 if #parts > 17 + offset then |
233 numBonuses = tonumber(parts[17 + offset]) | 233 numBonuses = tonumber(parts[17 + offset]) |
234 if numBonuses > 0 then | 234 if numBonuses then |
235 item.relicBonusIds[2] = readBonusIdList(parts, 18 + offset, 17 + offset + numBonuses) | 235 if numBonuses > 0 then |
236 item.relicBonusIds[2] = readBonusIdList(parts, 18 + offset, 17 + offset + numBonuses) | |
237 end | |
238 | |
239 offset= offset + numBonuses | |
240 if #parts > 18 + offset then | |
241 numBonuses = tonumber(parts[18 + offset]) | |
242 if numBonuses then | |
243 if numBonuses > 0 then | |
244 item.relicBonusIds[3] = readBonusIdList(parts, 19 + offset, 18 + offset + numBonuses) | |
245 end | |
246 end | |
247 end | |
236 end | 248 end |
237 | |
238 offset= offset + numBonuses | |
239 if #parts > 18 + offset then | |
240 numBonuses = tonumber(parts[18 + offset]) | |
241 if numBonuses > 0 then | |
242 item.relicBonusIds[3] = readBonusIdList(parts, 19 + offset, 18 + offset + numBonuses) | |
243 end | |
244 end | |
245 end | 249 end |
246 end | 250 end |
247 end | 251 end |
248 | 252 |
249 return item | 253 return item |