mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-03-28 12:24:39 +09:00
23 lines
1.1 KiB
Lua
23 lines
1.1 KiB
Lua
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
|