Update to 2.0
This commit is contained in:
parent
126c1bf6b3
commit
06281ea9ca
14 changed files with 196 additions and 341 deletions
|
@ -1,5 +1,7 @@
|
|||
local util = require("data-util");
|
||||
|
||||
local hcl_name = mods.Krastorio2 and "kr-hydrogen-chloride" or hcl_name
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
|
@ -8,10 +10,10 @@ data:extend({
|
|||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "f[advanced-circuit][pcb-substrate]",
|
||||
stack_size = util.get_stack_size(200),
|
||||
stack_size = 200,
|
||||
},
|
||||
})
|
||||
if (not mods.bobelectronics and not mods.MDbobelectronics) then
|
||||
if not (mods.bobelectronics or mods.MDbobelectronics or mods.MDbobelectronics2) then
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
|
@ -20,7 +22,7 @@ data:extend({
|
|||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "f[advanced-circuit][pcb]",
|
||||
stack_size = util.get_stack_size(200),
|
||||
stack_size = 200,
|
||||
},
|
||||
|
||||
})
|
||||
|
@ -31,44 +33,44 @@ data:extend({
|
|||
type = "recipe",
|
||||
name = "pcb-substrate",
|
||||
results = {
|
||||
{"pcb-substrate", 12},
|
||||
{type="item", name="pcb-substrate", amount=12},
|
||||
},
|
||||
ingredients = {
|
||||
{type="fluid", name="epoxy", amount=30},
|
||||
{"plastic-bar", 3},
|
||||
{type="item", name="plastic-bar", amount=3},
|
||||
},
|
||||
enabled = false,
|
||||
category = "chemistry",
|
||||
energy_required = 6,
|
||||
},
|
||||
})
|
||||
util.add_unlock("advanced-electronics", "pcb-substrate")
|
||||
util.add_unlock("advanced-circuit", "pcb-substrate")
|
||||
-- These updates should be in data phase
|
||||
util.replace_some_ingredient("pcb-substrate", "plastic-bar", 1, "silica", 3, {force=true})
|
||||
|
||||
if (not mods.bobelectronics and not mods.MDbobelectronics) then
|
||||
if not (mods.bobelectronics or mods.MDbobelectronics or mods.MDbobelectronics2) then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
name = "pcb",
|
||||
results = {
|
||||
{"pcb", 4},
|
||||
{type="item", name="pcb", amount=4},
|
||||
},
|
||||
ingredients = util.me.more() and {
|
||||
{"pcb-substrate", 4},
|
||||
{"copper-plate", 1},
|
||||
{"ferric-chloride", 2},
|
||||
{type="item", name="pcb-substrate", amount=4},
|
||||
{type="item", name="copper-plate", amount=1},
|
||||
{type="item", name="ferric-chloride", amount=2},
|
||||
{type="fluid", name="water", amount=20},
|
||||
} or {
|
||||
{"pcb-substrate", 4},
|
||||
{"copper-plate", 1},
|
||||
{type="fluid", name="hydrogen-chloride", amount=30}
|
||||
{type="item", name="pcb-substrate", amount=4},
|
||||
{type="item", name="copper-plate", amount=1},
|
||||
{type="fluid", name=hcl_name, amount=30}
|
||||
},
|
||||
enabled = false,
|
||||
category = "crafting-with-fluid",
|
||||
energy_required = 8,
|
||||
},
|
||||
})
|
||||
util.add_unlock("advanced-electronics", "pcb")
|
||||
util.add_unlock("advanced-circuit", "pcb")
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue