crushing industry
This commit is contained in:
parent
7d383717d1
commit
c35da49681
4 changed files with 17 additions and 3 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 2.0.12
|
||||||
|
Date: 2025-04-08
|
||||||
|
Changes:
|
||||||
|
- Improve compatbility with Crushing Industry
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.0.11
|
Version: 2.0.11
|
||||||
Date: 2025-03-23
|
Date: 2025-03-23
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
||||||
|
|
@ -754,9 +754,18 @@ function util.add_effect(technology_name, effect)
|
||||||
if not data.raw.recipe[effect.recipe] then
|
if not data.raw.recipe[effect.recipe] then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
end
|
||||||
table.insert(technology.effects, effect)
|
table.insert(technology.effects, effect)
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|
||||||
-- Add an effect to a given technology to unlock recipe
|
-- Add an effect to a given technology to unlock recipe
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzsilicon",
|
"name": "bzsilicon",
|
||||||
"version": "2.0.11",
|
"version": "2.0.12",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"title": "Silica & Silicon",
|
"title": "Silica & Silicon",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ local item_sounds = require("__base__.prototypes.item_sounds")
|
||||||
local sounds = require("__base__.prototypes.entity.sounds")
|
local sounds = require("__base__.prototypes.entity.sounds")
|
||||||
local hit_effects = require("__base__.prototypes.entity.hit-effects")
|
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
|
-- 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")
|
local graphics = require("__space-age__.prototypes.entity.crusher-pictures")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue