This commit is contained in:
2025-03-28 17:00:32 +01:00
parent efe997b0de
commit b8c3101e72

View File

@@ -88,7 +88,7 @@
- "**/*.xml"
- name: talenttrees
regex: (<TalentOptions!any>!any</TalentOptions>)
regex: (<TalentOptions!any</TalentOptions>)
lua: |
local talentOptions = 0
local lines = strsplit(s1, "\n")
@@ -99,7 +99,7 @@
end
if lines[1]:find("maxchosentalents") then
print("maxchosentalents found, updating")
--print("maxchosentalents found, updating")
local optionsElement = lines[1]
optionsElement = optionsElement:gsub("maxchosentalents=\"%d+\"", "maxchosentalents=\"" .. talentOptions .. "\"")
replacement = s1:gsub(lines[1], optionsElement)
@@ -114,6 +114,7 @@
- "**/TalentTrees.xml"
- name: alltalents
isolate: true
regex: <TalentTrees>(!any)</TalentTrees>
lua: |
-- group by job