Skip to content

Commit eab4cf5

Browse files
LocalIdentityLocalIdentity
andauthored
Fix +1 Corrupted gems not importing with the correct level (#1398)
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 Co-authored-by: LocalIdentity <[email protected]>
1 parent f81bb64 commit eab4cf5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Classes/ImportTab.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,9 @@ function ImportTabClass:ImportItemsAndSkills(charData)
756756
else
757757
gemInstance.level = tonumber(property.values[1][1]:match("%d+"))
758758
end
759+
if skillData.properties[_ + 2] and skillData.properties[_ + 2].values[1][1]:match("(%d+) Level[s]? from Corruption") then
760+
gemInstance.level = gemInstance.level + tonumber(skillData.properties[_ + 2].values[1][1]:match("(%d+) Level[s]? from Corruption"))
761+
end
759762
elseif escapeGGGString(property.name) == "Quality" then
760763
gemInstance.quality = tonumber(property.values[1][1]:match("%d+"))
761764
end

0 commit comments

Comments
 (0)