crushing industry

This commit is contained in:
Brevven 2025-04-20 01:44:39 -07:00
parent 7d383717d1
commit c35da49681
4 changed files with 17 additions and 3 deletions

View file

@ -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:

View file

@ -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

View file

@ -1,6 +1,6 @@
{
"name": "bzsilicon",
"version": "2.0.11",
"version": "2.0.12",
"factorio_version": "2.0",
"title": "Silica & Silicon",
"author": "Brevven",

View file

@ -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")