mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -2,18 +2,22 @@ local alpha_order = {'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm'}
|
||||
local items = require 'config'
|
||||
local main = {}
|
||||
|
||||
local function tint_apply(item, tier)
|
||||
item.tint = items['tint'][tier]
|
||||
end
|
||||
|
||||
local function tint_handle(item, tier, tl)
|
||||
for _, ve in pairs(tl) do
|
||||
if item[ve] then
|
||||
for _, tc in pairs({'layers', 'sheets', 'structure', 'frames'}) do
|
||||
if item[ve][tc] and type(item[ve][tc]) == 'table' then
|
||||
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
|
||||
|
||||
item[ve].tint = items['tint'][tier]
|
||||
tint_apply(item[ve], tier)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user