bzlead2/lead-recipe-final-5d.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

121 lines
3.6 KiB
Lua

local util = require("__bzlead__.util");
if mods["5dim_core"] then
data.raw.item["lead-plate"].subgroup = "plates-plates"
data.raw.recipe["lead-plate"].subgroup = "plates-plates"
data.raw.item["lead-ore"].subgroup = "plates-ore"
-- Industrial furnace
data:extend({
{
type = "recipe",
name = "lead-plate-industrial-ore",
category = "industrial-furnace",
subgroup = "plates-industrial-ore",
order = "ad[lead-plate]",
icon = "__bzlead__/graphics/icons/lead-plate.png",
icon_size = 64, icon_mipmaps = 3,
enabled = true,
energy_required = 65,
ingredients = {{"lead-ore", 85}},
result = util.lead_plate,
result_count = 100,
}
})
-- Lead dust
data:extend(
{
{
type = "item",
name = "lead-dust",
subgroup = "plates-dust",
order = "d[lead-plate]",
icon = "__bzlead__/graphics/icons/lead-powder.png",
icon_size = 64, icon_mipmaps = 3,
stack_size = 200
},
{
type = "recipe",
name = "lead-plate-dust",
icon = "__bzlead__/graphics/icons/lead-plate.png",
icon_size = 64, icon_mipmaps = 3,
subgroup = "plates-plates2",
order = "d[lead-plate]",
category = "smelting",
energy_required = 3.2,
enabled = true,
ingredients = {
{"lead-dust", 1}
},
result = util.lead_plate
},
{
type = "recipe",
name = "lead-dust",
icon = "__bzlead__/graphics/icons/lead-powder.png",
icon_size = 64, icon_mipmaps = 3,
category = "mashering",
subgroup = "",
order = "d[lead-plate]",
energy_required = 3.2,
enabled = true,
ingredients = {
{"lead-ore", 1}
},
results = {
{type="item", name = "lead-dust", amount=2},
}
},
{
type = "recipe",
name = "lead-plate-industrial-dust",
category = "industrial-furnace",
subgroup = "plates-industrial-dust",
order = "ad[lead-plate]",
icon = "__bzlead__/graphics/icons/lead-plate.png",
icon_size = 64, icon_mipmaps = 3,
enabled = true,
energy_required = 65,
ingredients = {{"lead-dust", 85}},
result = util.lead_plate,
result_count = 100,
}
})
if mods["5dim_resources"] then
local mks = {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-masher-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.add_ingredient(item..mk, "lead-plate", 2)
end
end
end
if mods["5dim_energy"] then
local mks = {"02", "03", "04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-substation-", "5d-big-electric-pole-", "5d-solar-panel-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.add_ingredient(item..mk, "lead-plate", 2)
end
end
end
if mods["5dim_battlefield"] then
local mks = {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10"}
local items = {"5d-gun-turret-", "5d-gun-turret-big-", "5d-gun-turret-small-"}
for i, mk in pairs(mks) do
for j, item in pairs(items) do
util.replace_some_ingredient(item..mk, "iron-plate", "lead-plate", 2)
end
util.replace_some_ingredient("5d-gun-turret-sniper-"..mk, "steel-plate", "lead-plate", 1)
end
end
end