From 8f8f797a739f7bea30476ec8c140a1e6bc5039bb Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 28 Mar 2025 16:33:08 +0100 Subject: [PATCH] Rework alltalents to be more user friendlier --- cookother.yml | 64 ++++++++++++++++++--------------------------------- 1 file changed, 22 insertions(+), 42 deletions(-) diff --git a/cookother.yml b/cookother.yml index 9a333255..674c9467 100644 --- a/cookother.yml +++ b/cookother.yml @@ -90,72 +90,52 @@ - name: alltalents regex: (!any) lua: | - -- group by job, tier, identifier - local talents = {} - local numtalents = 0 + -- group by job + local subtrees = {} local lines = strsplit(s1, "\n") local cookedlines = {} - local currentTier = 0 + local isInSubtree = false local currentjob = nil - -- print(#lines) for i, line in pairs(lines) do if line:match(" 0 and line:find("" - alltalents[#alltalents + 1] = currentIndent .. talent + if currentjob then + for job, subtree in pairs(subtrees) do + alltalents[#alltalents + 1] = table.concat(subtree, "\n") end end end end + s1 = table.concat(alltalents, "\n") files: - - "**/TalentTrees.xml" + - "Content/**/TalentTrees.xml" - name: talenttrees regex: (!any)