mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
3daffc8b63
Co-authored-by: Copilot <copilot@github.com>
20 lines
796 B
Lua
20 lines
796 B
Lua
|
|
if settings.startup['PHI-MI-FLUID'].value then
|
|
-- MI C 1 BASE UTILITY_CONSTANTS
|
|
data.raw['utility-constants'].default.max_fluid_flow = 10 * settings.startup['PHI-MI-FLUID'].value
|
|
end
|
|
|
|
-- MI C 2 BASE ENTITY
|
|
for _, t in pairs({data.raw['construction-robot'], data.raw['logistic-robot']}) do
|
|
for _, v in pairs(t) do
|
|
if settings.startup['PHI-MI-ROBOT-ENERGY'].value then
|
|
v.energy_per_tick = (v.energy_per_tick and '0J') or nil
|
|
v.energy_per_move = (v.energy_per_move and '0J') or nil
|
|
v.speed_multiplier_when_out_of_energy = (v.speed_multiplier_when_out_of_energy and 1) or nil
|
|
end
|
|
end
|
|
end
|
|
|
|
-- MI C 1 BASE UTILITY_CONSTANTS
|
|
data.raw['utility-constants'].default.default_pipeline_extent = settings.startup['PHI-MI-PIPE-EXTENT'].value
|