bzlead2/lead-matter.lua
snouz 52aae267bd Revamped lead graphics
-revamped lead graphics
-added remnant lead chest graphics
-moved old files to a folder
-moved stacked icons to different folder
-changed mod icon
-added mipmaps to all icons
-optimized size with pnggauntlet (lossless)
-changed mod version to 0.3
-Updated changelog
2021-03-07 17:39:55 +01:00

61 lines
1.3 KiB
Lua

-- Matter recipes for Krastorio2
if mods["Krastorio2"] then
local matter = require("__Krastorio2__/lib/public/data-stages/matter-util")
data:extend(
{
{
type = "technology",
name = "lead-matter-processing",
icons =
{
{
icon = "__Krastorio2__/graphics/technologies/matter-stone.png",
icon_size = 256,
},
{
icon = "__bzlead__/graphics/icons/lead-ore.png",
icon_size = 64, icon_mipmaps = 3,
scale = 1.25,
}
},
prerequisites = {"kr-matter-processing"},
unit =
{
count = 350,
ingredients =
{
{"production-science-pack", 1},
{"utility-science-pack", 1},
{"matter-tech-card", 1}
},
time = 45
}
},
})
local lead_ore_matter =
{
item_name = "lead-ore",
minimum_conversion_quantity = 10,
matter_value = 5,
energy_required = 1,
need_stabilizer = false,
unlocked_by_technology = "lead-matter-processing"
}
matter.createMatterRecipe(lead_ore_matter)
local lead_plate_matter =
{
item_name = "lead-plate",
minimum_conversion_quantity = 10,
matter_value = 7.5,
energy_required = 2,
only_deconversion = true,
need_stabilizer = true,
unlocked_by_technology = "lead-matter-processing"
}
matter.createMatterRecipe(lead_plate_matter)
end