mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 04:11:39 +09:00
Update data.lua
This commit is contained in:
@@ -69,30 +69,24 @@ end
|
|||||||
-- recipe
|
-- recipe
|
||||||
local function ER(source, tier)
|
local function ER(source, tier)
|
||||||
local na = source.name
|
local na = source.name
|
||||||
|
local n = 2
|
||||||
|
|
||||||
if tier > 2 then
|
if tier > 2 then
|
||||||
na = na .. '-' .. (tier - 1)
|
na = na .. '-' .. (tier - 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
if source.type == 'solar-panel' or ource.type == 'accumulator' then
|
if source.type == 'solar-panel' or source.type == 'accumulator' then
|
||||||
data:extend({{
|
n = 4
|
||||||
type = 'recipe',
|
|
||||||
name = source.name .. '-' .. tier,
|
|
||||||
energy_required = 2,
|
|
||||||
enabled = false,
|
|
||||||
ingredients = {{na, 4}},
|
|
||||||
result = source.name .. '-' .. tier,
|
|
||||||
}})
|
|
||||||
else
|
|
||||||
data:extend({{
|
|
||||||
type = 'recipe',
|
|
||||||
name = source.name .. '-' .. tier,
|
|
||||||
energy_required = 2,
|
|
||||||
enabled = false,
|
|
||||||
ingredients = {{na, 2}},
|
|
||||||
result = source.name .. '-' .. tier,
|
|
||||||
}})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
data:extend({{
|
||||||
|
type = 'recipe',
|
||||||
|
name = source.name .. '-' .. tier,
|
||||||
|
energy_required = 2,
|
||||||
|
enabled = false,
|
||||||
|
ingredients = {{na, n}},
|
||||||
|
result = source.name .. '-' .. tier,
|
||||||
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- technology
|
-- technology
|
||||||
|
|||||||
Reference in New Issue
Block a user