From 70d1ec6e74d9031f63bbe07f76f1983bf61cbf17 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 1 Jul 2026 18:46:04 +0900 Subject: [PATCH] . --- PHI-CL/data/b/mbe-c.lua | 33 +++++++++------------------------ PHI-CL/data/b/mbe.lua | 2 ++ 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/PHI-CL/data/b/mbe-c.lua b/PHI-CL/data/b/mbe-c.lua index b1f8a68..e4c3661 100644 --- a/PHI-CL/data/b/mbe-c.lua +++ b/PHI-CL/data/b/mbe-c.lua @@ -1,72 +1,57 @@ return { -- MBE A 7 BASE ENTITY,RECIPE,RESEARCH_EFFECT ['solar-panel'] = { - type = 'solar-panel', name = 'solar-panel', max = settings.startup['PHI-MB-ENERGY'].value }, -- MBE A 7 BASE ENTITY,RECIPE,RESEARCH_EFFECT ['accumulator'] = { - type = 'accumulator', name = 'accumulator', max = settings.startup['PHI-MB-ENERGY'].value }, -- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT ['boiler'] = { - type = 'boiler', - name = 'boiler', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + name = 'boiler' }, -- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT ['steam-engine'] = { type = 'generator', - name = 'steam-engine', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + name = 'steam-engine' }, -- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT ['nuclear-reactor'] = { type = 'reactor', - name = 'nuclear-reactor', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + name = 'nuclear-reactor' }, -- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT ['heat-pipe'] = { - type = 'heat-pipe', - name = 'heat-pipe', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + name = 'heat-pipe' }, -- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT ['heat-exchanger'] = { type = 'boiler', - name = 'heat-exchanger', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + name = 'heat-exchanger' }, -- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT ['steam-turbine'] = { type = 'generator', - name = 'steam-turbine', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + name = 'steam-turbine' }, -- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT ['fusion-reactor'] = { mod = 'space-age', - type = 'fusion-reactor', - name = 'fusion-reactor', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + name = 'fusion-reactor' }, -- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT ['fusion-generator'] = { mod = 'space-age', - type = 'fusion-generator', - name = 'fusion-generator', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + name = 'fusion-generator' }, -- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT ['heating-tower'] = { mod = 'space-age', type = 'reactor', name = 'heating-tower', - tech = 'heating-tower', - max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) + tech = 'heating-tower' }, } diff --git a/PHI-CL/data/b/mbe.lua b/PHI-CL/data/b/mbe.lua index dfce08a..1f9dedd 100644 --- a/PHI-CL/data/b/mbe.lua +++ b/PHI-CL/data/b/mbe.lua @@ -279,7 +279,9 @@ end for _, v in pairs(items) do v.mod = v.mod or 'base' v.min = v.min or 2 + v.max = v.max or math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3) v.ref_name = v.ref_name or v.name + v.type = v.type or v.name if (v.mod and mods[v.mod]) and (v.max >= v.min) and data.raw[v.type] and data.raw[v.type][v.ref_name] and not data.raw[v.type][v.ref_name].hidden then v.category = v.category or 'item'