mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-07-26 21:16:23 +09:00
.
This commit is contained in:
+9
-24
@@ -1,72 +1,57 @@
|
|||||||
return {
|
return {
|
||||||
-- MBE A 7 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 7 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['solar-panel'] = {
|
['solar-panel'] = {
|
||||||
type = 'solar-panel',
|
|
||||||
name = 'solar-panel',
|
name = 'solar-panel',
|
||||||
max = settings.startup['PHI-MB-ENERGY'].value
|
max = settings.startup['PHI-MB-ENERGY'].value
|
||||||
},
|
},
|
||||||
-- MBE A 7 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 7 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['accumulator'] = {
|
['accumulator'] = {
|
||||||
type = 'accumulator',
|
|
||||||
name = 'accumulator',
|
name = 'accumulator',
|
||||||
max = settings.startup['PHI-MB-ENERGY'].value
|
max = settings.startup['PHI-MB-ENERGY'].value
|
||||||
},
|
},
|
||||||
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['boiler'] = {
|
['boiler'] = {
|
||||||
type = 'boiler',
|
name = 'boiler'
|
||||||
name = 'boiler',
|
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['steam-engine'] = {
|
['steam-engine'] = {
|
||||||
type = 'generator',
|
type = 'generator',
|
||||||
name = 'steam-engine',
|
name = 'steam-engine'
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['nuclear-reactor'] = {
|
['nuclear-reactor'] = {
|
||||||
type = 'reactor',
|
type = 'reactor',
|
||||||
name = 'nuclear-reactor',
|
name = 'nuclear-reactor'
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['heat-pipe'] = {
|
['heat-pipe'] = {
|
||||||
type = 'heat-pipe',
|
name = 'heat-pipe'
|
||||||
name = 'heat-pipe',
|
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['heat-exchanger'] = {
|
['heat-exchanger'] = {
|
||||||
type = 'boiler',
|
type = 'boiler',
|
||||||
name = 'heat-exchanger',
|
name = 'heat-exchanger'
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 BASE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['steam-turbine'] = {
|
['steam-turbine'] = {
|
||||||
type = 'generator',
|
type = 'generator',
|
||||||
name = 'steam-turbine',
|
name = 'steam-turbine'
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
-- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['fusion-reactor'] = {
|
['fusion-reactor'] = {
|
||||||
mod = 'space-age',
|
mod = 'space-age',
|
||||||
type = 'fusion-reactor',
|
name = 'fusion-reactor'
|
||||||
name = 'fusion-reactor',
|
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
-- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['fusion-generator'] = {
|
['fusion-generator'] = {
|
||||||
mod = 'space-age',
|
mod = 'space-age',
|
||||||
type = 'fusion-generator',
|
name = 'fusion-generator'
|
||||||
name = 'fusion-generator',
|
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
-- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
-- MBE A 2 SPACE_AGE ENTITY,RECIPE,RESEARCH_EFFECT
|
||||||
['heating-tower'] = {
|
['heating-tower'] = {
|
||||||
mod = 'space-age',
|
mod = 'space-age',
|
||||||
type = 'reactor',
|
type = 'reactor',
|
||||||
name = 'heating-tower',
|
name = 'heating-tower',
|
||||||
tech = 'heating-tower',
|
tech = 'heating-tower'
|
||||||
max = math.min(tonumber(settings.startup['PHI-MB-ENERGY'].value) or 1, 3)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -279,7 +279,9 @@ end
|
|||||||
for _, v in pairs(items) do
|
for _, v in pairs(items) do
|
||||||
v.mod = v.mod or 'base'
|
v.mod = v.mod or 'base'
|
||||||
v.min = v.min or 2
|
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.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
|
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'
|
v.category = v.category or 'item'
|
||||||
|
|||||||
Reference in New Issue
Block a user