lds recipe nanotubes
This commit is contained in:
parent
b618a31bc2
commit
b39f614186
6 changed files with 56 additions and 62 deletions
|
|
@ -5,6 +5,7 @@ require("carbon-recipe-final-rrr")
|
|||
require("carbon-recipe-modules") -- Should be last import
|
||||
|
||||
local util = require("data-util");
|
||||
local futil = require("util")
|
||||
|
||||
|
||||
-- Green circuits in final fixes due to K2 shenanigans
|
||||
|
|
@ -31,6 +32,43 @@ 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue