mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 04:11:39 +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,22 +197,26 @@ function main.EEE(source, tier)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for _, v in pairs(item[ve]) do
|
for _, v in pairs(item[ve]) do
|
||||||
if v.layers then
|
if type(v) == 'table' then
|
||||||
if v.layers[1] then
|
if v.layers then
|
||||||
v.layers[1].tint = tint[tier]
|
if v.layers[1] then
|
||||||
|
v.layers[1].tint = tint[tier]
|
||||||
|
|
||||||
if v.layers[1].hr_version then
|
if v.layers[1].hr_version then
|
||||||
v.layers[1].hr_version.tint = tint[tier]
|
v.layers[1].hr_version.tint = tint[tier]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
for i=1, #v, 1 do
|
for i=1, #v, 1 do
|
||||||
if v[i].layers and v[i].layers[1] then
|
if v[i] and type(v[i]) == 'table' then
|
||||||
v[i].layers[1].tint = tint[tier]
|
if v[i].layers and v[i].layers[1] then
|
||||||
|
v[i].layers[1].tint = tint[tier]
|
||||||
|
|
||||||
if v[i].layers[1].hr_version then
|
if v[i].layers[1].hr_version then
|
||||||
v[i].layers[1].hr_version.tint = tint[tier]
|
v[i].layers[1].hr_version.tint = tint[tier]
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user