Модуль:Prototypes/Роль/Лодаут: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| (не показана 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: | 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: | 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 .. '| | 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 .. '| | table.insert(results, infoOutput .. '{{Предмет|' .. eqValue .. '|size=64px|repository=|label=|imageTooltip=}} [[File:Slot.png|64px|link=]]') | ||
end | end | ||
end | end | ||