From b45c0850e02e627cbdcc3c1d8b3c26b5ac6ca7e8 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 28 Apr 2026 22:56:53 +0900 Subject: [PATCH] . Co-authored-by: Copilot --- PHI-CL/changelog.txt | 5 ++- PHI-CL/data-updates.lua | 2 +- PHI-CL/data/b/mig.lua | 93 ++++++++++++++++++++--------------------- 3 files changed, 49 insertions(+), 51 deletions(-) diff --git a/PHI-CL/changelog.txt b/PHI-CL/changelog.txt index 9e9b7a2..d153231 100644 --- a/PHI-CL/changelog.txt +++ b/PHI-CL/changelog.txt @@ -5,8 +5,9 @@ Date: 2026-04-12 Changes: - [MI] Generic code layout restructure. - [MI] Removed basic chests. - - [MI] Removed train speed settings. - - [MI] Removed robot speed settings. + - [MI] Removed train speed setting. + - [MI] Removed robot speed setting. + - [MI] Removed lab quality affect drain setting. --------------------------------------------------------------------------------------------------- Version: 3.0.135 diff --git a/PHI-CL/data-updates.lua b/PHI-CL/data-updates.lua index 7835d3a..b84f139 100644 --- a/PHI-CL/data-updates.lua +++ b/PHI-CL/data-updates.lua @@ -15,5 +15,5 @@ if settings.startup['PHI-MB'].value then end if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].value) or (settings.startup['PHI-GM'].value and settings.startup['PHI-GM'].value ~= '') then - require 'data.u.mig-s' + require 'data.u.mi' end diff --git a/PHI-CL/data/b/mig.lua b/PHI-CL/data/b/mig.lua index dce0a7a..268b89c 100644 --- a/PHI-CL/data/b/mig.lua +++ b/PHI-CL/data/b/mig.lua @@ -18,50 +18,34 @@ for _, v in pairs(data.raw['logistic-container']) do end -- 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['cargo-wagon'], data.raw['fluid-wagon']}) do for _, v in pairs(t) do - v.reversing_power_modifier = 1 + v.quality_affects_inventory_size = true end end +-- MI C 1 BASE ENTITY +for _, v in pairs(data.raw['locomotive']) do + v.reversing_power_modifier = 1 +end + -- MIG C 1 BASE ENTITY for _, v in pairs(data.raw['reactor']) do v.scale_energy_usage = (v.fast_replaceable_group and v.fast_replaceable_group == 'reactor') end --- MIG C 8 BASE ENTITY -for _, t in pairs({data.raw['offshore-pump'], data.raw['pump'], data.raw['valve'], data.raw['pipe'], data.raw['pipe-to-ground'], data.raw['infinity-pipe']}) do +-- MIG C 5 BASE ENTITY +for _, t in pairs({data.raw['offshore-pump'], data.raw['pump'], data.raw['pipe'], data.raw['pipe-to-ground'], data.raw['infinity-pipe']}) do for _, v in pairs(t) do v.heating_energy = nil end end --- MIG C 1 BASE ENTITY --- MIG C 1 SPACE_AGE ENTITY -for _, v in pairs(data.raw['mining-drill']) do - v.filter_count = 5 - - if mods['space-age'] then - v.drops_full_belt_stacks = true - end -end - --- MIG C 3 BASE MODULE -data.raw['module']['efficiency-module'].effect.consumption = math.min(-0.3, data.raw['module']['efficiency-module'].effect.consumption) -data.raw['module']['efficiency-module-2'].effect.consumption = math.min(-0.6, data.raw['module']['efficiency-module'].effect.consumption) -data.raw['module']['efficiency-module-3'].effect.consumption = math.min(-0.9, data.raw['module']['efficiency-module'].effect.consumption) - --- MIG C 2 BASE RECIPE -data.raw.recipe['landfill'].ingredients[1].amount = math.min(20, data.raw.recipe['landfill'].ingredients[1].amount) -data.raw.recipe['selector-combinator'].ingredients = {{type = 'item', name = 'advanced-circuit', amount = 5}, {type = 'item', name = 'decider-combinator', amount = 2}} - --- MIG A 1 BASE RECIPE_CATEGORY -data:extend({{type='recipe-category', name='super-pump-fluid'}}) - -- MIG C 3 BASE ENTITY,ITEM -- MIG A 1 BASE RECIPE for _, v in pairs(data.raw['valve']) do v.hidden = false + v.heating_energy = nil data.raw.item[v.name].hidden = false data.raw.item[v.name].subgroup = 'energy-pipe-distribution' @@ -136,6 +120,28 @@ if data.raw['offshore-pump']['offshore-pump'] then }}) end +-- MIG C 1 BASE ENTITY +-- MIG C 1 SPACE_AGE ENTITY +for _, v in pairs(data.raw['mining-drill']) do + v.filter_count = 5 + + if mods['space-age'] then + v.drops_full_belt_stacks = true + end +end + +-- MIG C 3 BASE MODULE +data.raw['module']['efficiency-module'].effect.consumption = math.min(-0.3, data.raw['module']['efficiency-module'].effect.consumption) +data.raw['module']['efficiency-module-2'].effect.consumption = math.min(-0.6, data.raw['module']['efficiency-module'].effect.consumption) +data.raw['module']['efficiency-module-3'].effect.consumption = math.min(-0.9, data.raw['module']['efficiency-module'].effect.consumption) + +-- MIG C 2 BASE RECIPE +data.raw.recipe['landfill'].ingredients[1].amount = math.min(20, data.raw.recipe['landfill'].ingredients[1].amount) +data.raw.recipe['selector-combinator'].ingredients = {{type = 'item', name = 'advanced-circuit', amount = 5}, {type = 'item', name = 'decider-combinator', amount = 2}} + +-- MIG A 1 BASE RECIPE_CATEGORY +data:extend({{type='recipe-category', name='super-pump-fluid'}}) + -- MIG A 8 BASE RECIPE -- MIG A 14 SPACE_AGE RECIPE for _, v in pairs(data.raw.fluid) do @@ -496,35 +502,26 @@ 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 13 BASE ENTITY +-- MIG C 12 BASE ENTITY -- MIG C 5 SPACE_AGE ENTITY -for _, w in pairs({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']}) do for _, v in pairs(w) do v.heating_energy = nil end end +-- MIG C 1 BASE ENTITY +for _, v in pairs(data.raw['roboport']) do + v.heating_energy = nil + v.charging_station_count_affected_by_quality = true +end + +-- MIG C 1 BASE ARMOR_EQUIPMENT +for _, v in pairs(data.raw['roboport-equipment']) do + v.charging_station_count_affected_by_quality = true +end + if mods['space-age'] then - for _, v in pairs(data.raw['mining-drill']) do - v.drops_full_belt_stacks = true - end - - for _, w in pairs({data.raw['roboport'], data.raw['roboport-equipment']}) do - for _, v in pairs(w) do - v.charging_station_count_affected_by_quality = true - end - end - - for _, v in pairs(data.raw['lab']) do - v.uses_quality_drain_modifier = true - end - - for _, w in pairs({data.raw['cargo-wagon'], data.raw['fluid-wagon']}) do - for _, v in pairs(w) do - v.quality_affects_inventory_size = true - end - end - table.insert(data.raw['thruster']['thruster'].fuel_fluid_box.pipe_connections, {flow_direction = 'input-output', direction = defines.direction.west, position = {-1.5, 2}}) table.insert(data.raw['thruster']['thruster'].oxidizer_fluid_box.pipe_connections, {flow_direction = 'input-output', direction = defines.direction.east, position = {1.5, 2}})