up
This commit is contained in:
parent
81361d58dd
commit
4eadc7c28c
1 changed files with 43 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ end
|
||||||
function util.get_stack_size(default)
|
function util.get_stack_size(default)
|
||||||
if mods.Krastorio2 then
|
if mods.Krastorio2 then
|
||||||
local size = get_setting("kr-stack-size")
|
local size = get_setting("kr-stack-size")
|
||||||
if size then
|
if size and tonumber(size) then
|
||||||
return tonumber(size)
|
return tonumber(size)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -119,6 +119,48 @@ function util.se_landfill(params)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- k2 matter
|
||||||
|
-- params: {k2matter}, k2baseicon , {icon}
|
||||||
|
function util.k2matter(params)
|
||||||
|
local matter = require("__Krastorio2__/lib/public/data-stages/matter-util")
|
||||||
|
if mods["space-exploration"] then
|
||||||
|
params.k2matter.need_stabilizer = true
|
||||||
|
end
|
||||||
|
if not params.k2matter.minimum_conversion_quantity then
|
||||||
|
params.k2matter.minimum_conversion_quantity = 10
|
||||||
|
end
|
||||||
|
data:extend(
|
||||||
|
{
|
||||||
|
{
|
||||||
|
type = "technology",
|
||||||
|
name = params.k2matter.unlocked_by_technology,
|
||||||
|
icons =
|
||||||
|
{
|
||||||
|
{
|
||||||
|
icon = util.k2assets().."/technologies/matter-"..params.k2baseicon..".png",
|
||||||
|
icon_size = 256,
|
||||||
|
},
|
||||||
|
params.icon,
|
||||||
|
},
|
||||||
|
prerequisites = {"kr-matter-processing"},
|
||||||
|
unit =
|
||||||
|
{
|
||||||
|
count = 350,
|
||||||
|
ingredients =
|
||||||
|
{
|
||||||
|
{"production-science-pack", 1},
|
||||||
|
{"utility-science-pack", 1},
|
||||||
|
{"matter-tech-card", 1}
|
||||||
|
},
|
||||||
|
time = 45,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
matter.createMatterRecipe(params.k2matter)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
-- se matter
|
-- se matter
|
||||||
-- params: ore, energy_required, quant_out, quant_in, icon_size, stream_out
|
-- params: ore, energy_required, quant_out, quant_in, icon_size, stream_out
|
||||||
function util.se_matter(params)
|
function util.se_matter(params)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue