recipe updates
This commit is contained in:
parent
a748724634
commit
03f8884093
8 changed files with 143 additions and 37 deletions
|
|
@ -2,7 +2,7 @@ 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}
|
||||
local spreader = data.raw.item["cuw"] and {"cuw", 2} or {"copper-plate", 2}
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
|
|
@ -22,13 +22,13 @@ data:extend({
|
|||
energy_required = 50,
|
||||
ingredients = {
|
||||
silicon,
|
||||
spreader,
|
||||
{"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})
|
||||
util.replace_ingredient("cpu", "electronic-circuit", "pcb", 10, false, {"force", true})
|
||||
end
|
||||
|
|
|
|||
20
prototypes/electronic-circuit-final.lua
Normal file
20
prototypes/electronic-circuit-final.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
local futil = require("util");
|
||||
local util = require("data-util");
|
||||
|
||||
local ec = futil.table.deepcopy(data.raw.recipe["electronic-circuit"])
|
||||
ec.name = "electronic-circuit-silver"
|
||||
data:extend({ec})
|
||||
util.replace_ingredient("electronic-circuit-silver", "copper-cable", "silver-wire")
|
||||
util.set_icons("electronic-circuit-silver", {
|
||||
{
|
||||
icon = "__base__/graphics/icons/electronic-circuit.png",
|
||||
icon_size = 64, icon_mipmaps = 4
|
||||
},
|
||||
{
|
||||
icon = "__bzgold__/graphics/icons/silver-wire.png",
|
||||
icon_size = 64, icon_mipmaps = 4, scale = 0.25, shift = {8,8}
|
||||
},
|
||||
})
|
||||
if util.check_unlock("electronics", "electronic-circuit") then
|
||||
util.add_unlock("electronics", "electronic-circuit-silver")
|
||||
end
|
||||
|
|
@ -25,8 +25,8 @@ data:extend({
|
|||
name = "gold-processing",
|
||||
icons = {
|
||||
{
|
||||
icon = "__bzgold__/graphics/icons/gold-ingot.png",
|
||||
icon_size = 128,
|
||||
icon = "__bzgold__/graphics/technology/gold-processing.png",
|
||||
icon_size = 256,
|
||||
},
|
||||
},
|
||||
effects = {
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ data:extend({
|
|||
name = "palladium-processing",
|
||||
icons = {
|
||||
{
|
||||
icon = "__bzgold__/graphics/icons/palladium-ingot.png",
|
||||
icon_size = 128,
|
||||
icon = "__bzgold__/graphics/technology/palladium-processing.png",
|
||||
icon_size = 256,
|
||||
},
|
||||
},
|
||||
effects = {
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@ data:extend({
|
|||
name = "platinum-processing",
|
||||
icons = {
|
||||
{
|
||||
icon = "__bzgold__/graphics/icons/platinum-ingot.png",
|
||||
icon_size = 128,
|
||||
icon = "__bzgold__/graphics/technology/platinum-processing.png",
|
||||
icon_size = 256,
|
||||
},
|
||||
},
|
||||
effects = {
|
||||
|
|
|
|||
|
|
@ -8,3 +8,27 @@ else
|
|||
util.add_ingredient("steam-turbine", "titanium-palladium-flange", 10)
|
||||
util.add_ingredient("rocket-silo", "titanium-palladium-flange", 100)
|
||||
end
|
||||
|
||||
util.add_ingredient("rocket-control-unit", "temperature-sensor", 1)
|
||||
if not mods["aai-industry"] then
|
||||
util.add_ingredient("electric-furnace", "temperature-sensor", 1)
|
||||
else
|
||||
util.add_ingredient("industrial-furnace", "temperature-sensor", 2)
|
||||
end
|
||||
|
||||
util.add_ingredient("speed-module-3", "mlcc", 5)
|
||||
util.add_ingredient("effectivity-module-3", "mlcc", 5)
|
||||
util.add_ingredient("productivity-module-3", "mlcc", 5)
|
||||
util.remove_ingredient("speed-module-3", "cermet")
|
||||
util.remove_ingredient("effectivity-module-3", "cermet")
|
||||
util.remove_ingredient("productivity-module-3", "cermet")
|
||||
|
||||
util.replace_ingredient("chemical-plant", "solder", "silver-brazing-alloy")
|
||||
util.add_ingredient("chemical-plant", "silver-brazing-alloy", 5)
|
||||
util.add_ingredient("chemical-plant", "silver-plate", 5)
|
||||
util.replace_ingredient("oil-refinery", "solder", "silver-brazing-alloy")
|
||||
util.add_ingredient("oil-refinery", "silver-brazing-alloy", 5)
|
||||
|
||||
util.multiply_recipe("solar-cell", 2)
|
||||
util.replace_ingredient("solar-cell", "lead-plate", "silver-plate", 1)
|
||||
util.add_ingredient("solar-cell", "silver-plate", 1)
|
||||
|
|
|
|||
|
|
@ -5,8 +5,48 @@ local util = require("data-util");
|
|||
|
||||
if util.me.platinum() or util.me.palladium() then
|
||||
|
||||
local base_density = mods.bzaluminum and 3 or 4
|
||||
|
||||
local results = {}
|
||||
if util.me.silver() and util.me.platinum() and util.me.palladium() then
|
||||
results = {
|
||||
{type="item", name="copper-plate", amount=1},
|
||||
{type="item", name="silver-ore", amount=1, probability=0.5},
|
||||
{type="item", name="platinum-powder", amount=1, probability=0.25},
|
||||
{type="item", name="palladium-powder", amount=1, probability=0.25},
|
||||
}
|
||||
elseif util.me.silver() and util.me.platinum() then
|
||||
results = {
|
||||
{type="item", name="copper-plate", amount=1},
|
||||
{type="item", name="silver-ore", amount=1, probability=0.67},
|
||||
{type="item", name="platinum-powder", amount=1, probability=0.33},
|
||||
}
|
||||
elseif util.me.silver() and util.me.palladium() then
|
||||
results = {
|
||||
{type="item", name="copper-plate", amount=1},
|
||||
{type="item", name="silver-ore", amount=1, probability=0.67},
|
||||
{type="item", name="palladium-powder", amount=1, probability=0.33},
|
||||
}
|
||||
elseif util.me.platinum() and util.me.palladium() then
|
||||
results = {
|
||||
{type="item", name="copper-plate", amount=1},
|
||||
{type="item", name="platinum-powder", amount=1, probability=0.5},
|
||||
{type="item", name="palladium-powder", amount=1, probability=0.5},
|
||||
}
|
||||
elseif util.me.platinum() then
|
||||
results = {
|
||||
{type="item", name="copper-plate", amount=2, probability = 0.75},
|
||||
{type="item", name="platinum-powder", amount=1, probability=0.5},
|
||||
}
|
||||
elseif util.me.palladium() then
|
||||
results = {
|
||||
{type="item", name="copper-plate", amount=2, probability = 0.75},
|
||||
{type="item", name="palladium-powder", amount=1, probability=0.5},
|
||||
}
|
||||
else -- should never happen
|
||||
results = {
|
||||
{type="item", name="copper-plate", amount=2},
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
if data.raw.resource["copper-ore"] then
|
||||
if mods["space-exploration"] then
|
||||
|
|
@ -20,7 +60,7 @@ if data.raw.resource["copper-ore"] then
|
|||
data.raw.resource["copper-ore"].autoplace = resource_autoplace.resource_autoplace_settings{
|
||||
name = "copper-ore",
|
||||
order = "b",
|
||||
base_density = base_density,
|
||||
base_density = mods.bzaluminum and 3 or 4,
|
||||
has_starting_area_placement = true,
|
||||
regular_rq_factor_multiplier = 1.1,
|
||||
starting_rq_factor_multiplier = 1.1,
|
||||
|
|
@ -63,7 +103,7 @@ data:extend({
|
|||
name = "rich-copper-ore",
|
||||
autoplace_control_name = "copper-ore",
|
||||
order = "b-z",
|
||||
base_density = base_density,
|
||||
base_density = 4,
|
||||
base_spots_per_km2 = 1,
|
||||
has_starting_area_placement = true, -- TODO CHANGE THIS
|
||||
regular_rq_factor_multiplier = 1,
|
||||
|
|
@ -120,18 +160,13 @@ data:extend({
|
|||
enabled = false,
|
||||
icons = {
|
||||
{icon = "__base__/graphics/icons/copper-plate.png", icon_size = 64, icon_mipmaps=4},
|
||||
{icon = "__bzgold__/graphics/icons/silver-ore.png", icon_size = 128, scale=0.25, shift = {8,8}},
|
||||
{icon = "__bzgold__/graphics/icons/platinum-powder.png", icon_size = 64, scale=0.5, shift = {8,-8}},
|
||||
{icon = "__bzgold__/graphics/icons/palladium-powder.png", icon_size = 64, scale=0.5, shift = {-8,8}},
|
||||
{icon = "__bzgold__/graphics/icons/silver-ore.png", icon_size = 128, scale=0.125, shift = {8,8}},
|
||||
{icon = "__bzgold__/graphics/icons/platinum-powder.png", icon_size = 64, scale=0.25, shift = {8,-8}},
|
||||
{icon = "__bzgold__/graphics/icons/palladium-powder.png", icon_size = 64, scale=0.25, shift = {-8,-8}},
|
||||
},
|
||||
energy_required = 6.4,
|
||||
ingredients = {{"rich-copper-ore", 1}},
|
||||
results = {
|
||||
{type="item", name="copper-plate", amount=1},
|
||||
{type="item", name="silver-ore", amount=1, probability=0.5},
|
||||
{type="item", name="platinum-powder", amount=1, probability=0.25},
|
||||
{type="item", name="palladium-powder", amount=1, probability=0.25},
|
||||
},
|
||||
ingredients = {{"rich-copper-ore", 2}},
|
||||
results = results,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ if util.me.silver() then
|
|||
enabled = true,
|
||||
energy_required = 1.6,
|
||||
ingredients = {{"silver-ore", 1}},
|
||||
results = {{"silver-plate", 4}},
|
||||
results = {{"silver-plate", 1}},
|
||||
},
|
||||
})
|
||||
|
||||
|
|
@ -59,36 +59,63 @@ if util.me.silver() then
|
|||
enabled = true,
|
||||
energy_required = 1,
|
||||
ingredients = {{"silver-plate", 1}},
|
||||
results = {{"silver-wire", 4}},
|
||||
results = {{"silver-wire", 3}},
|
||||
},
|
||||
})
|
||||
|
||||
brazing = mods.BrassTacks and {
|
||||
{"silver-plate", 2},
|
||||
{"zinc-plate", 1},
|
||||
{"copper-plate", 1}
|
||||
} or {
|
||||
{"silver-plate", 2},
|
||||
{"copper-plate", 2}
|
||||
}
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
name = "silver-brazing-alloy",
|
||||
icon = "__bzgold__/graphics/icons/silver-brazing-alloy.png",
|
||||
icon_size = 128,
|
||||
subgroup = "intermediate-product",
|
||||
order = "b[silver-brazing-alloy]",
|
||||
stack_size = util.get_stack_size(100),
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = "silver-brazing-alloy",
|
||||
category = "crafting",
|
||||
order = "d[silver-brazing-alloy]",
|
||||
enabled = true,
|
||||
energy_required = 1,
|
||||
ingredients = brazing,
|
||||
results = {{"silver-brazing-alloy", 4}},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
local prereqs= mods.bzaluminum and {"copper-processing"} or {}
|
||||
data:extend({
|
||||
{
|
||||
type = "technology",
|
||||
name = "silver-processing",
|
||||
icons = {
|
||||
{
|
||||
icon = "__bzgold__/graphics/icons/silver-plate.png",
|
||||
icon_size = 128,
|
||||
},
|
||||
{
|
||||
icon = "__bzgold__/graphics/icons/silver-wire.png",
|
||||
icon_size = 64, icon_mipmaps=4,
|
||||
icon = "__bzgold__/graphics/technology/silver-processing.png",
|
||||
icon_size = 256,
|
||||
},
|
||||
},
|
||||
effects = {
|
||||
{ type = "unlock-recipe", recipe = "silver-plate" },
|
||||
{ type = "unlock-recipe", recipe = "silver-wire" },
|
||||
{ type = "unlock-recipe", recipe = "silver-brazing-alloy" },
|
||||
},
|
||||
unit = {
|
||||
count = 40, time = 15,
|
||||
ingredients = {
|
||||
{"automation-science-pack", 1},
|
||||
{"logistic-science-pack", 1}
|
||||
},
|
||||
count = 10, time = 15,
|
||||
ingredients = { {"automation-science-pack", 1}, },
|
||||
},
|
||||
prerequisites = {"advanced-material-processing"},
|
||||
prerequisites = prereqs,
|
||||
order = "b-b",
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue