mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-03-28 12:24:39 +09:00
.
This commit is contained in:
@@ -2,23 +2,17 @@ local items = require 'config'
|
||||
local main = require 'main'
|
||||
local file_stage = 1
|
||||
|
||||
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
|
||||
if settings.startup['PHI-MB'].value then
|
||||
if settings.startup['PHI-MB-ENERGY'].value then
|
||||
require 'data/mbe'
|
||||
end
|
||||
|
||||
for i = 1, 7 do
|
||||
data:extend({{
|
||||
type = 'technology',
|
||||
name = 'compound-energy-' .. i,
|
||||
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'},
|
||||
effects = {},
|
||||
upgrade = true,
|
||||
unit = {count = math.floor(125 * (i ^ 2)), ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}}, time = 30},
|
||||
icons = {{icon = '__base__/graphics/technology/solar-energy.png', icon_size = 256, tint = items['tint'][i]}},
|
||||
order = 'a-h-' .. i,
|
||||
localised_name = {'phi-cl.combine', {'technology-name.compound-energy'}, tostring(i)},
|
||||
localised_description = {'technology-description.compound-energy'}
|
||||
}})
|
||||
if settings.startup['PHI-MB-MACHINE'].value then
|
||||
require 'data/mbm'
|
||||
end
|
||||
|
||||
if settings.startup['PHI-MB-EQUIPMENT'].value then
|
||||
require 'data/mbq'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
22
PHI-CL/data/mbe.lua
Normal file
22
PHI-CL/data/mbe.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
local items = require 'config'
|
||||
local main = require 'main'
|
||||
|
||||
-- MBE C 1 FLUID
|
||||
data.raw['fluid']['steam'].max_temperature = ((settings.startup['PHI-MB-ENERGY-POWER-TIER'].value > 1) and 5000) or data.raw['fluid']['steam'].max_temperature
|
||||
|
||||
-- MBE A 7 RESEARCH
|
||||
for i = 1, 7 do
|
||||
data:extend({{
|
||||
type = 'technology',
|
||||
name = 'compound-energy-' .. i,
|
||||
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'},
|
||||
effects = {},
|
||||
upgrade = true,
|
||||
unit = {count = math.floor(125 * (i ^ 2)), ingredients = {{'automation-science-pack', 1}, {'logistic-science-pack', 1}}, time = 30},
|
||||
icons = {{icon = '__base__/graphics/technology/solar-energy.png', icon_size = 256, tint = items['tint'][i]}},
|
||||
order = 'a-h-' .. i,
|
||||
localised_name = {'phi-cl.combine', {'technology-name.compound-energy'}, tostring(i)},
|
||||
localised_description = {'technology-description.compound-energy'}
|
||||
}})
|
||||
end
|
||||
0
PHI-CL/data/mbq.lua
Normal file
0
PHI-CL/data/mbq.lua
Normal file
Reference in New Issue
Block a user