From 8585196150d8b40f83437052737d024f4a8163c5 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sun, 28 Mar 2021 20:49:48 -0700 Subject: [PATCH] rebalance, ers+bi --- changelog.txt | 8 ++++++++ info.json | 2 +- recipe-updates.lua | 49 ++++++++++++++++++++++++++++------------------ 3 files changed, 39 insertions(+), 20 deletions(-) diff --git a/changelog.txt b/changelog.txt index b5c0ece..810c907 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,12 @@ --------------------------------------------------------------------------------------------------- +Version: 0.6.6 +Date: 2021-03-20 + Changes: + - Rebalance: circuit network components always use silicon, not wafers + This makes them craftable when they are unlocked, and also improves mod compatibility. + - Programmable speaker also uses 1 silicon. + - When using Extended Research System with Bio Industries, unlock some stuff earlier. +--------------------------------------------------------------------------------------------------- Version: 0.6.5 Date: 2021-03-19 Features: diff --git a/info.json b/info.json index 788894d..a25fc2f 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzsilicon", - "version": "0.6.5", + "version": "0.6.6", "factorio_version": "1.1", "title": "Silica & Silicon", "author": "Brevven", diff --git a/recipe-updates.lua b/recipe-updates.lua index 0edff22..1269a1a 100644 --- a/recipe-updates.lua +++ b/recipe-updates.lua @@ -47,13 +47,6 @@ end util.replace_ingredient("beacon", "copper-cable", "optical-fiber") util.add_prerequisite("effect-transmission", "fiber-optics") -local function sw() - if util.more_intermediates() then - return "silicon-wafer" - end - return "silicon" -end - -- Circuit network changes local useful_combinators = {"timer-combinator", "counting-combinator", "random-combinator", "power-combinator", "max-combinator", "min-combinator", "and-gate-combinator", @@ -63,27 +56,28 @@ local useful_combinators = {"timer-combinator", "counting-combinator", "random-c "statistic-combinator", "pollution-combinator", "emitter-combinator", "receiver-combinator"} util.replace_ingredient("green-wire", "copper-cable", "optical-fiber") -util.replace_ingredient("green-wire", "electronic-circuit", sw()) +util.replace_ingredient("green-wire", "electronic-circuit", "silicon") util.replace_ingredient("red-wire", "copper-cable", "optical-fiber") -util.replace_ingredient("red-wire", "electronic-circuit", sw()) +util.replace_ingredient("red-wire", "electronic-circuit", "silicon") if not mods["IndustrialRevolution"] then - util.add_ingredient("arithmetic-combinator", sw(), 1) - util.add_ingredient("constant-combinator", sw(), 1) - util.add_ingredient("decider-combinator", sw(), 1) + util.add_ingredient("arithmetic-combinator", "silicon", 1) + util.add_ingredient("constant-combinator", "silicon", 1) + util.add_ingredient("decider-combinator", "silicon", 1) + util.add_ingredient("programmable-speaker", "silicon", 1) if mods["UsefulCombinators"] then for i, v in ipairs(useful_combinators) do - util.add_ingredient(v, sw(), 1) + util.add_ingredient(v, "silicon", 1) end end if mods["crafting_combinator"] then - util.add_ingredient("crafting_combinator:crafting-combinator", sw(), 1) - util.add_ingredient("crafting_combinator:recipe-combinator", sw(), 1) + util.add_ingredient("crafting_combinator:crafting-combinator", "silicon", 1) + util.add_ingredient("crafting_combinator:recipe-combinator", "silicon", 1) end - util.add_ingredient("clock-combinator", sw(), 1) - util.add_ingredient("power-meter-combinator", sw(), 1) - util.add_ingredient("ghost-scanner", sw(), 1) - util.add_ingredient("item-sensor", sw(), 1) + util.add_ingredient("clock-combinator", "silicon", 1) + util.add_ingredient("power-meter-combinator", "silicon", 1) + util.add_ingredient("ghost-scanner", "silicon", 1) + util.add_ingredient("item-sensor", "silicon", 1) else util.add_prerequisite("circuit-network", "fiber-optics") end @@ -148,3 +142,20 @@ if mods["space-exploration"] then util.add_ingredient("se-chemical-gel", "silica", 10) util.add_ingredient("se-material-testing-pack", "silica", 1) end + + + +if mods["extended-research-system"] and mods["Bio_Industries"] then + data:extend({{ + type = "recipe", + name = "bi-stone-crusher-ers", + category = "crafting", + enabled = true, + energy_required = 6, + ingredients = {{"iron-plate", 100}, {"iron-gear-wheel", 5}}, + result = "bi-stone-crusher", + }}) + if data.raw.recipe["bi-crushed-stone-1"] then + data.raw.recipe["bi-crushed-stone-1"].enabled = true + end +end