diff --git a/changelog.txt b/changelog.txt index 5c8f6f3..7e916de 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.5.5 +Date: 2022-12-28 + Changes: + - Less graphite needed for electronic circuits +--------------------------------------------------------------------------------------------------- Version: 0.5.4 Date: 2022-12-25 Fixes: diff --git a/data-final-fixes.lua b/data-final-fixes.lua index aa6b781..fa44c80 100644 --- a/data-final-fixes.lua +++ b/data-final-fixes.lua @@ -14,9 +14,17 @@ if mods.MDbobelectronics or mods.bobelectronics then util.replace_ingredient("basic-electronic-components", "coal", "graphite") util.replace_ingredient("basic-electronic-components", "coke", "graphite") else - util.replace_some_ingredient("electronic-circuit", "copper-cable", 1, "graphite", 1) + amt_ec = util.get_amount("electronic-circuit") + if amt_ec == 1 then + util.multiply_recipe("electronic-circuit", 2) + end + util.replace_some_ingredient("electronic-circuit", "copper-cable", 2, "graphite", 1) -- AAI alternate green circuit - util.replace_some_ingredient("electronic-circuit-stone", "copper-cable", 1, "graphite", 1) + local amt_ec = util.get_amount("electronic-circuit-stone", "electronic-circuit") + if amt_ec == 1 then + util.multiply_recipe("electronic-circuit-stone", 2) + end + util.replace_some_ingredient("electronic-circuit-stone", "copper-cable", 2, "graphite", 1) end if data.raw.recipe["low-density-structure"] and diff --git a/info.json b/info.json index 963f1e3..281ef84 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzcarbon", - "version": "0.5.4", + "version": "0.5.5", "factorio_version": "1.1", "title": "Graphite & Diamonds", "author": "Brevven",