From 4347c8ed85c13d7fdc9d30cc65c2de1e7fa1aaa5 Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Tue, 16 Sep 2025 21:28:21 +1000 Subject: [PATCH] Fix +1 Corrupted gems not importing with the correct level The +1 corruption was in the next block after the gem level in the API The block does not have a name so have to do the messy way of expecting it to be 2 blocks after the level block --- src/Classes/ImportTab.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Classes/ImportTab.lua b/src/Classes/ImportTab.lua index 860135c459..8bc98584ef 100644 --- a/src/Classes/ImportTab.lua +++ b/src/Classes/ImportTab.lua @@ -756,6 +756,9 @@ function ImportTabClass:ImportItemsAndSkills(charData) else gemInstance.level = tonumber(property.values[1][1]:match("%d+")) end + if skillData.properties[_ + 2] and skillData.properties[_ + 2].values[1][1]:match("(%d+) Level[s]? from Corruption") then + gemInstance.level = gemInstance.level + tonumber(skillData.properties[_ + 2].values[1][1]:match("(%d+) Level[s]? from Corruption")) + end elseif escapeGGGString(property.name) == "Quality" then gemInstance.quality = tonumber(property.values[1][1]:match("%d+")) end