mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-27 11:05:22 +09:00
.
This commit is contained in:
@@ -50,7 +50,7 @@ function main.EEE(source, tier)
|
|||||||
|
|
||||||
item.name = source.name .. '-' .. tier
|
item.name = source.name .. '-' .. tier
|
||||||
item.minable.result = item.name
|
item.minable.result = item.name
|
||||||
item.max_health = item.max_health * (tier - source.min + 1)
|
item.max_health = item.max_health * (tier - source.min + 2)
|
||||||
|
|
||||||
if (tier < source.max) then
|
if (tier < source.max) then
|
||||||
item.next_upgrade = source.name .. '-' .. (tier + 1)
|
item.next_upgrade = source.name .. '-' .. (tier + 1)
|
||||||
@@ -197,6 +197,7 @@ function main.EEE(source, tier)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(item[ve]) do
|
for _, v in pairs(item[ve]) do
|
||||||
|
if type(v) == 'table' then
|
||||||
if v.layers then
|
if v.layers then
|
||||||
if v.layers[1] then
|
if v.layers[1] then
|
||||||
v.layers[1].tint = tint[tier]
|
v.layers[1].tint = tint[tier]
|
||||||
@@ -208,6 +209,7 @@ function main.EEE(source, tier)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for i=1, #v, 1 do
|
for i=1, #v, 1 do
|
||||||
|
if v[i] and type(v[i]) == 'table' then
|
||||||
if v[i].layers and v[i].layers[1] then
|
if v[i].layers and v[i].layers[1] then
|
||||||
v[i].layers[1].tint = tint[tier]
|
v[i].layers[1].tint = tint[tier]
|
||||||
|
|
||||||
@@ -219,6 +221,8 @@ function main.EEE(source, tier)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
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