Add deconstruction amounter cooker
This commit is contained in:
@@ -191,3 +191,18 @@
|
||||
end
|
||||
files:
|
||||
- "Content/Items/**/*.xml"
|
||||
|
||||
- name: deconstruction
|
||||
regex: <Deconstruct!any>(!any)</Deconstruct>
|
||||
lua: |
|
||||
local lines = strsplit(s1, "\n")
|
||||
local newLines = {}
|
||||
for _, line in pairs(lines) do
|
||||
if not line == "" then
|
||||
newLines[#newLines + 1] = line
|
||||
newLines[#newLines + 1] = line
|
||||
end
|
||||
end
|
||||
s1 = table.concat(newLines, "\n")
|
||||
files:
|
||||
- "Content/Items/**/*.xml"
|
||||
|
Reference in New Issue
Block a user