# HG changeset patch # User yellowfive # Date 1490908136 25200 # Node ID 917ac27213d12b3ef27c3c2c215c3b9f2f9cc5b4 # Parent 8b8a5b768d1801d44a254940f7815a5ee6762b42 Update to equipment set creation to use new 7.2 API. diff -r 8b8a5b768d18 -r 917ac27213d1 AskMrRobot-Serializer/AskMrRobot-Serializer.lua --- a/AskMrRobot-Serializer/AskMrRobot-Serializer.lua Tue Mar 28 16:10:12 2017 -0700 +++ b/AskMrRobot-Serializer/AskMrRobot-Serializer.lua Thu Mar 30 14:08:56 2017 -0700 @@ -1,7 +1,7 @@ -- AskMrRobot-Serializer will serialize and communicate character data between users. -- This is used primarily to associate character information to logs uploaded to askmrrobot.com. -local MAJOR, MINOR = "AskMrRobot-Serializer", 49 +local MAJOR, MINOR = "AskMrRobot-Serializer", 50 local Amr, oldminor = LibStub:NewLibrary(MAJOR, MINOR) if not Amr then return end -- already loaded by something else diff -r 8b8a5b768d18 -r 917ac27213d1 AskMrRobot.toc --- a/AskMrRobot.toc Tue Mar 28 16:10:12 2017 -0700 +++ b/AskMrRobot.toc Thu Mar 30 14:08:56 2017 -0700 @@ -1,7 +1,7 @@ ## Interface: 70200 ## Title: Ask Mr. Robot ## Author: Team Robot, Inc. -## Version: 49 +## Version: 50 ## Notes: Gear import/export, combat logging, and more. ## URL: www.askmrrobot.com ## SavedVariables: AskMrRobotDb3 diff -r 8b8a5b768d18 -r 917ac27213d1 Gear.lua --- a/Gear.lua Tue Mar 28 16:10:12 2017 -0700 +++ b/Gear.lua Thu Mar 30 14:08:56 2017 -0700 @@ -483,7 +483,13 @@ end if item then Amr.GetItemInfo(item.id, function(customArg, name, link, quality, iLevel, reqLevel, class, subclass, maxStack, equipSlot, texture) - SaveEquipmentSet("AMR " .. specName, texture) + local setname = "AMR " .. specName + local setid = C_EquipmentSet.GetEquipmentSetID(setname) + if setid then + C_EquipmentSet.SaveEquipmentSet(setid, texture) + else + C_EquipmentSet.CreateEquipmentSet(setname, texture) + end end) end end