Correct tin plate recipe for K2

This commit is contained in:
Simon Brodtmann 2025-10-21 10:33:09 +02:00
parent 6592f44b59
commit 13697f3937

View file

@ -2,7 +2,6 @@
local item_sounds = require('__base__.prototypes.item_sounds') local item_sounds = require('__base__.prototypes.item_sounds')
local util = require("data-util"); local util = require("data-util");
local futil = require("util");
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then
data:extend({ data:extend({
@ -19,34 +18,14 @@ data:extend({
{ icon = "__bztin2__/graphics/icons/tin-plate.png", icon_size = 128 }, { icon = "__bztin2__/graphics/icons/tin-plate.png", icon_size = 128 },
} }
), ),
-- (mods["Krastorio2"] and
-- {
-- main_product = "tin-plate",
-- enabled = true,
-- energy_required = 12,
-- ingredients = {{"tin-ore", 10}},
-- results = {
-- {type="item", name = "tin-plate", amount=5}
-- }
-- } or
main_product = "tin-plate", main_product = "tin-plate",
enabled = true, enabled = true,
energy_required = 2.4, energy_required = mods["Krastorio2"] and 12 or 2.4,
ingredients = {util.item("tin-ore", 1)}, ingredients = { util.item("tin-ore", mods["Krastorio2"] and 10 or 1) },
results = { results = {
{type="item", name = "tin-plate", amount=1} { type = "item", name = "tin-plate", amount = mods["Krastorio2"] and 5 or 1 }
}, },
allow_productivity = true, allow_productivity = true,
-- expensive =
-- {
-- main_product = "tin-plate",
-- enabled = true,
-- energy_required = 4.8,
-- ingredients = {{"tin-ore", 1}},
-- results = {
-- {type="item", name = "tin-plate", amount=1},
-- }
-- }
}, },
{ {
type = "item", type = "item",
@ -126,13 +105,15 @@ data:extend({
icons = { icons = {
{ icon = "__bztin2__/graphics/icons/solder.png", icon_size = 128, scale = 0.33, shift = { 0, -6 } }, { icon = "__bztin2__/graphics/icons/solder.png", icon_size = 128, scale = 0.33, shift = { 0, -6 } },
{ icon = "__bztin2__/graphics/icons/tin-plate.png", icon_size = 128, scale = 0.25, shift = { -6, 4 } }, { icon = "__bztin2__/graphics/icons/tin-plate.png", icon_size = 128, scale = 0.25, shift = { -6, 4 } },
mods["bzlead2"] and {icon = "__bzlead2__/graphics/icons/lead-plate.png", icon_size = 64, scale = 0.5, shift = {6,4}} or mods["bzlead2"] and
{ icon = "__bzlead2__/graphics/icons/lead-plate.png", icon_size = 64, scale = 0.5, shift = { 6, 4 } } or
{ icon = "__base__/graphics/icons/copper-plate.png", icon_size = 64, scale = 0.5, shift = { 6, 4 } }, { icon = "__base__/graphics/icons/copper-plate.png", icon_size = 64, scale = 0.5, shift = { 6, 4 } },
}, },
effects = {}, effects = {},
prerequisites = { "metallurgic-science-pack", "electromagnetic-science-pack" }, prerequisites = { "metallurgic-science-pack", "electromagnetic-science-pack" },
unit = { unit = {
count = 250, time = 30, count = 250,
time = 30,
ingredients = { ingredients = {
{ "chemical-science-pack", 1 }, { "chemical-science-pack", 1 },
{ "electromagnetic-science-pack", 1 }, { "electromagnetic-science-pack", 1 },
@ -154,7 +135,8 @@ if mods.bzaluminum2 and not mods["bzlead2"] then
{ type = "unlock-recipe", recipe = "solder" }, { type = "unlock-recipe", recipe = "solder" },
}, },
unit = { unit = {
count = 10, time = 15, count = 10,
time = 15,
ingredients = { { "automation-science-pack", 1 } }, ingredients = { { "automation-science-pack", 1 } },
}, },
prerequisites = { "copper-processing" }, prerequisites = { "copper-processing" },
@ -213,7 +195,8 @@ data:extend({
{ type = "unlock-recipe", recipe = "organotins" }, { type = "unlock-recipe", recipe = "organotins" },
}, },
unit = { unit = {
count = 50, time = 30, count = 50,
time = 30,
ingredients = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 } }, ingredients = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 } },
}, },
prerequisites = { "oil-processing" }, prerequisites = { "oil-processing" },
@ -229,7 +212,8 @@ data:extend({
type = "item", type = "item",
name = "tinned-cable", name = "tinned-cable",
icon = "__bztin2__/graphics/icons/tinned-cable.png", icon = "__bztin2__/graphics/icons/tinned-cable.png",
icon_size = 64, icon_mipmaps = 4, icon_size = 64,
icon_mipmaps = 4,
subgroup = util.cablesg, subgroup = util.cablesg,
order = "b[tinned-cable]", order = "b[tinned-cable]",
stack_size = util.get_stack_size(100), stack_size = util.get_stack_size(100),
@ -253,12 +237,14 @@ data:extend({
type = "technology", type = "technology",
name = "tinned-cable", name = "tinned-cable",
icon = "__bztin2__/graphics/icons/tinned-cable.png", icon = "__bztin2__/graphics/icons/tinned-cable.png",
icon_size = 64, icon_mipmaps = 4, icon_size = 64,
icon_mipmaps = 4,
effects = { effects = {
{ type = "unlock-recipe", recipe = "tinned-cable" }, { type = "unlock-recipe", recipe = "tinned-cable" },
}, },
unit = { unit = {
count = 50, time = 15, count = 50,
time = 15,
ingredients = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 } }, ingredients = { { "automation-science-pack", 1 }, { "logistic-science-pack", 1 } },
}, },
prerequisites = { "logistic-science-pack" }, prerequisites = { "logistic-science-pack" },