Skip to content

Commit 647f465

Browse files
committed
Update to latest LibTalentTree version
1 parent e8f0dd1 commit 647f465

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

core/IcyVeinsImport.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function IcyVeinsImport:ParseUrl(url)
128128
local specID = tonumber(specIDStream:ExtractValue(self.bitWidthSpecID));
129129
local classID = specID and C_SpecializationInfo.GetClassIDFromSpecID(specID);
130130

131-
local treeID = classID and LibTT:GetClassTreeId(classID);
131+
local treeID = classID and LibTT:GetClassTreeID(classID);
132132

133133
if not classID or not specID or not classString or not specString or not treeID then
134134
return nil;

core/ImportExportV2.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function ImportExport:BuildSerializedSelectedNodesFromImportString(importText, e
7575
return false, "Wrong class";
7676
end
7777

78-
local treeID = LibTT:GetClassTreeId(classIDFromString);
78+
local treeID = LibTT:GetClassTreeID(classIDFromString);
7979
if not treeID or not self:IsHashValid(treeHash, treeID) then
8080
return false, LOADOUT_ERROR_TREE_CHANGED;
8181
end
@@ -92,9 +92,9 @@ function ImportExport:BuildSerializedSelectedNodesFromImportString(importText, e
9292
for i, nodeID in pairs(nodes) do
9393
local indexInfo = loadoutContent[i];
9494
if indexInfo.isNodePurchased then
95-
local nodeInfo = LibTT:GetNodeInfo(treeID, nodeID);
95+
local nodeInfo = LibTT:GetNodeInfo(nodeID);
9696
local entryID = indexInfo.isChoiceNode and nodeInfo.entryIDs[indexInfo.choiceNodeSelection] or nodeInfo.entryIDs[1];
97-
local entryInfo = LibTT:GetEntryInfo(treeID, entryID);
97+
local entryInfo = LibTT:GetEntryInfo(entryID);
9898
if entryInfo and entryInfo.definitionID then
9999
local definitionInfo = C_Traits.GetDefinitionInfo(entryInfo.definitionID);
100100
if definitionInfo and definitionInfo.spellID then
@@ -363,7 +363,7 @@ end
363363
--- @public
364364
function ImportExport:ExportLoadoutToString(classID, specID, deserializedLoadout, levelingBuild)
365365
local exportStream = ExportUtil.MakeExportDataStream();
366-
local treeID = LibTT:GetClassTreeId(classID);
366+
local treeID = LibTT:GetClassTreeID(classID);
367367

368368
-- write header
369369
exportStream:AddValue(BIT_WIDTH_HEADER_VERSION, LOADOUT_SERIALIZATION_VERSION);
@@ -439,7 +439,7 @@ function ImportExport:WriteLoadoutContent(exportStream, deserialized, treeID, cl
439439
exportStream:AddValue(1, info and 1 or 0); -- isPurchased
440440
end
441441
if info then
442-
local nodeInfo = LibTT:GetNodeInfo(treeID, nodeID);
442+
local nodeInfo = LibTT:GetNodeInfo(nodeID);
443443
local isPartiallyRanked = nodeInfo and nodeInfo.maxRanks ~= info.rank
444444
exportStream:AddValue(1, isPartiallyRanked and 1 or 0);
445445
if isPartiallyRanked then
@@ -481,7 +481,7 @@ function ImportExport:WriteLevelingBuildContent(exportStream, treeID, deserializ
481481
for _, nodeID in ipairs(treeNodes) do
482482
local info = deserialized[nodeID];
483483
if info and info.rank > 0 then
484-
local nodeInfo = LibTT:GetNodeInfo(treeID, nodeID);
484+
local nodeInfo = LibTT:GetNodeInfo(nodeID);
485485
if nodeInfo.isSubTreeSelection then
486486
exportStream:AddValue(LEVELING_BIT_WIDTH_DATA, HERO_SELECTION_NODE_LEVEL);
487487
else

core/TalentLoadoutManager.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,13 @@ function TLM:GetNodeAndEntryBySpellID(spellID, classID, specID)
344344
self.cache.spellNodeMap[classID] = self.cache.spellNodeMap[classID] or {};
345345
self.cache.spellNodeMap[classID][specID] = self.cache.spellNodeMap[classID][specID] or {};
346346

347-
local treeID = LibTT:GetClassTreeId(classID);
347+
local treeID = LibTT:GetClassTreeID(classID);
348348
local nodes = self:GetTreeNodes(treeID);
349349
for _, nodeID in pairs(nodes) do
350-
local nodeInfo = LibTT:IsNodeVisibleForSpec(specID, nodeID) and LibTT:GetNodeInfo(treeID, nodeID);
350+
local nodeInfo = LibTT:IsNodeVisibleForSpec(specID, nodeID) and LibTT:GetNodeInfo(nodeID);
351351
if nodeInfo and nodeInfo.entryIDs then
352352
for _, entryID in pairs(nodeInfo.entryIDs) do
353-
local entryInfo = LibTT:GetEntryInfo(treeID, entryID);
353+
local entryInfo = LibTT:GetEntryInfo(entryID);
354354
if entryInfo and entryInfo.definitionID then
355355
local definitionInfo = C_Traits.GetDefinitionInfo(entryInfo.definitionID);
356356
if definitionInfo.spellID then

0 commit comments

Comments
 (0)