Limestone2/Limestone2/recipe-modify.lua
2025-10-13 16:03:56 +02:00

31 lines
No EOL
973 B
Lua

local util = require("data-util")
-- Main vanilla changes
util.add_ingredient("concrete", "quicklime", 10)
-- Mod changes
util.remove_ingredient("concrete", mods["Krastorio2"] and "kr-sand" or "sand")
--Concret
if mods["bzzirconium"] then
util.remove_ingredient("concrete", "zircon")
end
if mods["space-exploration"] then
util.add_product(mods["space-exploration"] and "se-scrap-recycling", { type = "item", name = "limestone", amount=1, probability=0.05})
util.add_ingredient("se-holmium-powder", "calcium-plate", 1)
util.remove_ingredient("se-holmium-powder", "copper-cable")
if mods["Krastorio2"] then
util.add_product("se-holmium-powder", {type = "item", name="calcium-chloride", amount=1})
end
end
if mods["bzcarbon"] then
if data.raw.item["salt"] then
util.replace_ingredient("steel-plate", "salt", "quicklime", 1)
else
util.add_ingredient("steel-plate", "quicklime", 1)
end
--TODO add slag?
end