many intermediates
This commit is contained in:
parent
fe2689a0d3
commit
38e83dc754
6 changed files with 232 additions and 3 deletions
34
prototypes/cpu.lua
Normal file
34
prototypes/cpu.lua
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
local util = require("data-util");
|
||||
|
||||
if mods.bzsilicon then
|
||||
local silicon = data.raw.item["silicon-wafer"] and {"silicon-wafer", 30} or {"silicon", 15}
|
||||
local spreader = data.raw.item["cuw"] and {"cuw", 1} or {"copper-plate", 1}
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "cpu",
|
||||
icon = "__base__/graphics/technology/advanced-electronics-2.png",
|
||||
icon_size = 256,
|
||||
subgroup = "intermediate-product",
|
||||
order = "b[cpu]",
|
||||
stack_size = util.get_stack_size(200),
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "cpu",
|
||||
category = "crafting-with-fluid",
|
||||
order = "d[mainboard]",
|
||||
enabled = false,
|
||||
energy_required = 50,
|
||||
ingredients = {
|
||||
silicon,
|
||||
{"gold-ingot", 1},
|
||||
{"copper-plate", 1},
|
||||
{"electronic-circuit", 10},
|
||||
{type="fluid", name="sulfuric-acid", amount=50},
|
||||
},
|
||||
results = {{"cpu", 10}},
|
||||
},
|
||||
})
|
||||
util.replace_ingredient("cpu", "electronic-circuit", "pcb", 10, {"force", true})
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue