Модуль:Meals Lookup: различия между версиями

Нет описания правки
Нет описания правки
Строка 391: Строка 391:


function p.buildrecipeboxuniversal(frame, idtable)
function p.buildrecipeboxuniversal(frame, idtable)
     local out = "startd\n"
     local out = ""
     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 = ""
         local id = ""
        out = out .. table.length(recipes) .. " " .. type .. "\n"
         if type == "microwaveRecipes" and not table.isempty(recipes) then
         if type == "microwaveRecipes" and not table.isempty(recipes) then
             do
             do
Строка 444: Строка 443:
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n"
                     out = out .. frame:preprocess("{{#invoke:Meals Lookup|buildtoolmaderecipebox|" .. id .. "}}") .. "\n"
                 end
                 end
            end
        else
            do
                out = out .. "bruh" .. "\n"
                out = out .. type .. "\n"
             end
             end
         end
         end
     end
     end
    out = out .. "endd"
     return out
     return out
end
end