mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-30 12:01:39 +09:00
Update data.lua
This commit is contained in:
@@ -84,14 +84,25 @@ local function ER(source, tier)
|
|||||||
result = source.name .. '-' .. tier,
|
result = source.name .. '-' .. tier,
|
||||||
}})
|
}})
|
||||||
else
|
else
|
||||||
data:extend({{
|
if tier == 2 then
|
||||||
type = 'recipe',
|
data:extend({{
|
||||||
name = source.name .. '-' .. tier,
|
type = 'recipe',
|
||||||
energy_required = 2,
|
name = source.name .. '-' .. tier,
|
||||||
enabled = false,
|
energy_required = 2,
|
||||||
ingredients = {{na, 1}, {source.name, 1}},
|
enabled = false,
|
||||||
result = source.name .. '-' .. tier,
|
ingredients = {{na, 1}},
|
||||||
}})
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user