Compare commits

...

2 commits

2 changed files with 20 additions and 15 deletions

View file

@ -168,7 +168,11 @@ function util.k2matter(params)
}, },
}) })
end end
matter.make_recipes(params.k2matter) if params.k2matter.only_deconversion then
matter.make_deconversion_recipe(params.k2matter)
else
matter.make_recipes(params.k2matter)
end
end end

View file

@ -1,7 +1,7 @@
-- Matter recipes for Krastorio2 -- Matter recipes for Krastorio2
if mods["Krastorio2"] then if mods["Krastorio2"] then
local util = require("data-util") local util = require("data-util")
if not data.raw.recipe["kr-gold-ore-to-matter"] then if not data.raw.recipe["kr-gold-ore-to-matter"] then
util.k2matter({ util.k2matter({
k2matter = { k2matter = {
@ -12,19 +12,20 @@ if mods["Krastorio2"] then
needs_stabilizer = false, needs_stabilizer = false,
unlocked_by = "gold-matter-processing", unlocked_by = "gold-matter-processing",
}, },
icon = {icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5} icon = { icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5 },
})
end
if settings["bzgold-silver"].value then
util.k2matter({
k2matter = {
material = { type = "item", name = "silver-ore", amount = 8 },
item_name = "silver-ore",
matter_count = 8,
energy_required = 5,
needs_stabilizer = false,
unlocked_by = "silver-matter-processing",
},
icon = { icon = "__bzgold2__/graphics/icons/silver-ore.png", icon_size = 128, scale = 0.5 },
}) })
end end
util.k2matter({
k2matter = {
material = { type = "item", name = "silver-ore", amount = 8 },
item_name = "silver-ore",
matter_count = 8,
energy_required = 5,
needs_stabilizer = false,
unlocked_by = "silver-matter-processing",
},
icon = {icon = "__bzgold2__/graphics/icons/silver-ore.png", icon_size = 128, scale = 0.5}
})
end end