mv
This commit is contained in:
parent
52c1432f20
commit
db81ee44e2
4 changed files with 13 additions and 4 deletions
72
prototypes/pcb.lua
Normal file
72
prototypes/pcb.lua
Normal file
|
@ -0,0 +1,72 @@
|
|||
local util = require("data-util");
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "pcb-substrate",
|
||||
icon = "__bzchlorine__/graphics/icons/pcb-substrate.png",
|
||||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "f[advanced-circuit][pcb-substrate]",
|
||||
stack_size = util.get_stack_size(200),
|
||||
},
|
||||
})
|
||||
if (not mods.bobelectronics and not mods.MDbobelectronics) then
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "pcb",
|
||||
icon = "__bzchlorine__/graphics/icons/pcb.png",
|
||||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "f[advanced-circuit][pcb]",
|
||||
stack_size = util.get_stack_size(200),
|
||||
},
|
||||
|
||||
})
|
||||
end
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "pcb-substrate",
|
||||
results = {
|
||||
{"pcb-substrate", 6},
|
||||
},
|
||||
ingredients = {
|
||||
{type="fluid", name="epoxy", amount=30},
|
||||
{"plastic-bar", 3},
|
||||
},
|
||||
enabled = false,
|
||||
category = "chemistry",
|
||||
energy_required = 6,
|
||||
},
|
||||
})
|
||||
util.add_unlock("advanced-electronics", "pcb-substrate")
|
||||
-- These updates should be in data phase
|
||||
util.replace_some_ingredient("pcb-substrate", "plastic-bar", 1, "silica", 3, {force=true})
|
||||
util.replace_some_ingredient("pcb-substrate", "plastic-bar", 1, "bakelite", 1, {force=true})
|
||||
|
||||
if (not mods.bobelectronics and not mods.MDbobelectronics) then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "pcb",
|
||||
results = {
|
||||
{"pcb", 2},
|
||||
},
|
||||
ingredients = {
|
||||
{"pcb-substrate", 2},
|
||||
{"copper-plate", 2},
|
||||
util.me.more() and {"ferric-chloride", 1} or {type="fluid", name="hydrogen-chloride", amount=15},
|
||||
{type="fluid", name="water", amount=10},
|
||||
},
|
||||
enabled = false,
|
||||
category = "crafting-with-fluid",
|
||||
energy_required = 4,
|
||||
},
|
||||
})
|
||||
|
||||
util.add_unlock("advanced-electronics", "pcb")
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue