Модуль:Prototypes/Хранилище/Предмет: различия между версиями

мНет описания правки
Нет описания правки
Строка 339: Строка 339:
         end
         end


         if subMode == 'chem' then
         if subMode == 'contained' then
        subModeChem = getChemOutput(chemData, id)
            return frame:preprocess('{{СollapsibleMenu|color=#3e7c82|' .. subModeChem .. '}}')
        elseif subMode == 'contained' then
             return frame:preprocess('{{СollapsibleMenu|' .. getContainedOutput(itemDataIndex, id) .. '}}')
             return frame:preprocess('{{СollapsibleMenu|' .. getContainedOutput(itemDataIndex, id) .. '}}')
        elseif subMode == 'chem' then
            return frame:preprocess('{{СollapsibleMenu|color=#3e7c82|' .. getChemOutput(chemData, id) .. '}}')
elseif subMode == "slot" then
elseif subMode == "slot" then
    local itemDataEntry = findDataById(itemSlotsData, id)
    local itemDataEntry = findDataById(itemSlotsData, id)