Update to 2.0

This commit is contained in:
Simon Brodtmann 2025-10-05 08:52:53 +02:00
parent 126c1bf6b3
commit 06281ea9ca
14 changed files with 196 additions and 341 deletions

View file

@ -1,15 +1,12 @@
-- Matter recipes for Krastorio2
if mods["Krastorio2"] then
local util = require("data-util");
util.k2matter({
k2matter = {
item_name = "salt",
matter_value = 2,
energy_required = 1,
need_stabilizer = false,
unlocked_by_technology = "salt-matter-processing",
},
icon = {icon = "__bzchlorine__/graphics/icons/salt.png", icon_size = 128, scale = 1}
})
local matter = require("__Krastorio2__/prototypes/libraries/matter");
local salt_matter = {
material = { type = "item", name = "salt", amount = 1 },
matter_count = 2,
energy_required = 1,
need_stabilizer = false,
unlocked_by_technology = "salt-matter-processing",
}
matter.make_recipes(salt_matter)
end