mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -5,7 +5,7 @@ local main = {}
|
|||||||
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'}) 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]
|
item[ve][tc][i].tint = items['tint'][tier]
|
||||||
@@ -183,10 +183,16 @@ function main.EEE(source, tier)
|
|||||||
item.radius = item.radius + (1 * (tier - source.min + 1))
|
item.radius = item.radius + (1 * (tier - source.min + 1))
|
||||||
end
|
end
|
||||||
|
|
||||||
tint_handle(item, tier, {'picture', 'pictures', 'frames', 'working_visualisations', 'animation', 'horizontal_animation', 'vertical_animation', 'structure', 'integration_patch', 'graphics_set'})
|
tint_handle(item, tier, {'picture', 'pictures', 'frames', 'working_visualisations', 'animation', 'horizontal_animation', 'vertical_animation', 'structure', 'integration_patch', })
|
||||||
|
|
||||||
if item.graphics_set and item.graphics_set.working_visualisations and item.graphics_set.working_visualisations.animation then
|
for _, v in pairs({'graphics_set', 'graphics_set_flipped'}) do
|
||||||
tint_handle(item.graphics_set.working_visualisations.animation, tier, {'frames'})
|
if item[v] then
|
||||||
|
tint_handle(item[v], tier, {'animation', 'idle_animation', 'frozen_patch'})
|
||||||
|
|
||||||
|
if item[v].working_visualisations then
|
||||||
|
tint_handle(item[v].working_visualisations[v2], tier, {'north_animation', 'east_animation', 'south_animation', 'west_animation', 'animation'})
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if item.idle_animation and item.idle_animation.layers then
|
if item.idle_animation and item.idle_animation.layers then
|
||||||
|
|||||||
Reference in New Issue
Block a user