This commit is contained in:
2026-07-01 18:46:04 +09:00
parent c5fe9fa5c9
commit 70d1ec6e74
2 changed files with 11 additions and 24 deletions
+9 -24
View File
@@ -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'
},
}
+2
View File
@@ -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'