Модуль:Prototypes/Роль: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 43: | Строка 43: | ||
if mode == "requirements" then | if mode == "requirements" then | ||
if job.requirements then | |||
for _, req in ipairs(job.requirements) do | |||
if req["!type"] == "DepartmentTimeRequirement" and req.department and req.time then | |||
result = result .. "<li>[[{{ucfirst:{{#invoke:Ftl|main|translation|department-" .. req.department .. "}}}}]]: " .. | |||
formatTime(req.time) .. "</li>" | |||
elseif req["!type"] == "RoleTimeRequirement" and req.role and req.time then | |||
result = result .. "<li>[[{{ucfirst:{{#invoke:Ftl|main|translation|" .. req.role .. "}}}}]]: " .. | |||
formatTime(req.time) .. "</li>" | |||
elseif req["!type"] == "OverallPlaytimeRequirement" and req.time then | |||
result = result .. "<li>Общее время: " .. formatTime(req.time) .. "</li>" | |||
end | |||
end | |||
end | |||
result = "<ul>" .. result .. "</ul>" | |||
elseif mode == "access" then | elseif mode == "access" then | ||