mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 20:21:40 +09:00
Update data.lua
This commit is contained in:
@@ -35,14 +35,14 @@ local function EE(source, tier)
|
|||||||
elseif (source.type == 'solar-panel') then
|
elseif (source.type == 'solar-panel') then
|
||||||
item.production = (source.base * (4 ^ (tier - 1))) .. 'kW'
|
item.production = (source.base * (4 ^ (tier - 1))) .. 'kW'
|
||||||
elseif (source.type == 'boiler') then
|
elseif (source.type == 'boiler') then
|
||||||
item.target_temperature = 15 + (150 * (2 ^ (tier - source.min + 1)))
|
item.target_temperature = 15 + (150 * tier)
|
||||||
item.fluid_box.height = 4
|
item.fluid_box.height = 4
|
||||||
item.output_fluid_box.height = 4
|
item.output_fluid_box.height = 4
|
||||||
item.output_fluid_box.base_level = 5
|
item.output_fluid_box.base_level = 5
|
||||||
item.energy_consumption = 1.8 * tier .. 'MW'
|
item.energy_consumption = 1.8 * tier .. 'MW'
|
||||||
elseif (source.type == 'generator') then
|
elseif (source.type == 'generator') then
|
||||||
item.fluid_box.height = 4
|
item.fluid_box.height = 4
|
||||||
item.maximum_temperature = 15 + (150 * (2 ^ (tier - source.min + 1)))
|
item.maximum_temperature = 15 + (150 * tier)
|
||||||
end
|
end
|
||||||
|
|
||||||
if (tier <= source.max - 1) then
|
if (tier <= source.max - 1) then
|
||||||
@@ -69,24 +69,30 @@ 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 source.type == 'accumulator' then
|
if source.type == 'solar-panel' or source.type == 'accumulator' then
|
||||||
n = 4
|
|
||||||
end
|
|
||||||
|
|
||||||
data:extend({{
|
data:extend({{
|
||||||
type = 'recipe',
|
type = 'recipe',
|
||||||
name = source.name .. '-' .. tier,
|
name = source.name .. '-' .. tier,
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
enabled = false,
|
enabled = false,
|
||||||
ingredients = {{na, n}},
|
ingredients = {{na, 4}},
|
||||||
result = source.name .. '-' .. tier,
|
result = source.name .. '-' .. tier,
|
||||||
}})
|
}})
|
||||||
|
else
|
||||||
|
data:extend({{
|
||||||
|
type = 'recipe',
|
||||||
|
name = source.name .. '-' .. tier,
|
||||||
|
energy_required = 2,
|
||||||
|
enabled = false,
|
||||||
|
ingredients = {{na, 1}, {source.name, 1}},
|
||||||
|
result = source.name .. '-' .. tier,
|
||||||
|
}})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- technology
|
-- technology
|
||||||
|
|||||||
Reference in New Issue
Block a user