Fix K2 compatibility

This commit is contained in:
Simon Brodtmann 2025-10-08 23:56:22 +02:00
parent 5378517c41
commit 0ca86d181c
2 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,7 @@ if mods["space-exploration"] then
if mods["Krastorio2"] then
bobmods.lib.recipe.remove_result("se-recycle-radar", "electronic-circuit")
bobmods.lib.recipe.add_result("se-recycle-radar", "automation-core")
bobmods.lib.recipe.add_result("se-recycle-radar", "kr-automation-core")
else
@ -105,10 +105,10 @@ end
if mods["Krastorio2"] then
bobmods.lib.recipe.add_ingredient("advanced-circuit", {type="item", name="electronic-components", amount=2})
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="item", name="rare-metals", amount=5})
bobmods.lib.recipe.add_ingredient("advanced-circuit", {type="item", name="kr-electronic-components", amount=2})
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="item", name="kr-rare-metals", amount=5})
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="item", name="processing-electronics", amount=2})
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="fluid", name="nitric-acid", amount=10})
bobmods.lib.recipe.add_ingredient("advanced-processing-unit", {type="fluid", name="kr-nitric-acid", amount=10})
bobmods.lib.recipe.add_ingredient("kr-advanced-assembling-machine", {"advanced-processing-unit", amount=2})
bobmods.lib.recipe.add_ingredient("kr-advanced-furnace", {"advanced-processing-unit", amount=5})
@ -161,10 +161,10 @@ if data.raw.item["se-processing-unit-holmium"] then data.raw.item["se-processing
end
--progression fix for krastorio:
if data.raw.fluid["hydrogen-chloride"] then
if data.raw.fluid["kr-hydrogen-chloride"] then
bobmods.lib.tech.add_recipe_unlock("kr-fluids-chemistry", "hydrogen-chloride")
bobmods.lib.tech.remove_recipe_unlock("kr-advanced-chemistry", "hydrogen-chloride")
bobmods.lib.tech.add_recipe_unlock("kr-fluids-chemistry", "kr-hydrogen-chloride")
bobmods.lib.tech.remove_recipe_unlock("kr-advanced-chemistry", "kr-hydrogen-chloride")
end

View file

@ -16,8 +16,8 @@ for i, recipe in pairs(data.raw.recipe) do
end
if data.raw.fluid["hydrogen-chloride"] then
bobmods.lib.recipe.replace_ingredient("ferric-chloride-solution", "water", "hydrogen-chloride")
if data.raw.fluid["kr-hydrogen-chloride"] then
bobmods.lib.recipe.replace_ingredient("ferric-chloride-solution", "water", "kr-hydrogen-chloride")
end
if data.raw.item["tinned-copper-cable"] then