From 38771b643e389a86c6dab1afab9be343d5412183 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Fri, 28 Mar 2025 16:19:21 +0100 Subject: [PATCH] Add an alltalents patch --- cookother.yml | 108 +++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 89 insertions(+), 19 deletions(-) diff --git a/cookother.yml b/cookother.yml index 42d6e312..9a333255 100644 --- a/cookother.yml +++ b/cookother.yml @@ -9,7 +9,7 @@ slotsperrow = slotsperrow + 1 end files: - - '**/*.xml' + - "**/*.xml" - name: containerscontainable regex: (?-s)Containable!anyitems="([^"]+)" @@ -21,7 +21,7 @@ end local gurantee = {"ammobox", "deepdiving", "smallitem", "mediumitem", "largeitem"} local has = {} - + local items = strsplit(s1, ",") for i, item in pairs(items) do for _, g in pairs(gurantee) do @@ -30,55 +30,132 @@ end end end - + for _, g in pairs(gurantee) do if not has[g] then s1 = s1 .. "," .. g end end files: - - '**/*.xml' - + - "**/*.xml" + - name: excludeditems regex: (!any) + lua: | + -- group by job, tier, identifier + local talents = {} + local numtalents = 0 + local lines = strsplit(s1, "\n") + local cookedlines = {} + + local currentTier = 0 + local currentjob = nil + -- print(#lines) + for i, line in pairs(lines) do + if line:match(" 0 and line:find("" + alltalents[#alltalents + 1] = currentIndent .. talent + end + end + end + end + s1 = table.concat(alltalents, "\n") + files: + - "**/TalentTrees.xml" - name: talenttrees regex: (!any) @@ -104,11 +181,4 @@ local optionsElement = optionsElement:gsub("