diff --git a/changelog.txt b/changelog.txt index f6203cd..aefc8d2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.12 +Date: 2025-04-08 + Changes: + - Improve compatbility with Crushing Industry +--------------------------------------------------------------------------------------------------- Version: 2.0.11 Date: 2025-03-23 Fixes: diff --git a/data-util.lua b/data-util.lua index 2ab06b4..f121833 100644 --- a/data-util.lua +++ b/data-util.lua @@ -754,8 +754,17 @@ function util.add_effect(technology_name, effect) if not data.raw.recipe[effect.recipe] then return end - table.insert(technology.effects, effect) end + table.insert(technology.effects, effect) + end +end + +-- Make a technology boost productivity for a recipe +function util.add_to_productivity_research(technology_name, recipe_name, amount) + if not amount then amount = 0.1 end + local recipe = data.raw.recipe[recipe_name] + if recipe then + util.add_effect(technology_name, { type = "change-recipe-productivity", recipe = recipe_name, change = amount}) end end diff --git a/info.json b/info.json index 96a08b1..70344bf 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "bzsilicon", - "version": "2.0.11", + "version": "2.0.12", "factorio_version": "2.0", "title": "Silica & Silicon", "author": "Brevven", diff --git a/prototypes/basic-crusher.lua b/prototypes/basic-crusher.lua index a445ff4..c734739 100644 --- a/prototypes/basic-crusher.lua +++ b/prototypes/basic-crusher.lua @@ -4,7 +4,7 @@ local item_sounds = require("__base__.prototypes.item_sounds") local sounds = require("__base__.prototypes.entity.sounds") local hit_effects = require("__base__.prototypes.entity.hit-effects") -if mods["space-age"] and not data.raw.furnace["basic-crusher"] then +if mods["space-age"] and not data.raw.furnace["basic-crusher"] and not mods["crushing-industry"] then -- note that crusher is a space age asset and as such can only be used with space age local graphics = require("__space-age__.prototypes.entity.crusher-pictures")