This commit is contained in:
2026-04-28 20:29:27 +09:00
parent 2a0d8667c2
commit 69223cd2bd
2 changed files with 10 additions and 9 deletions
+7 -7
View File
@@ -2,33 +2,33 @@
if settings.startup['PHI-MI-PIPE'].value then
local s = settings.startup['PHI-MI-PIPE'].value / 10
-- CT C 2 BASE ENTITY
-- MI C 2 BASE ENTITY
for _, t in pairs({data.raw['offshore-pump'], data.raw['pump']}) do
for _, v in pairs(t) do
v.pumping_speed = v.pumping_speed * s
end
end
-- CT C 3 BASE ENTITY
-- MI C 3 BASE ENTITY
for _, v in pairs(data.raw['valve']) do
v.flow_rate = v.flow_rate * s
end
-- CT C 3 BASE ENTITY
-- MI C 3 BASE ENTITY
for _, t in pairs({data.raw['pipe'], data.raw['pipe-to-ground'], data.raw['infinity-pipe']}) do
for _, v in pairs(t) do
v.fluid_box.volume = v.fluid_box.volume * s
end
end
-- CT C 1 BASE UTILITY_CONSTANTS
-- MI C 1 BASE UTILITY_CONSTANTS
data.raw['utility-constants'].default.max_fluid_flow = 100 * s
end
if settings.startup['PHI-MI-ROBOT'].value then
local s = settings.startup['PHI-MI-ROBOT'].value / 10
-- CT C 2 BASE ENTITY
-- MI C 2 BASE ENTITY
for _, t in pairs({data.raw['construction-robot'], data.raw['logistic-robot']}) do
for _, v in pairs(t) do
v.speed = v.speed * s
@@ -45,7 +45,7 @@ end
if settings.startup['PHI-MI-TRAIN'].value then
local s = settings.startup['PHI-MI-TRAIN'].value / 10
-- CT C 4 BASE ENTITY
-- MI C 4 BASE ENTITY
for _, t in pairs({data.raw['locomotive'], data.raw['cargo-wagon'], data.raw['fluid-wagon'], data.raw['artillery-wagon']}) do
for _, v in pairs(t) do
v.max_health = (v.max_health and (v.max_health * s)) or nil
@@ -60,5 +60,5 @@ if settings.startup['PHI-MI-TRAIN'].value then
end
end
-- CT C 1 BASE UTILITY_CONSTANTS
-- MI C 1 BASE UTILITY_CONSTANTS
data.raw['utility-constants'].default.default_pipeline_extent = settings.startup['PHI-MI-PIPE-EXTENT'].value
+3 -2
View File
@@ -26,6 +26,7 @@ end
-- MIG C 1 BASE ENTITY
for _, v in pairs(data.raw['pump']) do
v.pumping_speed = math.max(50, v.pumping_speed) * settings.startup['PHI-MI-PIPE'].value / 10
v.heating_energy = nil
end
-- MIG C 2 BASE ENTITY
@@ -479,9 +480,9 @@ end
data.raw['proxy-container']['proxy-container'].flags = {'not-blueprintable', 'hide-alt-info', 'not-deconstructable', 'not-flammable', 'not-on-map', 'placeable-off-grid', 'placeable-player', 'no-automated-item-insertion', 'no-automated-item-removal'}
data.raw['proxy-container']['proxy-container'].draw_inventory_content = false
-- MIG C 19 BASE ENTITY
-- MIG C 13 BASE ENTITY
-- MIG C 5 SPACE_AGE ENTITY
for _, w in pairs({data.raw['valve'], data.raw['pipe'], data.raw['pipe-to-ground'], data.raw['pump'], data.raw['storage-tank'], data.raw['generator'], data.raw['furnace'], data.raw['assembling-machine'], data.raw['roboport']}) do
for _, w in pairs({data.raw['storage-tank'], data.raw['generator'], data.raw['furnace'], data.raw['assembling-machine'], data.raw['roboport']}) do
for _, v in pairs(w) do
v.heating_energy = nil
end