lds recipe nanotubes
This commit is contained in:
parent
b618a31bc2
commit
b39f614186
6 changed files with 56 additions and 62 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
local util = require("util")
|
local futil = require("util")
|
||||||
local bzutil = require("__bzcarbon__.data-util");
|
local util = require("__bzcarbon__.data-util");
|
||||||
|
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
if bzutil.me.use_fullerenes() then
|
if util.me.use_fullerenes() then
|
||||||
-- Add an extra nanotube aeroframe scaffold recipe.
|
-- Add an extra nanotube aeroframe scaffold recipe.
|
||||||
-- This could be moved to data-updates in future if necessary
|
-- This could be moved to data-updates in future if necessary
|
||||||
data:extend({
|
data:extend({
|
||||||
|
|
@ -19,13 +19,13 @@ if bzutil.me.use_fullerenes() then
|
||||||
energy_required = 2,
|
energy_required = 2,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{"nanotubes", 2},
|
{"nanotubes", 2},
|
||||||
table.unpack(util.table.deepcopy(data.raw.recipe["se-aeroframe-scaffold"].ingredients)),
|
table.unpack(futil.table.deepcopy(data.raw.recipe["se-aeroframe-scaffold"].ingredients)),
|
||||||
},
|
},
|
||||||
result = "se-aeroframe-scaffold",
|
result = "se-aeroframe-scaffold",
|
||||||
result_count = 2,
|
result_count = 2,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
bzutil.add_effect("se-aeroframe-scaffold", {type="unlock-recipe", recipe="aeroframe-scaffold-nanotubes"})
|
util.add_effect("se-aeroframe-scaffold", {type="unlock-recipe", recipe="aeroframe-scaffold-nanotubes"})
|
||||||
|
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
|
|
@ -42,17 +42,17 @@ if bzutil.me.use_fullerenes() then
|
||||||
energy_required = data.raw.recipe["se-nanomaterial"].energy_required,
|
energy_required = data.raw.recipe["se-nanomaterial"].energy_required,
|
||||||
ingredients = {
|
ingredients = {
|
||||||
{"nanotubes", 2},
|
{"nanotubes", 2},
|
||||||
table.unpack(util.table.deepcopy(data.raw.recipe["se-nanomaterial"].ingredients)),
|
table.unpack(futil.table.deepcopy(data.raw.recipe["se-nanomaterial"].ingredients)),
|
||||||
},
|
},
|
||||||
results = {
|
results = {
|
||||||
table.unpack(util.table.deepcopy(data.raw.recipe["se-nanomaterial"].results)),
|
table.unpack(futil.table.deepcopy(data.raw.recipe["se-nanomaterial"].results)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
bzutil.add_to_product("nanomaterial-nanotubes", "se-nanomaterial", 16)
|
util.add_to_product("nanomaterial-nanotubes", "se-nanomaterial", 16)
|
||||||
bzutil.add_effect("se-nanomaterial", {type="unlock-recipe", recipe="nanomaterial-nanotubes"})
|
util.add_effect("se-nanomaterial", {type="unlock-recipe", recipe="nanomaterial-nanotubes"})
|
||||||
|
|
||||||
-- core mining balancing
|
-- core mining balancing
|
||||||
bzutil.add_to_product("se-core-fragment-omni", "graphite", -3)
|
util.add_to_product("se-core-fragment-omni", "graphite", -3)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,6 @@ util.add_ingredient("low-density-structure", "diamond", 1)
|
||||||
util.add_ingredient("se-low-density-structure-beryllium", "diamond", 1)
|
util.add_ingredient("se-low-density-structure-beryllium", "diamond", 1)
|
||||||
if util.me.reuse() then
|
if util.me.reuse() then
|
||||||
util.add_product("low-density-structure", {type="item", name="diamond", amount=1, probability = 0.5})
|
util.add_product("low-density-structure", {type="item", name="diamond", amount=1, probability = 0.5})
|
||||||
util.add_product("low-density-structure-nanotubes", {type="item", name="diamond", amount=1, probability = 0.5})
|
|
||||||
util.add_product("se-low-density-structure-beryllium", {type="item", name="diamond", amount=1, probability = 0.5})
|
util.add_product("se-low-density-structure-beryllium", {type="item", name="diamond", amount=1, probability = 0.5})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -275,41 +275,6 @@ data:extend({
|
||||||
|
|
||||||
-- fullerenes
|
-- fullerenes
|
||||||
if util.me.use_fullerenes() then
|
if util.me.use_fullerenes() then
|
||||||
function lds_recipe()
|
|
||||||
if mods.bztitanium then
|
|
||||||
if mods.bzzirconium then
|
|
||||||
return {
|
|
||||||
{type="item", name=util.titanium_plate, amount=2},
|
|
||||||
{type="item", name="nanotubes", amount=2},
|
|
||||||
{type="item", name="plastic-bar", amount=2},
|
|
||||||
{type="item", name="zirconia", amount=2},
|
|
||||||
{type="item", name="diamond", amount=1},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
return {
|
|
||||||
{type="item", name=util.titanium_plate, amount=2},
|
|
||||||
{type="item", name="nanotubes", amount=5},
|
|
||||||
{type="item", name="plastic-bar", amount=5},
|
|
||||||
{type="item", name="diamond", amount=1},
|
|
||||||
}
|
|
||||||
elseif mods.bzzirconium then
|
|
||||||
return {
|
|
||||||
{type="item", name="zirconia", amount=5},
|
|
||||||
{type="item", name="copper-plate", amount=5},
|
|
||||||
{type="item", name="nanotubes", amount=5},
|
|
||||||
{type="item", name="plastic-bar", amount=2},
|
|
||||||
{type="item", name="diamond", amount=1},
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return {
|
|
||||||
{type="item", name="copper-plate", amount=10},
|
|
||||||
{type="item", name="nanotubes", amount=5},
|
|
||||||
{type="item", name="plastic-bar", amount=5},
|
|
||||||
{type="item", name="diamond", amount=1},
|
|
||||||
}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
type = "item",
|
type = "item",
|
||||||
|
|
@ -395,21 +360,6 @@ data:extend({
|
||||||
mods.Krastorio2 and {type="fluid", name="dirty-water", amount=1, catalyst_amount=1} or nil,
|
mods.Krastorio2 and {type="fluid", name="dirty-water", amount=1, catalyst_amount=1} or nil,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
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]",
|
|
||||||
enabled = false,
|
|
||||||
energy_required = 20,
|
|
||||||
ingredients = lds_recipe(),
|
|
||||||
results = {{"low-density-structure", 1}},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type = "technology",
|
type = "technology",
|
||||||
name = "nanotubes",
|
name = "nanotubes",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 0.0.16
|
||||||
|
Date: 2022-01-14
|
||||||
|
Changes:
|
||||||
|
- LDS Nanotube recipe now uses 2xN pattern.
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.0.15
|
Version: 0.0.15
|
||||||
Date: 2022-01-13
|
Date: 2022-01-13
|
||||||
Features:
|
Features:
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ require("carbon-recipe-final-rrr")
|
||||||
require("carbon-recipe-modules") -- Should be last import
|
require("carbon-recipe-modules") -- Should be last import
|
||||||
|
|
||||||
local util = require("data-util");
|
local util = require("data-util");
|
||||||
|
local futil = require("util")
|
||||||
|
|
||||||
|
|
||||||
-- Green circuits in final fixes due to K2 shenanigans
|
-- Green circuits in final fixes due to K2 shenanigans
|
||||||
|
|
@ -31,6 +32,43 @@ if data.raw.recipe["low-density-structure"] and
|
||||||
})
|
})
|
||||||
end
|
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
|
-- Only electric smelters can make Diamonds
|
||||||
function diamondsInElectricSmelter(entity)
|
function diamondsInElectricSmelter(entity)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzcarbon",
|
"name": "bzcarbon",
|
||||||
"version": "0.0.15",
|
"version": "0.0.16",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Graphite & Diamonds",
|
"title": "Graphite & Diamonds",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
@ -8,6 +8,8 @@
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"base >= 1.1.0",
|
"base >= 1.1.0",
|
||||||
|
"? bztitanium",
|
||||||
|
"? bzzirconium",
|
||||||
"? space-exploration",
|
"? space-exploration",
|
||||||
"? aai-industry",
|
"? aai-industry",
|
||||||
"? Krastorio2",
|
"? Krastorio2",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue