mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-03-28 20:34:39 +09:00
.
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
local items = require 'config'
|
||||
local param = require 'config'
|
||||
local main = require 'main'
|
||||
local items = require 'mbe-config'
|
||||
|
||||
-- MBE C 1 FLUID
|
||||
-- MBE C 1 BASE 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
|
||||
-- MBE A 7 BASE RESEARCH
|
||||
for i = 1, 7 do
|
||||
data:extend({{
|
||||
type = 'technology',
|
||||
@@ -13,9 +15,28 @@ for i = 1, 7 do
|
||||
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]}},
|
||||
icons = {{icon = '__base__/graphics/technology/solar-energy.png', icon_size = 256, tint = param['tint'][i]}},
|
||||
order = 'a-h-' .. i,
|
||||
localised_name = {'phi-cl.combine', {'technology-name.compound-energy'}, tostring(i)},
|
||||
localised_description = {'technology-description.compound-energy'}
|
||||
}})
|
||||
end
|
||||
|
||||
for _, v in pairs(items) do
|
||||
if v.enabled and (v.max >= v.min) then
|
||||
v.mod = v.mod or 'base'
|
||||
v.category = v.category or 'item'
|
||||
v.ref_name = v.ref_name or v.name
|
||||
v.tech = v.tech or 'compound-energy'
|
||||
v.min = v.min or 2
|
||||
|
||||
for j=v.min, v.max, 1 do
|
||||
main.EEE(v, j)
|
||||
main.EI(v, j)
|
||||
main.ER(v, j)
|
||||
main.ET(v, j)
|
||||
end
|
||||
|
||||
main.EL(v)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user