From 8bb5bf99c4d8e3c70f6ae1e945c15af21a36b637 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 19 Mar 2026 19:30:58 +0900 Subject: [PATCH] . --- PHI-CL/config-updates.lua | 405 +++++++++++++++++++ PHI-CL/config.lua | 414 -------------------- PHI-CL/data-updates.lua | 21 +- PHI-CL/data.lua | 6 +- PHI-CL/data/{mbe-config.lua => b/mbe-c.lua} | 11 - PHI-CL/data/{ => b}/mbe.lua | 4 +- PHI-CL/data/{ => b}/mbm.lua | 0 PHI-CL/data/{ => b}/mbq.lua | 0 PHI-CL/data/u/mbe-c.lua | 12 + PHI-CL/data/u/mbe.lua | 22 ++ PHI-CL/data/u/mbm.lua | 0 PHI-CL/data/u/mbq.lua | 0 12 files changed, 463 insertions(+), 432 deletions(-) create mode 100644 PHI-CL/config-updates.lua rename PHI-CL/data/{mbe-config.lua => b/mbe-c.lua} (88%) rename PHI-CL/data/{ => b}/mbe.lua (92%) rename PHI-CL/data/{ => b}/mbm.lua (100%) rename PHI-CL/data/{ => b}/mbq.lua (100%) create mode 100644 PHI-CL/data/u/mbe-c.lua create mode 100644 PHI-CL/data/u/mbe.lua create mode 100644 PHI-CL/data/u/mbm.lua create mode 100644 PHI-CL/data/u/mbq.lua diff --git a/PHI-CL/config-updates.lua b/PHI-CL/config-updates.lua new file mode 100644 index 0000000..9166919 --- /dev/null +++ b/PHI-CL/config-updates.lua @@ -0,0 +1,405 @@ +local items = {} + +if mods and mods['aai-industry'] then + items['item']['industrial-furnace'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'aai-industry', + type = 'assembling-machine', + name = 'industrial-furnace', + ref_name = 'industrial-furnace', + tech = 'industrial-furnace', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['fuel-processor'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'aai-industry', + type = 'assembling-machine', + name = 'fuel-processor', + ref_name = 'fuel-processor', + tech = 'fuel-processing', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } +end + +if mods and (mods['aai-industry'] or mods['big-mining-drill']) then + items['item']['area-mining-drill'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = (mods['big-mining-drill'] and 'big-mining-drill') or 'aai-industry', + type = 'mining-drill', + name = 'area-mining-drill', + ref_name = 'area-mining-drill', + tech = 'area-mining-drill', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } +end + +if mods and mods['space-exploration'] then + items['item']['se-space-assembling-machine'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-assembling-machine', + ref_name = 'se-space-assembling-machine', + tech = 'se-space-assembling', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-manufactory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-manufactory', + ref_name = 'se-space-manufactory', + tech = 'se-space-manufactory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-casting-machine'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-casting-machine', + ref_name = 'se-casting-machine', + tech = 'se-pyroflux-smelting', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-pulveriser'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-pulveriser', + ref_name = 'se-pulveriser', + tech = 'se-pulveriser', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-lifesupport-facility'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-lifesupport-facility', + ref_name = 'se-lifesupport-facility', + tech = 'se-lifesupport-facility', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-fuel-refinery'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-fuel-refinery', + ref_name = 'se-fuel-refinery', + tech = 'se-fuel-refining', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-decontamination-facility'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-decontamination-facility', + ref_name = 'se-space-decontamination-facility', + tech = 'se-space-decontamination-facility', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-genetics-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-genetics-laboratory', + ref_name = 'se-space-genetics-laboratory', + tech = 'se-space-genetics-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-growth-facility'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-growth-facility', + ref_name = 'se-space-growth-facility', + tech = 'se-space-growth-facility', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-biochemical-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-biochemical-laboratory', + ref_name = 'se-space-biochemical-laboratory', + tech = 'se-space-biochemical-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-radiation-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-radiation-laboratory', + ref_name = 'se-space-radiation-laboratory', + tech = 'se-space-radiation-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-electromagnetics-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-electromagnetics-laboratory', + ref_name = 'se-space-electromagnetics-laboratory', + tech = 'se-space-electromagnetics-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-laser-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-laser-laboratory', + ref_name = 'se-space-laser-laboratory', + tech = 'se-space-laser-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-astrometrics-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-astrometrics-laboratory', + ref_name = 'se-space-astrometrics-laboratory', + tech = 'se-space-astrometrics-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-gravimetrics-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-gravimetrics-laboratory', + ref_name = 'se-space-gravimetrics-laboratory', + tech = 'se-space-gravimetrics-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-mechanical-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-mechanical-laboratory', + ref_name = 'se-space-mechanical-laboratory', + tech = 'se-space-mechanical-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-thermodynamics-laboratory'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-thermodynamics-laboratory', + ref_name = 'se-space-thermodynamics-laboratory', + tech = 'se-space-thermodynamics-laboratory', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-material-fabricator'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-material-fabricator', + ref_name = 'se-space-material-fabricator', + tech = 'se-space-material-fabricator', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-particle-accelerator'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-particle-accelerator', + ref_name = 'se-space-particle-accelerator', + tech = 'se-space-particle-accelerator', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-particle-collider'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-particle-collider', + ref_name = 'se-space-particle-collider', + tech = 'se-space-particle-collider', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-plasma-generator'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-plasma-generator', + ref_name = 'se-space-plasma-generator', + tech = 'se-space-plasma-generator', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-hypercooler'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-hypercooler', + ref_name = 'se-space-hypercooler', + tech = 'se-space-hypercooling-1', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-radiator'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-radiator', + ref_name = 'se-space-radiator-2', + tech = 'se-space-radiator-2', + min = 3, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + 1 + } + + items['item']['se-space-telescope'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-telescope', + ref_name = 'se-space-telescope', + tech = 'se-space-telescope', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-telescope-gammaray'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-telescope-gammaray', + ref_name = 'se-space-telescope-gammaray', + tech = 'se-space-telescope-gammaray', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-telescope-microwave'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-telescope-microwave', + ref_name = 'se-space-telescope-microwave', + tech = 'se-space-telescope-microwave', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-telescope-radio'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-telescope-radio', + ref_name = 'se-space-telescope-radio', + tech = 'se-space-telescope-radio', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-telescope-xray'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'assembling-machine', + name = 'se-space-telescope-xray', + ref_name = 'se-space-telescope-xray', + tech = 'se-space-telescope-xray', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['item']['se-space-science-lab'] = { + enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, + stage = 2, + mod = 'space-exploration', + type = 'lab', + name = 'se-space-science-lab', + ref_name = 'se-space-science-lab', + tech = 'se-space-science-lab', + min = 2, + max = settings.startup['PHI-MB-MACHINE-TIER'].value + } + + items['equipment']['fission-reactor-equipment'].tech = 'se-rtg-equipment' + items['equipment']['fission-reactor-equipment'].base_name = 'se-rtg' + + items['equipment']['battery-equipment'].tech = 'battery-equipment' + items['equipment']['battery-equipment'].min = 2 + + items['equipment']['energy-shield-equipment'].tech = 'energy-shield-equipment' + items['equipment']['energy-shield-equipment'].min = 2 + + items['equipment']['personal-roboport-equipment'].tech = 'personal-roboport-equipment' + items['equipment']['personal-roboport-equipment'].min = 2 +end + +return items diff --git a/PHI-CL/config.lua b/PHI-CL/config.lua index 7280c48..b8945a0 100644 --- a/PHI-CL/config.lua +++ b/PHI-CL/config.lua @@ -790,418 +790,4 @@ if mods and mods['quality'] then } end -if mods and mods['aai-industry'] then - items['item']['industrial-furnace'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'aai-industry', - type = 'assembling-machine', - name = 'industrial-furnace', - ref_name = 'industrial-furnace', - tech = 'industrial-furnace', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['fuel-processor'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'aai-industry', - type = 'assembling-machine', - name = 'fuel-processor', - ref_name = 'fuel-processor', - tech = 'fuel-processing', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } -end - -if mods and (mods['aai-industry'] or mods['big-mining-drill']) then - items['item']['area-mining-drill'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = (mods['big-mining-drill'] and 'big-mining-drill') or 'aai-industry', - type = 'mining-drill', - name = 'area-mining-drill', - ref_name = 'area-mining-drill', - tech = 'area-mining-drill', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } -end - -if mods and mods['space-exploration'] then - items['item']['se-space-solar-panel'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-ENERGY'].value, - stage = 2, - mod = 'space-exploration', - type = 'solar-panel', - name = 'se-space-solar-panel', - ref_name = 'se-space-solar-panel', - tech = 'compound-energy', - min = 4, - max = settings.startup['PHI-MB-ENERGY-POWER-TIER'].value - } - - items['item']['se-space-assembling-machine'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-assembling-machine', - ref_name = 'se-space-assembling-machine', - tech = 'se-space-assembling', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-manufactory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-manufactory', - ref_name = 'se-space-manufactory', - tech = 'se-space-manufactory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-casting-machine'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-casting-machine', - ref_name = 'se-casting-machine', - tech = 'se-pyroflux-smelting', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-pulveriser'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-pulveriser', - ref_name = 'se-pulveriser', - tech = 'se-pulveriser', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-lifesupport-facility'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-lifesupport-facility', - ref_name = 'se-lifesupport-facility', - tech = 'se-lifesupport-facility', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-fuel-refinery'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-fuel-refinery', - ref_name = 'se-fuel-refinery', - tech = 'se-fuel-refining', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-decontamination-facility'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-decontamination-facility', - ref_name = 'se-space-decontamination-facility', - tech = 'se-space-decontamination-facility', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-genetics-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-genetics-laboratory', - ref_name = 'se-space-genetics-laboratory', - tech = 'se-space-genetics-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-growth-facility'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-growth-facility', - ref_name = 'se-space-growth-facility', - tech = 'se-space-growth-facility', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-biochemical-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-biochemical-laboratory', - ref_name = 'se-space-biochemical-laboratory', - tech = 'se-space-biochemical-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-radiation-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-radiation-laboratory', - ref_name = 'se-space-radiation-laboratory', - tech = 'se-space-radiation-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-electromagnetics-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-electromagnetics-laboratory', - ref_name = 'se-space-electromagnetics-laboratory', - tech = 'se-space-electromagnetics-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-laser-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-laser-laboratory', - ref_name = 'se-space-laser-laboratory', - tech = 'se-space-laser-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-astrometrics-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-astrometrics-laboratory', - ref_name = 'se-space-astrometrics-laboratory', - tech = 'se-space-astrometrics-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-gravimetrics-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-gravimetrics-laboratory', - ref_name = 'se-space-gravimetrics-laboratory', - tech = 'se-space-gravimetrics-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-mechanical-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-mechanical-laboratory', - ref_name = 'se-space-mechanical-laboratory', - tech = 'se-space-mechanical-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-thermodynamics-laboratory'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-thermodynamics-laboratory', - ref_name = 'se-space-thermodynamics-laboratory', - tech = 'se-space-thermodynamics-laboratory', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-material-fabricator'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-material-fabricator', - ref_name = 'se-space-material-fabricator', - tech = 'se-space-material-fabricator', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-particle-accelerator'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-particle-accelerator', - ref_name = 'se-space-particle-accelerator', - tech = 'se-space-particle-accelerator', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-particle-collider'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-particle-collider', - ref_name = 'se-space-particle-collider', - tech = 'se-space-particle-collider', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-plasma-generator'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-plasma-generator', - ref_name = 'se-space-plasma-generator', - tech = 'se-space-plasma-generator', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-hypercooler'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-hypercooler', - ref_name = 'se-space-hypercooler', - tech = 'se-space-hypercooling-1', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-radiator'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-radiator', - ref_name = 'se-space-radiator-2', - tech = 'se-space-radiator-2', - min = 3, - max = settings.startup['PHI-MB-MACHINE-TIER'].value + 1 - } - - items['item']['se-space-telescope'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-telescope', - ref_name = 'se-space-telescope', - tech = 'se-space-telescope', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-telescope-gammaray'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-telescope-gammaray', - ref_name = 'se-space-telescope-gammaray', - tech = 'se-space-telescope-gammaray', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-telescope-microwave'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-telescope-microwave', - ref_name = 'se-space-telescope-microwave', - tech = 'se-space-telescope-microwave', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-telescope-radio'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-telescope-radio', - ref_name = 'se-space-telescope-radio', - tech = 'se-space-telescope-radio', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-telescope-xray'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'assembling-machine', - name = 'se-space-telescope-xray', - ref_name = 'se-space-telescope-xray', - tech = 'se-space-telescope-xray', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['item']['se-space-science-lab'] = { - enabled = settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value, - stage = 2, - mod = 'space-exploration', - type = 'lab', - name = 'se-space-science-lab', - ref_name = 'se-space-science-lab', - tech = 'se-space-science-lab', - min = 2, - max = settings.startup['PHI-MB-MACHINE-TIER'].value - } - - items['equipment']['fission-reactor-equipment'].tech = 'se-rtg-equipment' - items['equipment']['fission-reactor-equipment'].base_name = 'se-rtg' - - items['equipment']['battery-equipment'].tech = 'battery-equipment' - items['equipment']['battery-equipment'].min = 2 - - items['equipment']['energy-shield-equipment'].tech = 'energy-shield-equipment' - items['equipment']['energy-shield-equipment'].min = 2 - - items['equipment']['personal-roboport-equipment'].tech = 'personal-roboport-equipment' - items['equipment']['personal-roboport-equipment'].min = 2 -end - return items diff --git a/PHI-CL/data-updates.lua b/PHI-CL/data-updates.lua index 22fed17..b590968 100644 --- a/PHI-CL/data-updates.lua +++ b/PHI-CL/data-updates.lua @@ -1,7 +1,22 @@ -local items = require 'config' +local param = require 'config' +local items = require 'config-updates' local main = require 'main' local file_stage = 2 +if settings.startup['PHI-MB'].value then + if settings.startup['PHI-MB-ENERGY'].value then + require 'data.u.mbe' + end + + if settings.startup['PHI-MB-MACHINE'].value then + require 'data.u.mbm' + end + + if settings.startup['PHI-MB-EQUIPMENT'].value then + require 'data.u.mbq' + end +end + if settings.startup['PHI-MB'].value and settings.startup['PHI-MB-MACHINE'].value and settings.startup['PHI-MB-MACHINE-TIER'].value > 1 then for i = 4, settings.startup['PHI-MB-MACHINE-TIER'].value + 2 do data.raw['assembling-machine']['assembling-machine-' .. i].localised_name = {'phi-cl.combine', {'?', {'entity-name.assembling-machine'}, {'name.assembling-machine'}}, tostring(i)} @@ -14,7 +29,7 @@ if (settings.startup['PHI-MI'].value and settings.startup['PHI-MI-GENERIC'].valu item.name = 'super-combinator' item.place_result = item.name item.order = 'c[combinators]-e[super-combinator]' - item.icons = {{icon = '__base__/graphics/icons/constant-combinator.png', tint = items['tint'][2], icon_size = 64, icon_mipmaps = 4}} + item.icons = {{icon = '__base__/graphics/icons/constant-combinator.png', tint = param['tint'][2], icon_size = 64, icon_mipmaps = 4}} item.icon = nil item.icon_size = nil item.icon_mipmaps = nil @@ -87,7 +102,7 @@ if mods['space-exploration'] and settings.startup['PHI-MB'].value and settings.s item.name = 'se-core-miner-drill-' .. i item.place_result = miner_name item.order = 'zzzz-core-miner-drill-' .. i - item.icons = {{icon = '__space-exploration-graphics__/graphics/icons/core-miner.png', tint = items['tint'][i], icon_size = 64}} + item.icons = {{icon = '__space-exploration-graphics__/graphics/icons/core-miner.png', tint = param['tint'][i], icon_size = 64}} item.icon = nil item.icon_size = nil item.localised_name = {'phi-cl.combine', {'entity-name.se-core-miner-drill'}, tostring(i)} diff --git a/PHI-CL/data.lua b/PHI-CL/data.lua index a01fdfe..df16a82 100644 --- a/PHI-CL/data.lua +++ b/PHI-CL/data.lua @@ -4,15 +4,15 @@ local file_stage = 1 if settings.startup['PHI-MB'].value then if settings.startup['PHI-MB-ENERGY'].value then - require 'data.mbe' + require 'data.b.mbe' end if settings.startup['PHI-MB-MACHINE'].value then - require 'data.mbm' + require 'data.b.mbm' end if settings.startup['PHI-MB-EQUIPMENT'].value then - require 'data.mbq' + require 'data.b.mbq' end end diff --git a/PHI-CL/data/mbe-config.lua b/PHI-CL/data/b/mbe-c.lua similarity index 88% rename from PHI-CL/data/mbe-config.lua rename to PHI-CL/data/b/mbe-c.lua index 6fef09a..5dc371f 100644 --- a/PHI-CL/data/mbe-config.lua +++ b/PHI-CL/data/b/mbe-c.lua @@ -80,15 +80,4 @@ return { tech = 'heating-tower', max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5) }, - -- MBE A 5 SPACE_EXPLORATION ENTITY,RECIPE,RESEARCH_EFFECT - ['se-space-solar-panel'] = { - enabled = mods['space-exploration'], - stage = 2, - mod = 'space-exploration', - type = 'solar-panel', - name = 'se-space-solar-panel', - tech = 'compound-energy', - min = 4, - max = settings.startup['PHI-MB-ENERGY-POWER-TIER'].value - } } diff --git a/PHI-CL/data/mbe.lua b/PHI-CL/data/b/mbe.lua similarity index 92% rename from PHI-CL/data/mbe.lua rename to PHI-CL/data/b/mbe.lua index 075886a..2bc7bdc 100644 --- a/PHI-CL/data/mbe.lua +++ b/PHI-CL/data/b/mbe.lua @@ -1,6 +1,6 @@ local param = require 'config' local main = require 'main' -local items = require 'mbe-config' +local items = require 'mbe-c' -- MBE C 1 BASE FLUID data.raw['fluid']['steam'].max_temperature = ((settings.startup['PHI-MB-ENERGY-POWER-TIER'].value > 1) and 5000) or data.raw['fluid']['steam'].max_temperature @@ -22,6 +22,8 @@ for i = 1, 7 do }}) end +-- MBE A 38 BASE ENTITY,RECIPE,RESEARCH_EFFECT +-- MBE A 12 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT for _, v in pairs(items) do if v.enabled and (v.max >= v.min) then v.mod = v.mod or 'base' diff --git a/PHI-CL/data/mbm.lua b/PHI-CL/data/b/mbm.lua similarity index 100% rename from PHI-CL/data/mbm.lua rename to PHI-CL/data/b/mbm.lua diff --git a/PHI-CL/data/mbq.lua b/PHI-CL/data/b/mbq.lua similarity index 100% rename from PHI-CL/data/mbq.lua rename to PHI-CL/data/b/mbq.lua diff --git a/PHI-CL/data/u/mbe-c.lua b/PHI-CL/data/u/mbe-c.lua new file mode 100644 index 0000000..1d432a4 --- /dev/null +++ b/PHI-CL/data/u/mbe-c.lua @@ -0,0 +1,12 @@ +return { + -- MBE A 5 SPACE_EXPLORATION ENTITY,RECIPE,RESEARCH_EFFECT + ['se-space-solar-panel'] = { + enabled = mods['space-exploration'], + stage = 2, + mod = 'space-exploration', + type = 'solar-panel', + name = 'se-space-solar-panel', + min = 4, + max = settings.startup['PHI-MB-ENERGY-POWER-TIER'].value + } +} diff --git a/PHI-CL/data/u/mbe.lua b/PHI-CL/data/u/mbe.lua new file mode 100644 index 0000000..1892893 --- /dev/null +++ b/PHI-CL/data/u/mbe.lua @@ -0,0 +1,22 @@ +local main = require 'main' +local items = require 'mbe-c' + +-- MBE A 5 SPACE_EXPLORATION ENTITY,RECIPE,RESEARCH_EFFECT +for _, v in pairs(items) do + if v.enabled and (v.max >= v.min) then + v.mod = v.mod or 'base' + v.category = v.category or 'item' + v.ref_name = v.ref_name or v.name + v.tech = v.tech or 'compound-energy' + v.min = v.min or 2 + + for j=v.min, v.max, 1 do + main.EEE(v, j) + main.EI(v, j) + main.ER(v, j) + main.ET(v, j) + end + + main.EL(v) + end +end diff --git a/PHI-CL/data/u/mbm.lua b/PHI-CL/data/u/mbm.lua new file mode 100644 index 0000000..e69de29 diff --git a/PHI-CL/data/u/mbq.lua b/PHI-CL/data/u/mbq.lua new file mode 100644 index 0000000..e69de29