This commit is contained in:
2024-10-31 15:27:31 +09:00
parent 9daefb3a62
commit 9f13b550c0

View File

@@ -2,18 +2,22 @@ local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'}
local items = require 'config' local items = require 'config'
local main = {} local main = {}
local function tint_apply(item, tier)
item.tint = items['tint'][tier]
end
local function tint_handle(item, tier, tl) local function tint_handle(item, tier, tl)
for _, ve in pairs(tl) do for _, ve in pairs(tl) do
if item[ve] then if item[ve] then
for _, tc in pairs({'layers', 'sheets', 'structure', 'frames'}) do for _, tc in pairs({'layers', 'sheets', 'structure', 'frames'}) do
if item[ve][tc] and type(item[ve][tc]) == 'table' then if item[ve][tc] and type(item[ve][tc]) == 'table' then
for i=1, #item[ve][tc], 1 do for i=1, #item[ve][tc], 1 do
item[ve][tc][i].tint = items['tint'][tier] tint_apply(item[ve][tc][i], tier)
end end
end end
end end
item[ve].tint = items['tint'][tier] tint_apply(item[ve], tier)
end end
end end
end end