lds/srp fixes, tech tree tweaks
This commit is contained in:
parent
9b8309ebe5
commit
cb2d4cb2b3
6 changed files with 72 additions and 44 deletions
|
|
@ -12,10 +12,6 @@ util.add_prerequisite("power-armor-mk2", "graphene")
|
|||
util.add_prerequisite("rocket-control-unit", "graphene")
|
||||
|
||||
util.add_prerequisite("electronics", "graphite-processing")
|
||||
if mods.Krastorio2 then
|
||||
util.add_prerequisite("graphite-processing", "kr-crusher")
|
||||
end
|
||||
|
||||
|
||||
-- furnace recipe rework w/ crucible, more in data-final-fixes
|
||||
util.add_effect("advanced-material-processing-2", {type="unlock-recipe", recipe="crucible"})
|
||||
|
|
|
|||
|
|
@ -1,4 +1,12 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.18
|
||||
Date: 2022-01-17
|
||||
Changes:
|
||||
- Minor modded tech tree tweaks
|
||||
Fixes:
|
||||
- Fix Schall Recipe Scaling issue with diamonds in furnaces
|
||||
- Attempted to fix an issue when low density structure has no expensive recipe
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.0.17
|
||||
Date: 2022-01-15
|
||||
Fixes:
|
||||
|
|
|
|||
|
|
@ -2,10 +2,10 @@ require("carbon-recipe-final-stacking")
|
|||
require("carbon-recipe-final-k2")
|
||||
require("carbon-recipe-final-se")
|
||||
require("carbon-recipe-final-rrr")
|
||||
require("carbon-recipe-modules") -- Should be last import
|
||||
require("low-density-structure-nanotubes")
|
||||
require("carbon-recipe-modules") -- Should be last import, need in both updates and final-fixes
|
||||
|
||||
local util = require("data-util");
|
||||
local futil = require("util")
|
||||
|
||||
|
||||
-- Green circuits in final fixes due to K2 shenanigans
|
||||
|
|
@ -36,56 +36,26 @@ if data.raw.recipe["low-density-structure"] and
|
|||
})
|
||||
end
|
||||
|
||||
if util.me.use_fullerenes() then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "low-density-structure-nanotubes",
|
||||
icons = {
|
||||
{ icon = "__base__/graphics/icons/low-density-structure.png", icon_size = 64, icon_mipmaps = 4},
|
||||
{ icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
|
||||
},
|
||||
category = "advanced-crafting",
|
||||
subgroup = data.raw.item["low-density-structure"].subgroup,
|
||||
order = "o[low-density-structure-nanotubes]",
|
||||
normal = {
|
||||
enabled = false,
|
||||
energy_required = 20,
|
||||
results = {{"low-density-structure", 2}},
|
||||
ingredients = {
|
||||
{"nanotubes", 2},
|
||||
table.unpack(futil.table.deepcopy(data.raw.recipe["low-density-structure"].normal.ingredients)),
|
||||
},
|
||||
},
|
||||
expensive = {
|
||||
enabled = false,
|
||||
energy_required = 20,
|
||||
results = {{"low-density-structure", 2}},
|
||||
ingredients = {
|
||||
{"nanotubes", 2},
|
||||
table.unpack(futil.table.deepcopy(data.raw.recipe["low-density-structure"].expensive.ingredients)),
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
if util.me.reuse() then
|
||||
util.add_product("low-density-structure-nanotubes", {type="item", name="diamond", amount=1, probability = 0.5})
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- Only electric smelters can make Diamonds
|
||||
function diamondsInElectricSmelter(entity)
|
||||
if entity.energy_source.type == "electric" then
|
||||
local isSmelter = false
|
||||
local isSmelterRS = false
|
||||
for j, category in pairs(entity.crafting_categories) do
|
||||
if category == "smelting" then
|
||||
isSmelter = true
|
||||
end
|
||||
if category == "smelting-RS" then
|
||||
isSmelterRS = true
|
||||
end
|
||||
end
|
||||
if isSmelter then
|
||||
table.insert(entity.crafting_categories,"diamond-synthesis")
|
||||
end
|
||||
if isSmelterRS then
|
||||
table.insert(entity.crafting_categories,"diamond-synthesis-RS")
|
||||
end
|
||||
end
|
||||
end
|
||||
for i, entity in pairs(data.raw.furnace) do
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ require("carbon-recipe-updates")
|
|||
require("map-gen-preset-updates")
|
||||
require("carbon-matter")
|
||||
require("strange-matter")
|
||||
require("carbon-recipe-modules") -- Should be last import, need in both updates and final-fixes
|
||||
|
||||
-- require("omni")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bzcarbon",
|
||||
"version": "0.0.17",
|
||||
"version": "0.0.18",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Graphite & Diamonds",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
53
low-density-structure-nanotubes.lua
Normal file
53
low-density-structure-nanotubes.lua
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
local util = require("data-util");
|
||||
local futil = require("util")
|
||||
|
||||
if util.me.use_fullerenes() then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "low-density-structure-nanotubes",
|
||||
icons = {
|
||||
{ icon = "__base__/graphics/icons/low-density-structure.png", icon_size = 64, icon_mipmaps = 4},
|
||||
{ icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
|
||||
},
|
||||
category = "advanced-crafting",
|
||||
subgroup = data.raw.item["low-density-structure"].subgroup,
|
||||
order = "o[low-density-structure-nanotubes]",
|
||||
},
|
||||
})
|
||||
if data.raw.recipe["low-density-structure"].normal and data.raw.recipe["low-density-structure"].normal.ingredients then
|
||||
data.raw.recipe["low-density-structure-nanotubes"].normal = {
|
||||
enabled = false,
|
||||
energy_required = 20,
|
||||
results = {{"low-density-structure", 2}},
|
||||
ingredients = {
|
||||
{"nanotubes", 2},
|
||||
table.unpack(futil.table.deepcopy(data.raw.recipe["low-density-structure"].normal.ingredients)),
|
||||
},
|
||||
}
|
||||
if data.raw.recipe["low-density-structure"].expensive and data.raw.recipe["low-density-structure"].expensive.ingredients then
|
||||
data.raw.recipe["low-density-structure-nanotubes"].expensive = {
|
||||
enabled = false,
|
||||
energy_required = 20,
|
||||
results = {{"low-density-structure", 2}},
|
||||
ingredients = {
|
||||
{"nanotubes", 2},
|
||||
table.unpack(futil.table.deepcopy(data.raw.recipe["low-density-structure"].expensive.ingredients)),
|
||||
},
|
||||
}
|
||||
end
|
||||
else
|
||||
local recipe = data.raw.recipe["low-density-structure-nanotubes"]
|
||||
recipe.enabled = false
|
||||
recipe.energy_required = 20
|
||||
recipe.results = {{"low-density-structure", 2}}
|
||||
recipe.ingredients = {
|
||||
{"nanotubes", 2},
|
||||
table.unpack(futil.table.deepcopy(data.raw.recipe["low-density-structure"].ingredients)),
|
||||
}
|
||||
end
|
||||
|
||||
if util.me.reuse() then
|
||||
util.add_product("low-density-structure-nanotubes", {type="item", name="diamond", amount=1, probability = 0.5})
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue