Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 396: | Строка 396: | ||
local id = "" | local id = "" | ||
out = out .. table.length(recipes) .. " " .. type .. "\n" | out = out .. table.length(recipes) .. " " .. type .. "\n" | ||
if type == "microwaveRecipes" and not table.isempty(recipes) | if type == "microwaveRecipes" and not table.isempty(recipes) then | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
| Строка 405: | Строка 405: | ||
end | end | ||
end | end | ||
elseif type == "mixableRecipes" and not table.isempty(recipes) | elseif type == "mixableRecipes" and not table.isempty(recipes) then | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
| Строка 413: | Строка 413: | ||
end | end | ||
end | end | ||
elseif type == "sliceableRecipes" and not table.isempty(recipes) | elseif type == "sliceableRecipes" and not table.isempty(recipes) then | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
| Строка 421: | Строка 421: | ||
end | end | ||
end | end | ||
elseif type == "grindableRecipes" and not table.isempty(recipes) | elseif type == "grindableRecipes" and not table.isempty(recipes) then | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
| Строка 429: | Строка 429: | ||
end | end | ||
end | end | ||
elseif type == "heatableRecipes" and not table.isempty(recipes) | elseif type == "heatableRecipes" and not table.isempty(recipes) then | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
| Строка 437: | Строка 437: | ||
end | end | ||
end | end | ||
elseif type == "toolmadeRecipes" and not table.isempty(recipes) | elseif type == "toolmadeRecipes" and not table.isempty(recipes) then | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||