modernize *-nanotube recipes
This commit is contained in:
parent
662cc8bf98
commit
501e659f8b
9 changed files with 74 additions and 173 deletions
|
|
@ -1,72 +1,11 @@
|
|||
local util = require("data-util");
|
||||
local futil = require("util")
|
||||
local util = require("data-util")
|
||||
local cutil = require("carbon-util")
|
||||
if mods.Krastorio2 then
|
||||
if util.me.use_fullerenes() then
|
||||
-- Add extra nanotube recipes.
|
||||
-- This could be moved to data-updates in future if necessary
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "imersium-plate-nanotubes",
|
||||
icons = {
|
||||
{ icon = data.raw.item["imersium-plate"].icon, icon_size = data.raw.item["imersium-plate"].icon_size},
|
||||
{ icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
|
||||
},
|
||||
category = "smelting",
|
||||
subgroup = "raw-material",
|
||||
order = "e00-a2[imersium-plate]",
|
||||
enabled = false,
|
||||
energy_required = 32,
|
||||
ingredients = {
|
||||
{"nanotubes", 6},
|
||||
table.unpack(futil.table.deepcopy(data.raw.recipe["imersium-plate"].ingredients)),
|
||||
},
|
||||
result = "imersium-plate",
|
||||
result_count = 6,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "imersium-beam-nanotubes",
|
||||
icons = {
|
||||
{ icon = data.raw.item["imersium-beam"].icon, icon_size = data.raw.item["imersium-beam"].icon_size},
|
||||
{ icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
|
||||
},
|
||||
category = "smelting-crafting",
|
||||
subgroup = "smelting-crafting",
|
||||
hide_from_player_crafting = true,
|
||||
order = data.raw.item["imersium-beam"].order.."z",
|
||||
enabled = false,
|
||||
energy_required = 12,
|
||||
ingredients = {
|
||||
{"nanotubes", 4},
|
||||
table.unpack(futil.table.deepcopy(data.raw.recipe["kr-s-c-imersium-beam"].ingredients)),
|
||||
},
|
||||
result = "imersium-beam",
|
||||
result_count = 2,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "imersium-gear-wheel-nanotubes",
|
||||
icons = {
|
||||
{ icon = data.raw.item["imersium-gear-wheel"].icon, icon_size = data.raw.item["imersium-gear-wheel"].icon_size},
|
||||
{ icon = "__bzcarbon__/graphics/icons/nanotube.png", icon_size = 128, scale=0.125, shift= {-8, -8}},
|
||||
},
|
||||
category = "smelting-crafting",
|
||||
subgroup = "smelting-crafting",
|
||||
hide_from_player_crafting = true,
|
||||
order = data.raw.item["imersium-gear-wheel"].order.."z",
|
||||
enabled = false,
|
||||
energy_required = 12,
|
||||
ingredients = {
|
||||
{"nanotubes", 2},
|
||||
table.unpack(futil.table.deepcopy(data.raw.recipe["kr-s-c-imersium-gear-wheel"].ingredients)),
|
||||
},
|
||||
result = "imersium-gear-wheel",
|
||||
result_count = 2,
|
||||
},
|
||||
})
|
||||
util.add_unlock("nanotubes", "imersium-plate-nanotubes")
|
||||
util.add_unlock("nanotubes", "imersium-beam-nanotubes")
|
||||
util.add_unlock("nanotubes", "imersium-gear-wheel-nanotubes")
|
||||
-- Add extra nanotube recipes.
|
||||
-- This could be moved to data-updates in future if necessary
|
||||
cutil.nanotube_recipe("imersium-plate")
|
||||
cutil.nanotube_recipe("kr-s-c-imersium-beam", "imersium-beam")
|
||||
cutil.nanotube_recipe("kr-s-c-imersium-gear-wheel", "imersium-gear-wheel")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue