bzgold2/bzgold2/matter.lua
pla 8db4982e5b Fixing K2 matter stuff (#1)
Fixed K2 matter generation
Fixed Matter tech icon size
Sadly the matter conversion recipe icons are not fixed, because the K2 routine doesn't like the 128px icons
Check if Matter recipes already exist, error with Them Thar Hills

![image](/attachments/f1ccec6e-768a-425e-b0dc-1691b8d78037)

Co-authored-by: pla
Reviewed-on: cacklingfiend/bzgold2#1
Co-authored-by: pla <pla@noreply.example.org>
Co-committed-by: pla <pla@noreply.example.org>
2025-11-01 13:01:21 +01:00

31 lines
1,009 B
Lua

-- Matter recipes for Krastorio2
if mods["Krastorio2"] then
local util = require("data-util")
if not data.raw.recipe["kr-gold-ore-to-matter"] then
util.k2matter({
k2matter = {
material = { type = "item", name = "gold-ore", amount = 30 },
item_name = "gold-ore",
matter_count = 30,
energy_required = 10,
needs_stabilizer = false,
unlocked_by = "gold-matter-processing",
},
icon = { icon = "__bzgold2__/graphics/icons/gold-ore.png", icon_size = 128, scale = 0.5 },
})
end
if settings.startup["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