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

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


    -- Новый режим обработки special
     if slot == "special" then
     if slot == "special" then
         local implants = {}
         local implants = {}
         if job.special then
         if job.special then
             for _, special in ipairs(job.special) do
             for _, special in ipairs(job.special) do
                 if special["!type"] == "AddImplantSpecial" and special.implants then
                 if type(special) == "table" and special["!type"] == "AddImplantSpecial" and special.implants then
                     for _, implant in ipairs(special.implants) do
                     for _, implant in ipairs(special.implants) do
                         table.insert(implants, string.format("{{#invoke:Entity Lookup|getname|%s}}", implant))
                         table.insert(implants, string.format("{{#invoke:Entity Lookup|getname|%s}}", implant))