Remove dual furnace recipes from basic crafts book

master
neinwhal 2022-07-15 15:26:22 +08:00
parent 08009fc027
commit 8b89ca252c
2 changed files with 9 additions and 3 deletions

View File

@ -57,10 +57,16 @@ function lottinventory.add_craft(input, output, needed_groups, forbidden_groups,
end
end
end
if not not_groups or not has_groups
or (not_type and not_type == input.type) then
if not not_groups or not has_groups then
return
end
if not_type then
for _, not_types in pairs(not_type) do
if not_types == input.type then
return
end
end
end
if not groups then groups = {} end
local c = {}
c.width = input.width

View File

@ -7,7 +7,7 @@
local guides = {
craft = {
-- needed_groups, forbidden_groups, type, not_type, master
{}, {"cook_crafts", "armor_use", "armor_crafts", "forbidden"}, nil, "cooking"
{}, {"cook_crafts", "armor_use", "armor_crafts", "forbidden"}, nil, {"cooking", "dualfurn"}
},
cooking = {
{"cook_crafts"}, {"forbidden", "armor_use", "armor_crafts"}, {"cooking", "dualfurn"}