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

мНет описания правки
мНет описания правки
 
(не показана 1 промежуточная версия этого же участника)
Строка 41: Строка 41:
                                 local req = eff.requirement
                                 local req = eff.requirement
                                 if req["!type"] == "DepartmentTimeRequirement" and req.department and req.time then
                                 if req["!type"] == "DepartmentTimeRequirement" and req.department and req.time then
                                     extraInfo = extraInfo .. "<b>{{ucfirst:{{#invoke:Ftl|main|translation|department-" .. req.department .. "}}}}</b>: {{#invoke:Code/Формат/Время|main|seconds|" .. req.time .. "}}<br>"
                                     extraInfo = extraInfo .. "<b>{{ucfirst:{{#invoke:Loc|GetString|department-" .. req.department .. "}}}}</b>: {{#invoke:Code/Формат/Время|main|seconds|" .. req.time .. "}}<br>"
                                 elseif req["!type"] == "RoleTimeRequirement" and req.role and req.time then
                                 elseif req["!type"] == "RoleTimeRequirement" and req.role and req.time then
                                     extraInfo = extraInfo .. "<b>{{ucfirst:{{#invoke:Ftl|main|translation|" .. req.role .. "}}}}</b>: {{#invoke:Code/Формат/Время|main|seconds|" .. req.time .. "}}<br>"
                                     extraInfo = extraInfo .. "<b>{{ucfirst:{{#invoke:Loc|GetString|" .. req.role .. "}}}}</b>: {{#invoke:Code/Формат/Время|main|seconds|" .. req.time .. "}}<br>"
                                 end
                                 end
                             end
                             end
Строка 119: Строка 119:
                                         local extraInfo = getExtraInfo(loadout)
                                         local extraInfo = getExtraInfo(loadout)
                                         local infoOutput = formatExtraInfo(extraInfo)
                                         local infoOutput = formatExtraInfo(extraInfo)
                                         table.insert(results, infoOutput .. '{{Предмет|' .. eqValue .. '|repository=|size=64px|label=|imageTooltip=}} [[File:Slot.png|64px|link=]]')
                                         table.insert(results, infoOutput .. '{{Предмет|' .. eqValue .. '|size=64px|repository=|label=|imageTooltip=}} [[File:Slot.png|64px|link=]]')
                                     end
                                     end
                                 end
                                 end
Строка 128: Строка 128:
                                         local extraInfo = getExtraInfo(loadout)
                                         local extraInfo = getExtraInfo(loadout)
                                         local infoOutput = formatExtraInfo(extraInfo)
                                         local infoOutput = formatExtraInfo(extraInfo)
                                         table.insert(results, infoOutput .. '{{Предмет|' .. eqValue .. '|repository=|size=64px|label=|imageTooltip=}} [[File:Slot.png|64px|link=]]')
                                         table.insert(results, infoOutput .. '{{Предмет|' .. eqValue .. '|size=64px|repository=|label=|imageTooltip=}} [[File:Slot.png|64px|link=]]')
                                     end
                                     end
                                 end
                                 end