diff --git a/changelog.txt b/changelog.txt index c151090..c2de587 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,8 @@ Date: 2021-03-08 - New visuals by snouz (icons, technologies) - New mod icon - Added icon mipmaps + Features: + - Beta Bio Industries compatibility: silica from crushed stone, concrete recipe update. --------------------------------------------------------------------------------------------------- Version: 0.4.1 Date: 2021-02-28 diff --git a/prototypes/silica-recipe.lua b/prototypes/silica-recipe.lua index 6670b51..5f87de0 100644 --- a/prototypes/silica-recipe.lua +++ b/prototypes/silica-recipe.lua @@ -11,7 +11,17 @@ data:extend( ingredients = {{"quartz", 10}}, result = "silica", result_count = 30 - } or { + } or mods["Bio_Industries"] and { + type = "recipe", + name = "silica", + category = "biofarm-mod-crushing", + enabled = false, + energy_required = 6, + ingredients = {{"stone-crushed", 4}}, + result = "silica", + result_count = 5, + } or + { type = "recipe", name = "silica", category = "smelting", diff --git a/recipe-updates.lua b/recipe-updates.lua index 6b17564..5f4e858 100644 --- a/recipe-updates.lua +++ b/recipe-updates.lua @@ -2,7 +2,12 @@ local util = require("__bzsilicon__.util"); if not mods["Krastorio2"] then util.remove_ingredient("concrete", "stone-brick"); - util.add_ingredient("concrete", "silica", 25); + if mods["Bio_Industries"] then + util.add_ingredient("concrete", "stone-brick", 3); + util.add_ingredient("concrete", "silica", 10); + else + util.add_ingredient("concrete", "silica", 25); + end util.add_prerequisite("concrete", "silica-processing") if util.more_intermediates() then