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,25 +2,10 @@ 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 entity_tint = {
|
|
||||||
'picture',
|
|
||||||
'pictures',
|
|
||||||
'animation',
|
|
||||||
'horizontal_animation',
|
|
||||||
'vertical_animation',
|
|
||||||
'structure',
|
|
||||||
'integration_patch'
|
|
||||||
}
|
|
||||||
|
|
||||||
local tint_handle_c = {
|
|
||||||
'layers',
|
|
||||||
'sheets'
|
|
||||||
}
|
|
||||||
|
|
||||||
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(tint_handle_c) do
|
for _, tc in pairs({'layers', 'sheets'}) do
|
||||||
if item[ve][tc] and item[ve][tc][1] then
|
if item[ve][tc] and item[ve][tc][1] then
|
||||||
item[ve][tc][1].tint = items['tint'][tier]
|
item[ve][tc][1].tint = items['tint'][tier]
|
||||||
|
|
||||||
@@ -268,7 +253,7 @@ function main.EEE(source, tier)
|
|||||||
item.type = 'assembling-machine'
|
item.type = 'assembling-machine'
|
||||||
end
|
end
|
||||||
|
|
||||||
tint_handle(item, tier, entity_tint)
|
tint_handle(item, tier, {'picture', 'pictures', 'animation', 'horizontal_animation', 'vertical_animation', 'structure', 'integration_patch'})
|
||||||
|
|
||||||
if item.idle_animation and item.idle_animation.layers then
|
if item.idle_animation and item.idle_animation.layers then
|
||||||
local i = 1
|
local i = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user