Mercurial > wow > askmrrobot
diff AskMrRobot-Serializer/AskMrRobot-Serializer.lua @ 197:23b740b4c93a v96
Added Great Vault export.
author | Yellowfive |
---|---|
date | Thu, 17 Dec 2020 11:57:06 -0600 |
parents | 4ccc9ff6e824 |
children | 6e8838b231d4 |
line wrap: on
line diff
--- a/AskMrRobot-Serializer/AskMrRobot-Serializer.lua Tue Nov 24 16:20:29 2020 -0600 +++ b/AskMrRobot-Serializer/AskMrRobot-Serializer.lua Thu Dec 17 11:57:06 2020 -0600 @@ -1,6 +1,6 @@ -- AskMrRobot-Serializer will serialize and communicate character data between users. -local MAJOR, MINOR = "AskMrRobot-Serializer", 95 +local MAJOR, MINOR = "AskMrRobot-Serializer", 96 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not Amr then return end -- already loaded by something else @@ -820,7 +820,18 @@ end table.insert(fields, ".inv") - appendItemsToExport(fields, itemObjects) + appendItemsToExport(fields, itemObjects) + + if data.GreatVaultItems then + itemObjects = {} + for i, itemData in ipairs(data.GreatVaultItems) do + if itemData then + table.insert(itemObjects, itemData) + end + end + table.insert(fields, ".gv") + appendItemsToExport(fields, itemObjects) + end end return "$" .. table.concat(fields, ";") .. "$"