mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 12:11:40 +09:00
.
This commit is contained in:
@@ -4,13 +4,12 @@ local file_stage = 1
|
|||||||
|
|
||||||
if settings.startup['PHI-MB'].value and settings.startup['PHI-MB-ENERGY'].value then
|
if settings.startup['PHI-MB'].value and settings.startup['PHI-MB-ENERGY'].value then
|
||||||
data.raw['fluid']['steam'].max_temperature = ((settings.startup['PHI-MB-ENERGY-POWER-TIER'].value > 1) and 5000) or data.raw['fluid']['steam'].max_temperature
|
data.raw['fluid']['steam'].max_temperature = ((settings.startup['PHI-MB-ENERGY-POWER-TIER'].value > 1) and 5000) or data.raw['fluid']['steam'].max_temperature
|
||||||
local ml = math.max(tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-TIER'].value) or 1, tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value) or 1)
|
|
||||||
|
|
||||||
for i = 1, 7 do
|
for i = 1, 7 do
|
||||||
data:extend({{
|
data:extend({{
|
||||||
type = 'technology',
|
type = 'technology',
|
||||||
name = 'compound-energy-' .. i,
|
name = 'compound-energy-' .. i,
|
||||||
enabled = (i <= ml),
|
enabled = (i <= tonumber(settings.startup['PHI-MB-ENERGY-POWER-TIER'].value)),
|
||||||
prerequisites = ((i > 1) and {'compound-energy-' .. (i - 1)}) or {'solar-energy', 'advanced-circuit', 'electric-energy-accumulators'},
|
prerequisites = ((i > 1) and {'compound-energy-' .. (i - 1)}) or {'solar-energy', 'advanced-circuit', 'electric-energy-accumulators'},
|
||||||
effects = {},
|
effects = {},
|
||||||
upgrade = true,
|
upgrade = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user