mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 05:46:22 +09:00
.
This commit is contained in:
@@ -137,15 +137,17 @@ function main_entity(source, tier)
|
|||||||
item.max_power_output = (item.max_power_output and (tonumber(string.match(item.max_power_output, '[%d%.]+')) * (2 * (tier - source.min + 1))) .. string.match(item.max_power_output, '%a+')) or nil
|
item.max_power_output = (item.max_power_output and (tonumber(string.match(item.max_power_output, '[%d%.]+')) * (2 * (tier - source.min + 1))) .. string.match(item.max_power_output, '%a+')) or nil
|
||||||
item.maximum_temperature = (item.maximum_temperature and 15 + ((item.maximum_temperature - 15) * (2 * (tier - source.min + 1)))) or nil
|
item.maximum_temperature = (item.maximum_temperature and 15 + ((item.maximum_temperature - 15) * (2 * (tier - source.min + 1)))) or nil
|
||||||
|
|
||||||
for _, c in pairs({'horizontal_animation', 'vertical_animation'}) do
|
if item['pictures'] then
|
||||||
if item[c] and item[c].layers then
|
for _, c in pairs({'north', 'east'}) do
|
||||||
for _, l in pairs(item[c].layers) do
|
if item['pictures'][c] and item['pictures'][c].animation and item['pictures'][c].animation.layers then
|
||||||
|
for _, l in pairs(item['pictures'][c].animation.layers) do
|
||||||
if not l.draw_as_shadow then
|
if not l.draw_as_shadow then
|
||||||
l.tint = mod_tint[tier]
|
l.tint = mod_tint[tier]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
elseif (source.type == 'reactor') then
|
elseif (source.type == 'reactor') then
|
||||||
item.consumption = tostring(tonumber(string.match(item.consumption, '[%d%.]+')) * (2 * (tier - source.min + 1))) .. string.match(item.consumption, '%a+')
|
item.consumption = tostring(tonumber(string.match(item.consumption, '[%d%.]+')) * (2 * (tier - source.min + 1))) .. string.match(item.consumption, '%a+')
|
||||||
|
|||||||
Reference in New Issue
Block a user