This commit is contained in:
2026-03-19 20:12:22 +09:00
parent abfa7dbc07
commit 77e82b9bc3
5 changed files with 105 additions and 113 deletions

View File

@@ -15,51 +15,51 @@ return {
['boiler'] = {
type = 'boiler',
name = 'boiler',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
['steam-engine'] = {
type = 'generator',
name = 'steam-engine',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
['nuclear-reactor'] = {
type = 'reactor',
name = 'nuclear-reactor',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
['heat-pipe'] = {
type = 'heat-pipe',
name = 'heat-pipe',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
['heat-exchanger'] = {
type = 'boiler',
name = 'heat-exchanger',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
-- MBE A 4 BASE ENTITY,RECIPE,RESEARCH_EFFECT
['steam-turbine'] = {
type = 'generator',
name = 'steam-turbine',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
-- MBE A 4 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
['fusion-reactor'] = {
mod = 'space-age',
type = 'fusion-reactor',
name = 'fusion-reactor',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
-- MBE A 4 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
['fusion-generator'] = {
mod = 'space-age',
type = 'fusion-generator',
name = 'fusion-generator',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
-- MBE A 4 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
['heating-tower'] = {
@@ -67,6 +67,6 @@ return {
type = 'reactor',
name = 'heating-tower',
tech = 'heating-tower',
max = math.min(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value, 5)
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1, 5)
},
}