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

мНет описания правки
мНет описания правки
Строка 377: Строка 377:
         local entities = isStore and storeEntities or { id }
         local entities = isStore and storeEntities or { id }
         local switchesToProcess = isStore and { "card" } or switches
         local switchesToProcess = isStore and { "card" } or switches
        if isStore then
            parsed = parsed or {}
            if not parsed.card or #parsed.card == 0 then
                parsed.card = { (kind == "component") and "ComponentStore" or "PrototypeStore" }
            end
        end


         for _, sw in ipairs(switchesToProcess) do
         for _, sw in ipairs(switchesToProcess) do