Indium2/Indium2/prototypes/technology.lua
Simon Brodtmann 10449fa640 2.0.0
2025-10-11 00:56:52 +02:00

91 lines
No EOL
2 KiB
Lua

local util = require("data-util")
local indium_processing_effects ={
{
type = "unlock-recipe",
recipe = "indium-plate",
},
{
type = "unlock-recipe",
recipe = "indium-solder",
},
{
type = "unlock-recipe",
recipe = "cryogenic-seal",
}
}
if mods["BrassTacks-Updated"] and data.raw.item["airtight-seal"] then
indium_processing_effects ={
{
type = "unlock-recipe",
recipe = "indium-plate",
},
{
type = "unlock-recipe",
recipe = "indium-solder",
},
{
type = "unlock-recipe",
recipe = "cryogenic-seal",
},
{
type = "unlock-recipe",
recipe = "indium-airtight-seal",
}
}
end
data:extend(
{
{
type = "technology",
name = "indium-processing",
icons =
{
{ icon = "__Indium2__/graphics/icons/cryogenic-seal.png", icon_size = 128},
},
prerequisites = {"advanced-material-processing"},
effects = indium_processing_effects,
unit =
{
count = 100,
ingredients =
{
{ "automation-science-pack", 1 },
{ "logistic-science-pack", 1 }
},
time = 30
}
},
})
if (mods["bztin"] and mods["bismuth"]) or false then
data:extend(
{
{
type = "technology",
name = "indium-pcb-solder",
icons =
{
{ icon = "__bztin__/graphics/icons/solder.png", icon_size = 128, tint = {r = 0.7, g = 0.5, b = 0.9, a = 1} },
{ icon = "__Indium2__/graphics/icons/indium-plate.png", icon_size = 64, shift= {-8, -8}},
},
prerequisites = {"indium-processing"},
effects = {
{
type = "unlock-recipe",
recipe = "indium-pcb-solder",
}
},
unit =
{
count = 225,
ingredients =
{
{ "automation-science-pack", 1 },
{ "logistic-science-pack", 1 },
{ "chemical-science-pack", 1 }
},
time = 30
}
},
})
end