diff --git a/CataReforgeDetection.lua b/CataReforgeDetection.lua index 527fd81..6916a05 100644 --- a/CataReforgeDetection.lua +++ b/CataReforgeDetection.lua @@ -14,7 +14,7 @@ local statIdToStrings = { } -- Add strings without the placeholder. for _, v in pairs(statIdToStrings) do - v.statStringNoVar = v.statString:gsub("%%s", "") + v.statStringNoVar = v.statString:format(".-") end -- Map localised strings to stat IDs. @@ -167,6 +167,8 @@ local function GetItemEnchantText(unit, itemSlot) return "" end +local socketBonus = "^" .. ITEM_SOCKET_BONUS:format("") + ---Parse stats used in reforging and their current value from item tooltip. ---@param unit string ---@param itemSlot integer @@ -183,7 +185,7 @@ local function GetItemCurrentStats(unit, itemSlot, enchantText) local region = regions[i] if region and region:GetObjectType() == "FontString" then local text = region:GetText() - if text and text ~= enchantText then + if text and text ~= enchantText and not text:find(socketBonus) then for statId, v in pairs(statIdToStrings) do local pos = text:find(v.statStringNoVar) if pos then diff --git a/WowSimsExporter-Cata.toc b/WowSimsExporter-Cata.toc index 073d0ac..a07ec8f 100644 --- a/WowSimsExporter-Cata.toc +++ b/WowSimsExporter-Cata.toc @@ -1,4 +1,4 @@ -## Title: WowSimsExporter v@project-version@ |cffff3a03Cataclysm|r +## Title: WowSimsExporter @project-version@ |cffff3a03Cataclysm|r ## Version: @project-version@ ## Author: generalwrex(Natop of Old Blanchy), namreeb, coolmodi(FelixPflaum), riotdog ## Interface: 40400 diff --git a/WowSimsExporter-Vanilla.toc b/WowSimsExporter-Vanilla.toc index 5663da4..ec16e6e 100644 --- a/WowSimsExporter-Vanilla.toc +++ b/WowSimsExporter-Vanilla.toc @@ -1,4 +1,4 @@ -## Title: WowSimsExporter v@project-version@ |cffff8000Classic SoD|r +## Title: WowSimsExporter @project-version@ |cffff8000Classic SoD|r ## Version: @project-version@ ## Author: generalwrex(Natop of Old Blanchy), namreeb, coolmodi(FelixPflaum), riotdog ## Interface: 11500 diff --git a/WowSimsExporter-Wrath.toc b/WowSimsExporter-Wrath.toc index e462dc2..16354af 100644 --- a/WowSimsExporter-Wrath.toc +++ b/WowSimsExporter-Wrath.toc @@ -1,4 +1,4 @@ -## Title: WowSimsExporter v@project-version@ |c0000ffffWOTLK|r +## Title: WowSimsExporter @project-version@ |c0000ffffWOTLK|r ## Version: @project-version@ ## Author: generalwrex(Natop of Old Blanchy), namreeb, coolmodi(FelixPflaum), riotdog ## Interface: 30403 diff --git a/embeds.xml b/embeds.xml index bf5833f..4a134fc 100644 --- a/embeds.xml +++ b/embeds.xml @@ -1,4 +1,5 @@ +