Initial working version
This commit is contained in:
parent
57813953d4
commit
4c4f13aadc
82 changed files with 893 additions and 0 deletions
67
lead-recipe.lua
Normal file
67
lead-recipe.lua
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
-- Lead smelting
|
||||
|
||||
local util = require("__bzlead__.util");
|
||||
|
||||
|
||||
|
||||
if (not mods["pyrawores"] and not mods["bobplates"] and not mods["angelssmelting"]) then
|
||||
|
||||
data:extend(
|
||||
{
|
||||
{
|
||||
type = "recipe",
|
||||
name = util.lead_plate,
|
||||
category = "smelting",
|
||||
subgroup = "raw-material",
|
||||
order = "d[lead-plate]",
|
||||
icons = (mods["Krastorio2"] and
|
||||
{
|
||||
{ icon = "__bzlead__/graphics/icons/lead-plate.png", icon_size = 64 },
|
||||
{ icon = "__bzlead__/graphics/icons/lead-ore.png", icon_size = 64, scale=0.25, shift= {-8, -8}},
|
||||
} or {
|
||||
{ icon = "__bzlead__/graphics/icons/lead-plate.png", icon_size = 64 },
|
||||
}
|
||||
),
|
||||
normal = (mods["Krastorio2"] and
|
||||
{
|
||||
enabled = true,
|
||||
energy_required = 16,
|
||||
ingredients = {{"lead-ore", 10}},
|
||||
results = {
|
||||
{type="item", name = util.lead_plate, amount_min=4, amount_max=5},
|
||||
{type="item", name = "copper-ore", amount_min=1, amount_max=2},
|
||||
}
|
||||
} or
|
||||
{
|
||||
enabled = true,
|
||||
energy_required = 6.4,
|
||||
ingredients = {{"lead-ore", 2}},
|
||||
results = {
|
||||
{type="item", name = util.lead_plate, amount=2, probability=5/6},
|
||||
{type="item", name = "copper-ore", amount=1, probability=1/3},
|
||||
}
|
||||
}),
|
||||
expensive =
|
||||
{
|
||||
enabled = true,
|
||||
energy_required = 12.8,
|
||||
ingredients = {{"lead-ore", 4}},
|
||||
results = {
|
||||
{type="item", name = util.lead_plate, amount=2, probability=0.8333},
|
||||
{type="item", name = "copper-ore", amount=2, probability=0.333},
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = util.lead_plate,
|
||||
icon = "__bzlead__/graphics/icons/lead-plate.png",
|
||||
icon_size = 64,
|
||||
subgroup = "raw-material",
|
||||
order = "b[lead-plate]",
|
||||
stack_size = (mods["Krastorio2"] and util.get_k2_stack_size() or 100)
|
||||
},
|
||||
}
|
||||
)
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue