mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-05-12 21:08:43 +09:00
.
This commit is contained in:
@@ -2,33 +2,33 @@
|
|||||||
if settings.startup['PHI-MI-PIPE'].value then
|
if settings.startup['PHI-MI-PIPE'].value then
|
||||||
local s = settings.startup['PHI-MI-PIPE'].value / 10
|
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 _, t in pairs({data.raw['offshore-pump'], data.raw['pump']}) do
|
||||||
for _, v in pairs(t) do
|
for _, v in pairs(t) do
|
||||||
v.pumping_speed = v.pumping_speed * s
|
v.pumping_speed = v.pumping_speed * s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- CT C 3 BASE ENTITY
|
-- MI C 3 BASE ENTITY
|
||||||
for _, v in pairs(data.raw['valve']) do
|
for _, v in pairs(data.raw['valve']) do
|
||||||
v.flow_rate = v.flow_rate * s
|
v.flow_rate = v.flow_rate * s
|
||||||
end
|
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 _, t in pairs({data.raw['pipe'], data.raw['pipe-to-ground'], data.raw['infinity-pipe']}) do
|
||||||
for _, v in pairs(t) do
|
for _, v in pairs(t) do
|
||||||
v.fluid_box.volume = v.fluid_box.volume * s
|
v.fluid_box.volume = v.fluid_box.volume * s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- CT C 1 BASE UTILITY_CONSTANTS
|
-- MI C 1 BASE UTILITY_CONSTANTS
|
||||||
data.raw['utility-constants'].default.max_fluid_flow = 100 * s
|
data.raw['utility-constants'].default.max_fluid_flow = 100 * s
|
||||||
end
|
end
|
||||||
|
|
||||||
if settings.startup['PHI-MI-ROBOT'].value then
|
if settings.startup['PHI-MI-ROBOT'].value then
|
||||||
local s = settings.startup['PHI-MI-ROBOT'].value / 10
|
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 _, t in pairs({data.raw['construction-robot'], data.raw['logistic-robot']}) do
|
||||||
for _, v in pairs(t) do
|
for _, v in pairs(t) do
|
||||||
v.speed = v.speed * s
|
v.speed = v.speed * s
|
||||||
@@ -45,7 +45,7 @@ end
|
|||||||
if settings.startup['PHI-MI-TRAIN'].value then
|
if settings.startup['PHI-MI-TRAIN'].value then
|
||||||
local s = settings.startup['PHI-MI-TRAIN'].value / 10
|
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 _, 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
|
for _, v in pairs(t) do
|
||||||
v.max_health = (v.max_health and (v.max_health * s)) or nil
|
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
|
||||||
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
|
data.raw['utility-constants'].default.default_pipeline_extent = settings.startup['PHI-MI-PIPE-EXTENT'].value
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ end
|
|||||||
-- MIG C 1 BASE ENTITY
|
-- MIG C 1 BASE ENTITY
|
||||||
for _, v in pairs(data.raw['pump']) do
|
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.pumping_speed = math.max(50, v.pumping_speed) * settings.startup['PHI-MI-PIPE'].value / 10
|
||||||
|
v.heating_energy = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
-- MIG C 2 BASE ENTITY
|
-- 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'].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
|
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
|
-- 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
|
for _, v in pairs(w) do
|
||||||
v.heating_energy = nil
|
v.heating_energy = nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user