Модуль:Prototypes/Роль/Экипировка: различия между версиями

мНет описания правки
мНет описания правки
Строка 87: Строка 87:
         local roleLoadoutData = findById(gearRoleLoadout, roleLoadoutId)
         local roleLoadoutData = findById(gearRoleLoadout, roleLoadoutId)
         if roleLoadoutData then
         if roleLoadoutData then
             for _, groupId in ipairs(roleLoadoutData.groups or {}) do
            local groups = roleLoadoutData.groups
            if type(groups) ~= "table" then
                groups = { groups }
            end
             for _, groupId in ipairs(groups) do
                 if groupId ~= "Trinkets" then  -- исключаем Trinkets
                 if groupId ~= "Trinkets" then  -- исключаем Trinkets
                     local groupFound = nil
                     local groupFound = nil