This commit is contained in:
Brevven 2022-06-28 03:31:07 -07:00
commit 780d3f2d3d
83 changed files with 1805 additions and 0 deletions

167
tin-recipe.lua Normal file
View file

@ -0,0 +1,167 @@
-- Aluminum smelting
local util = require("data-util");
local futil = require("util");
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"] ) then
data:extend({
{
type = "recipe",
name = "tin-plate",
category = "smelting",
subgroup = "raw-material",
order = "d[tin-plate]",
icons = (mods["Krastorio2"] and
{
{ icon = "__bztin__/graphics/icons/tin-plate.png", icon_size = 128},
{ icon = "__bztin__/graphics/icons/tin-ore.png", icon_size = 64, scale=0.125, shift= {-8, -8}},
} or {
{ icon = "__bztin__/graphics/icons/tin-plate.png", icon_size = 128},
}
),
normal = (mods["Krastorio2"] and
{
enabled = true,
energy_required = 12,
ingredients = {{"tin-ore", 10}},
results = {
{type="item", name = "tin-plate", amount=10}
}
} or
{
enabled = true,
energy_required = 2.4,
ingredients = {{"tin-ore", 1}},
results = {
{type="item", name = "tin-plate", amount=1}
}
}),
expensive =
{
enabled = true,
energy_required = 4.8,
ingredients = {{"tin-ore", 1}},
results = {
{type="item", name = "tin-plate", amount=1},
}
}
},
{
type = "item",
name = "tin-plate",
icon = "__bztin__/graphics/icons/tin-plate.png",
icon_size = 128,
subgroup = "raw-material",
order = "b[tin-plate]",
stack_size = util.get_stack_size(100)
},
})
local solder_ingredeents = {{"tin-plate", 4}, {"copper-plate"}, 1}
if mods.bzlead then
solder_ingredeents = {{"tin-plate", 3}, {"lead-plate", 2}}
end
data:extend({
{
type = "item",
name = "solder",
icon = "__bztin__/graphics/icons/solder.png",
icon_size = 128,
subgroup = "intermediate-product",
order = "b[acsr-cable]",
stack_size = util.get_stack_size(100),
},
{
type = "recipe",
name = "solder",
category = "crafting",
order = "d[acsr-cable]",
enabled = true,
energy_required = 1,
ingredients = solder_ingredeents,
results = {{"solder", 5}},
}
})
data:extend({
{
type = "fluid",
name = "organotins",
default_temperature = 25,
heat_capacity = "0.1KJ",
base_color = {r=0.75, g=0.65, b=0.1},
flow_color = {r=0.7, g=1, b=0.1},
icon = "__bztin__/graphics/icons/organotins.png",
icon_size = 64,
order = "a[fluid]-f[organotins]"
},
{
type = "recipe",
name = "organotins",
category = "oil-processing",
subgroup = "fluid-recipes",
order = "d[organotins]",
enabled = true,
energy_required = 5,
ingredients = {{"tin-plate", 3}, {type="fluid", name="petroleum-gas", amount=20}},
results = {{type="fluid", name="organotins", amount=50}},
},
{
type = "technology",
name = "organotins",
icon = "__bztin__/graphics/technology/organotins.png",
icon_size = 256,
effects = {
{ type = "unlock-recipe", recipe = "organotins" },
},
unit = {
count = 50, time = 30,
ingredients = {{"automation-science-pack", 1}, {"logistic-science-pack", 1}},
},
prerequisites = {"oil-processing"},
order = "b-b",
},
})
util.add_prerequisite("plastics", "organotins")
if util.me.use_cable() then
data:extend({
{
type = "item",
name = "tinned-cable",
icon = "__bztin__/graphics/icons/tinned-cable.png",
icon_size = 64, icon_mipmaps = 4,
subgroup = "intermediate-product",
order = "b[tinned-cable]",
stack_size = util.get_stack_size(100),
},
{
type = "recipe",
name = "tinned-cable",
category = "crafting",
order = "d[tinned-cable]",
enabled = true,
energy_required = 1.5,
ingredients = {{"tin-plate", 1}, {"copper-cable", 4}},
results = {{"tinned-cable", 4}},
},
{
type = "technology",
name = "tinned-cable",
icon = "__bztin__/graphics/icons/tinned-cable.png",
icon_size = 64, icon_mipmaps = 4,
effects = {
{ type = "unlock-recipe", recipe = "tinned-cable" },
},
unit = {
count = 50, time = 15,
ingredients = {{"automation-science-pack", 1}, {"logistic-science-pack", 1}},
},
prerequisites = {"logistic-science-pack"},
order = "b-b",
},
})
end
end