Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 38: | Строка 38: | ||
found = true | found = true | ||
local tech = research.technology | local tech = research.technology | ||
local iconPath = tech.icon and tech.icon.sprite or nil | |||
local tierColor = tierColors[tech.tier] or "#FFFFFF" | local tierColor = tierColors[tech.tier] or "#FFFFFF" | ||
local disciplineName = disciplineMapping[tech.discipline] or "Неизвестная дисциплина" | local disciplineName = disciplineMapping[tech.discipline] or "Неизвестная дисциплина" | ||
| Строка 118: | Строка 118: | ||
local tierColor = tierColors[tech.tier] or "#FFFFFF" | local tierColor = tierColors[tech.tier] or "#FFFFFF" | ||
local disciplineName = disciplineMapping[tech.discipline] or "Неизвестная дисциплина" | local disciplineName = disciplineMapping[tech.discipline] or "Неизвестная дисциплина" | ||
local iconPath = manualIcon ~= "" and manualIcon or (tech.icon and tech.icon.sprite or nil) | local iconPath = manualIcon ~= "" and manualIcon or (tech.icon and tech.icon.sprite or nil) | ||