Skip to content

Commit 7e5e6b1

Browse files
LocalIdentityLocalIdentity
andauthored
Fix Imported Gem level for skills linked to + gem level supports (#1204)
The level property for gems linked to + gem level supports, already take into account the levels gained by support gems and does not give the raw gem level Instead we take the level from the property after levels as that is the one that has the raw gem level if it exists Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 357bcff commit 7e5e6b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Classes/ImportTab.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,11 @@ function ImportTabClass:ImportItemsAndSkills(charData)
733733
gemInstance.nameSpec = self.build.data.gems[gemId].name
734734
for _, property in pairs(skillData.properties) do
735735
if property.name == "Level" then
736-
gemInstance.level = tonumber(property.values[1][1]:match("%d+"))
736+
if skillData.properties[_ + 1] and skillData.properties[_ + 1].values[1][1]:match("(%d+) Level[s]? from Gem") then
737+
gemInstance.level = tonumber(skillData.properties[_ + 1].values[1][1]:match("(%d+) Level[s]? from Gem"))
738+
else
739+
gemInstance.level = tonumber(property.values[1][1]:match("%d+"))
740+
end
737741
elseif escapeGGGString(property.name) == "Quality" then
738742
gemInstance.quality = tonumber(property.values[1][1]:match("%d+"))
739743
end

0 commit comments

Comments
 (0)