krastorio2 2.0 compatibility

This commit is contained in:
Matt Grogan 2025-05-01 12:29:39 -04:00 committed by brevven
parent a15f4fe5b6
commit c0d9c352e8
7 changed files with 34 additions and 22 deletions

View file

@ -2,13 +2,16 @@ if mods["Krastorio2"] then
local util = require("data-util");
util.k2matter({
k2matter = {
item_name = "silica",
minimum_conversion_quantity = 20,
matter_value = .65,
material = {
name = "silica",
type = "item",
amount = 20
},
matter_count = .65,
energy_required = 2,
only_deconversion = false,
need_stabilizer = false,
unlocked_by_technology = "kr-matter-stone-processing"
needs_stabilizer = false,
allow_productivity = true,
unlocked_by = "kr-matter-stone-processing"
},
})
}, false)
end

View file

@ -20,7 +20,7 @@ if mods["space-exploration"] then
{name = "silicon", amount = 6},
}
if string.sub(mods["space-exploration"], 1, 3) == "0.6" then
table.insert(recipe.ingredients, {"coke", 1})
table.insert(recipe.ingredients, {"kr-coke", 1})
recipe.icons = {
{ icon = "__Krastorio2Assets__/icons/items-with-variations/silicon/silicon.png", icon_size = 64},
{ icon = "__space-exploration-graphics__/graphics/icons/fluid/pyroflux.png", icon_size = 64, scale=0.25, shift= {-10, -10}},