From 2ab6edd596dac469722ef16daa602eacf3709584 Mon Sep 17 00:00:00 2001 From: Brevven Date: Fri, 23 Dec 2022 22:03:44 -0800 Subject: [PATCH] fix fluid recipes with too many inputs --- changelog.txt | 5 ++++- prototypes/pcb.lua | 8 ++++++-- recipe-updates.lua | 6 ++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/changelog.txt b/changelog.txt index f04e627..7a80d48 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,9 @@ --------------------------------------------------------------------------------------------------- Version: 0.0.4 -Date: 2022-12-09 +Date: 2022-12-24 + Fixes: + - SE/K2: Iridium powder can be made in normal chem plant + - Without "more intermediates", PCB can be made in normal chem plant Changes: - SE: Less salt in core mining --------------------------------------------------------------------------------------------------- diff --git a/prototypes/pcb.lua b/prototypes/pcb.lua index 77f6512..64a3af4 100644 --- a/prototypes/pcb.lua +++ b/prototypes/pcb.lua @@ -55,11 +55,15 @@ data:extend({ results = { {"pcb", 2}, }, - ingredients = { + ingredients = util.me.more() and { {"pcb-substrate", 2}, {"copper-plate", 2}, - util.me.more() and {"ferric-chloride", 1} or {type="fluid", name="hydrogen-chloride", amount=15}, + {"ferric-chloride", 1}, {type="fluid", name="water", amount=10}, + } or { + {"pcb-substrate", 2}, + {"copper-plate", 2}, + {type="fluid", name="hydrogen-chloride", amount=15} }, enabled = false, category = "crafting-with-fluid", diff --git a/recipe-updates.lua b/recipe-updates.lua index b9c6a40..6a7bdab 100644 --- a/recipe-updates.lua +++ b/recipe-updates.lua @@ -45,8 +45,10 @@ if not mods.Krastorio2 then -- consider this handled in enrichment util.set_main_product("molten-titanium", "molten-titanium") end util.add_ingredient("se-steel-ingot", "salt", 2) -util.add_ingredient("se-iridium-powder", "chlorine", 20) -util.add_product("se-iridium-powder", {type="fluid", name="chlorine", amount=19, catalyst_amount=19}) +if not mods.Krastorio2 then + util.add_ingredient("se-iridium-powder", "chlorine", 20) + util.add_product("se-iridium-powder", {type="fluid", name="chlorine", amount=19, catalyst_amount=19}) +end util.replace_some_ingredient("se-vitamelange-bloom", "sand", 10, "salt", 1) util.add_ingredient("se-nutrient-gel", "salt", 1)