From 788956c09157f3b8a2ca7548b4466cdc4a055014 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 4 Dec 2022 14:26:46 -0800 Subject: [PATCH] alternate electronic circuit recipe --- changelog.txt | 6 ++++++ info.json | 2 +- recipe-updates.lua | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 08f5a42..1095d1d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,10 @@ --------------------------------------------------------------------------------------------------- +Version: 0.0.3 +Date: 2022-12-05 + Changes: + - K2: Alternate electronic component recipe uses PCB now. Note that the SE+K2 lithium recipe + cannot currently be modified in a reasonable fasion, so that one is still unchanged. +--------------------------------------------------------------------------------------------------- Version: 0.0.2 Date: 2022-12-04 Features: diff --git a/info.json b/info.json index d322afe..5b574d2 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzchlorine", - "version": "0.0.2", + "version": "0.0.3", "factorio_version": "1.1", "title": "Salt & Chlorine", "author": "Brevven", diff --git a/recipe-updates.lua b/recipe-updates.lua index cd96c56..b9c6a40 100644 --- a/recipe-updates.lua +++ b/recipe-updates.lua @@ -4,6 +4,11 @@ if mods.Krastorio2 then local amt = util.get_amount("electronic-components") util.add_ingredient("electronic-components", "pcb", amt) util.remove_ingredient("electronic-components", "plastic-bar") + + amt = util.get_amount("kr-s-c-electronic-components") + util.add_ingredient("kr-s-c-electronic-components", "pcb", amt) + util.remove_ingredient("kr-s-c-electronic-components", "plastic-bar") + local amt_ac = util.get_amount("advanced-circuit") util.set_ingredient("advanced-circuit", "copper-cable", amt_ac) else