Skip to content

Commit 5369000

Browse files
committed
Update to latest LibTalentTree version
1 parent 22c6ff3 commit 5369000

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

ImportExportUtilV2.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function ImportExportUtil:GetLoadoutExportString(talentsTab, configIDOverride)
5454
local exportStream = ExportUtil.MakeExportDataStream();
5555
local configID = configIDOverride or talentsTab:GetConfigID();
5656
local currentSpecID = talentsTab:GetSpecID();
57-
local treeID = LTT:GetClassTreeId(talentsTab:GetClassID())
57+
local treeID = LTT:GetClassTreeID(talentsTab:GetClassID())
5858

5959
-- write header
6060
exportStream:AddValue(self.bitWidthHeaderVersion, LOADOUT_SERIALIZATION_VERSION);
@@ -86,7 +86,7 @@ function ImportExportUtil:ParseTalentBuildString(importString)
8686
return false, LOADOUT_ERROR_SERIALIZATION_VERSION_MISMATCH;
8787
end
8888

89-
local treeID = LTT:GetClassTreeId(classIDFromString);
89+
local treeID = LTT:GetClassTreeID(classIDFromString);
9090
if not self:IsHashValid(treeHash, treeID) then
9191
return false, LOADOUT_ERROR_TREE_CHANGED;
9292
end

modules/clickableExportStringsInChat.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ function Module:ParseImportString(importText)
341341
return false;
342342
end
343343

344-
local treeID = specID and Util.specToClassMap[specID] and LTT:GetClassTreeId(Util.specToClassMap[specID]);
344+
local treeID = specID and Util.specToClassMap[specID] and LTT:GetClassTreeID(Util.specToClassMap[specID]);
345345
if (not treeID) then
346346
self:DebugPrint('Invalid tree ID');
347347
return false;
@@ -423,7 +423,7 @@ function Module:ValidateLoadoutContent(importStream, treeID)
423423
return false
424424
end
425425

426-
local nodeInfo = LTT:GetLibNodeInfo(treeID, treeNodes[i]);
426+
local nodeInfo = LTT:GetLibNodeInfo(treeNodes[i]);
427427
local isClassNode = nodeInfo and nodeInfo.isClassNode;
428428
local pointsSpent = nodeInfo and nodeInfo.maxRanks or 1;
429429

modules/miniTreeInTooltip.lua

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ function Module:AddBuildToTooltip(tooltip, exportString)
403403
end
404404
local specID = falseOrSpecID;
405405
local classID = errorOrClassID;
406-
local treeID = LTT:GetClassTreeId(classID);
407406

408407
local calculateDiff =
409408
(self.db.displayStyle == DISPLAY_STYLE_SIMPLE_WITH_DEFAULT_DIFF or self.db.displayStyle == DISPLAY_STYLE_SIMPLE_WITH_CUSTOM_DIFF)
@@ -426,9 +425,9 @@ function Module:AddBuildToTooltip(tooltip, exportString)
426425
for _, nodeSelectionInfo in ipairs(nilOrLoadoutInfo) do
427426
local nodeID = nodeSelectionInfo.nodeID;
428427
if LTT:IsNodeVisibleForSpec(specID, nodeSelectionInfo.nodeID) then
429-
local column, row = LTT:GetNodeGridPosition(treeID, nodeID);
428+
local column, row = LTT:GetNodeGridPosition(nodeID);
430429
if column and row then
431-
local nodeInfo = LTT:GetNodeInfo(treeID, nodeID);
430+
local nodeInfo = LTT:GetNodeInfo(nodeID);
432431
if nodeInfo.subTreeID and subTreeMap[nodeInfo.subTreeID] then
433432
row = row + (subTreeMap[nodeInfo.subTreeID] - 1) * 5;
434433
end
@@ -494,7 +493,7 @@ function Module:AddBuildToTooltip(tooltip, exportString)
494493
end
495494
end
496495
for nodeID, dot in pairs(dots) do
497-
local edges = LTT:GetNodeEdges(treeID, nodeID);
496+
local edges = LTT:GetNodeEdges(nodeID);
498497
for _, edge in pairs(edges or {}) do
499498
local targetDot = dots[edge.targetNode];
500499
if targetDot then

0 commit comments

Comments
 (0)