This commit is contained in:
2025-04-26 23:22:36 +09:00
parent 26d835d7d0
commit 3a0c7993a1
5 changed files with 25 additions and 47 deletions

View File

@@ -217,6 +217,10 @@ if settings.startup['PHI-MI'].value then
v.automatic = true
end
for _, v in pairs(data.raw['reactor']) do
v.scale_energy_usage = ((v.fast_replaceable_group and v.fast_replaceable_group == 'reactor') and settings.startup['PHI-MI-NUCLEAR'].value) or v.scale_energy_usage
end
for _, v in pairs({data.raw['module']['efficiency-module'], data.raw['module']['efficiency-module-2'], data.raw['module']['efficiency-module-3']}) do
for _, v2 in pairs(v.effect) do
v2 = v2 * settings.startup['PHI-MI-EFFCY'].value / 100
@@ -225,12 +229,6 @@ if settings.startup['PHI-MI'].value then
data.raw.recipe['landfill'].ingredients = {{type = 'item', name = 'stone', amount = tonumber(settings.startup['PHI-MI-LANDFILL'].value) or 20}}
if settings.startup['PHI-MI-NUCLEAR'].value then
for _, v in pairs(data.raw['reactor']) do
v.scale_energy_usage = ((v.fast_replaceable_group and v.fast_replaceable_group == 'reactor') and settings.startup['PHI-MI-NUCLEAR'].value) or v.scale_energy_usage
end
end
if settings.startup['PHI-MI-PIPE'].value then
local s = (1 + settings.startup['PHI-MI-PIPE'].value) / 2