Модуль:Meals Lookup: различия между версиями
Mhamster (обсуждение | вклад) Нет описания правки |
Mhamster (обсуждение | вклад) Нет описания правки |
||
| Строка 376: | Строка 376: | ||
for type, recipes in pairs(idtable) do | for type, recipes in pairs(idtable) do | ||
-- INTRUDER ALERT: SHITCODE IS IN THE BASE | -- INTRUDER ALERT: SHITCODE IS IN THE BASE | ||
local id = "" | |||
if type == "microwaveRecipes" and not next(recipes) == nil then | if type == "microwaveRecipes" and not next(recipes) == nil then | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
id = recipe["id"] | |||
out = out .. id | |||
out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildmicrowaverecipebox|" .. id .. "}}") .. "\n" | out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildmicrowaverecipebox|" .. id .. "}}") .. "\n" | ||
end | end | ||
| Строка 386: | Строка 388: | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
id = recipe["id"] | |||
out = out .. id | |||
out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildmixablerecipebox|" .. id .. "}}") .. "\n" | out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildmixablerecipebox|" .. id .. "}}") .. "\n" | ||
end | end | ||
| Строка 393: | Строка 396: | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
id = recipe["id"] | |||
out = out .. id | |||
out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildslicerecipebox|" .. id .. "}}") .. "\n" | out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildslicerecipebox|" .. id .. "}}") .. "\n" | ||
end | end | ||
| Строка 400: | Строка 404: | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
id = recipe["id"] | |||
out = out .. id | |||
out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildgrindrecipebox|" .. id .. "}}") .. "\n" | out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildgrindrecipebox|" .. id .. "}}") .. "\n" | ||
end | end | ||
| Строка 407: | Строка 412: | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
id = recipe["id"] | |||
out = out .. id | |||
out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildheatrecipebox|" .. id .. "}}") .. "\n" | out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildheatrecipebox|" .. id .. "}}") .. "\n" | ||
end | end | ||
| Строка 414: | Строка 420: | ||
do | do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
id = recipe["id"] | |||
out = out .. id | |||
out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n" | out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n" | ||
end | end | ||
| Строка 470: | Строка 477: | ||
for type, recipes in pairs(ids) do | for type, recipes in pairs(ids) do | ||
for n, recipe in pairs(recipes) do | for n, recipe in pairs(recipes) do | ||
id = recipe["id"] | |||
out = out .. id .. "\n" | |||
end | end | ||
end | end | ||