productivity tech, crushing industries
This commit is contained in:
parent
7f46bdeb25
commit
b3740708b8
7 changed files with 32 additions and 5 deletions
|
|
@ -7,6 +7,9 @@ util.add_prerequisite("low-density-structure", "diamond-processing")
|
||||||
util.add_prerequisite("advanced-electronics-2", "diamond-processing")
|
util.add_prerequisite("advanced-electronics-2", "diamond-processing")
|
||||||
util.add_prerequisite("laser", "diamond-processing")
|
util.add_prerequisite("laser", "diamond-processing")
|
||||||
|
|
||||||
|
-- update carbon black alternate recipe if possible
|
||||||
|
util.replace_ingredient("carbon-black", "coal", "crushed-coal")
|
||||||
|
|
||||||
|
|
||||||
if not mods["space-age"] then -- more uses for graphene in vanilla
|
if not mods["space-age"] then -- more uses for graphene in vanilla
|
||||||
util.add_prerequisite("power-armor-mk2", "graphene")
|
util.add_prerequisite("power-armor-mk2", "graphene")
|
||||||
|
|
@ -40,6 +43,7 @@ end
|
||||||
|
|
||||||
-- space age
|
-- space age
|
||||||
if mods["space-age"] then
|
if mods["space-age"] then
|
||||||
|
util.add_ingredient("crusher", "diamond", 10)
|
||||||
util.add_ingredient("big-mining-drill", "diamond", 10)
|
util.add_ingredient("big-mining-drill", "diamond", 10)
|
||||||
util.add_prerequisite("big-mining-drill", "diamond-processing-2")
|
util.add_prerequisite("big-mining-drill", "diamond-processing-2")
|
||||||
util.replace_ingredient("quantum-processor", "tungsten-carbide", "diamond", 2)
|
util.replace_ingredient("quantum-processor", "tungsten-carbide", "diamond", 2)
|
||||||
|
|
@ -51,6 +55,11 @@ if mods["space-age"] then
|
||||||
util.set_product_probability("scrap-recycling", "processing-unit", 0.03)
|
util.set_product_probability("scrap-recycling", "processing-unit", 0.03)
|
||||||
util.add_ingredient("cryogenic-plant", "graphene", 20)
|
util.add_ingredient("cryogenic-plant", "graphene", 20)
|
||||||
util.add_ingredient("fluoroketone", "graphene", 1)
|
util.add_ingredient("fluoroketone", "graphene", 1)
|
||||||
|
|
||||||
|
-- Crushing industries
|
||||||
|
util.add_ingredient("crusher-2", "diamond", 10)
|
||||||
|
util.add_ingredient("big-crusher", "diamond", 10)
|
||||||
|
util.add_ingredient("big-electric-crusher", "diamond", 10)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- fullerenes & nanotubes
|
-- fullerenes & nanotubes
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,12 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.0.14
|
Version: 2.0.14
|
||||||
Date: 2025-03-23
|
Date: 2025-04-08
|
||||||
Changes:
|
Changes:
|
||||||
- none
|
- Space Age: Crusher recipe requires diamonds.
|
||||||
|
- Carbon black recipe uses crushed coal if available
|
||||||
|
- Further improved compatibility with Crushing Industry recipes
|
||||||
|
- Space Age: Asteroid crushing recipe now affected by productivity research
|
||||||
|
- Space Age: Low Density Structure recipes now affected by productivity reseearch
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 2.0.13
|
Version: 2.0.13
|
||||||
Date: 2025-03-22
|
Date: 2025-03-22
|
||||||
|
|
|
||||||
|
|
@ -754,8 +754,17 @@ 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
|
||||||
table.insert(technology.effects, effect)
|
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzcarbon",
|
"name": "bzcarbon",
|
||||||
"version": "2.0.13",
|
"version": "2.0.14",
|
||||||
"factorio_version": "2.0",
|
"factorio_version": "2.0",
|
||||||
"title": "Graphite & Diamonds",
|
"title": "Graphite & Diamonds",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,8 @@ if util.me.use_fullerenes() then
|
||||||
cutil.nanotube_recipe("casting-low-density-structure", "low-density-structure")
|
cutil.nanotube_recipe("casting-low-density-structure", "low-density-structure")
|
||||||
cutil.nanotube_recipe("space-platform-foundation")
|
cutil.nanotube_recipe("space-platform-foundation")
|
||||||
cutil.nanotube_recipe("low-density-structure-from-aluminum", "low-density-structure")
|
cutil.nanotube_recipe("low-density-structure-from-aluminum", "low-density-structure")
|
||||||
|
|
||||||
|
util.add_to_productivity_research("low-density-structure-productivity", "low-density-structure-nanotubes")
|
||||||
|
util.add_to_productivity_research("low-density-structure-productivity", "casting-low-density-structure-nanotubes")
|
||||||
|
util.add_to_productivity_research("low-density-structure-productivity", "low-density-structure-from-aluminum-nanotubes")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
|
|
|
||||||
|
|
@ -38,4 +38,5 @@ if mods["space-age"] then
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
util.add_unlock("space-platform-thruster", "alternative-carbonic-asteroid-crushing")
|
util.add_unlock("space-platform-thruster", "alternative-carbonic-asteroid-crushing")
|
||||||
|
util.add_to_productivity_research("asteroid-productivity", "alternative-carbonic-asteroid-crushing")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue