bztitanium2/titanium-recipe.lua
2020-09-13 05:22:28 -07:00

74 lines
1.9 KiB
Lua

-- Titanium smelting
data:extend(
{
{
type = "recipe",
name = "titanium-plate",
category = "smelting",
icons = (mods["Krastorio2"] and
{
{ icon = "__bztitanium__/graphics/icons/titanium-plate.png", icon_size = 32 },
{ icon = "__bztitanium__/graphics/icons/titanium-ore.png", icon_size = 32, scale=0.5, shift= {-8, -8}},
} or nil),
normal = (mods["Krastorio2"] and
{
enabled = false,
energy_required = 16,
ingredients = {{"titanium-ore", 10}},
results = {{type="item", name="titanium-plate", amount_min=2, amount_max=3}},
} or
{
enabled = false,
energy_required = 8,
ingredients = {{"titanium-ore", 5}},
result = "titanium-plate"
}),
expensive =
{
enabled = false,
energy_required = 16,
ingredients = {{"titanium-ore", 10}},
result = "titanium-plate"
}
},
{
type = "item",
name = "titanium-plate",
icon = "__bztitanium__/graphics/icons/titanium-plate.png",
icon_size = 32,
subgroup = "raw-material",
order = "b[titanium-plate]",
stack_size = (mods["Krastorio2"] and 200 or 100)
},
{
type = "technology",
name = "titanium-processing",
icon_size = 128,
icon = "__bztitanium__/graphics/icons/titanium-processing.png",
effects =
{
{
type = "unlock-recipe",
recipe = "titanium-plate"
}
},
unit =
{
count = 75,
ingredients = (mods["Pre0-17-60Oil"] and
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1}
} or
{
{"automation-science-pack", 1},
{"logistic-science-pack", 1},
{"chemical-science-pack", 1}
}),
time = 30
},
prerequisites = {"lubricant"},
order = "b-b"
},
}
)