Модуль:ArmorStats: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 7: | Строка 7: | ||
local itemId = frame.args.itemId or "" -- ID предмета | local itemId = frame.args.itemId or "" -- ID предмета | ||
local | local protBlunt = frame.args.protBlunt or "-" -- Ударный | ||
local | local protSlash = frame.args.protSlash or "-" -- Режущий | ||
local | local protPiercing = frame.args.protPiercing or "-" -- Колющий | ||
local | local protHead = frame.args.protHead or "-" -- Высокотемпературный | ||
local | local protRadiation = frame.args.protRadiation or "-" -- Кислотный | ||
local | local protCaustic = frame.args.protCaustic or "-" -- Радиационный | ||
local | local protExplosion = frame.args.protExplosion or "-" -- Взрывной | ||
local description = frame.args.description or "" -- Описание | local description = frame.args.description or "" -- Описание | ||
local location = frame.args.location or "" -- Местонахождение | local location = frame.args.location or "" -- Местонахождение | ||
local backgroundColor = frame.args.backgroundColor or "" -- Цвет фона для всех ячеек, кроме первой | |||
-- Вызов функции из модуля Entity Lookup для создания image tooltip | -- Вызов функции из модуля Entity Lookup для создания image tooltip | ||
| Строка 32: | Строка 33: | ||
out = out .. imageTooltip | out = out .. imageTooltip | ||
out = out .. '<br>' .. itemName .. '\n' | out = out .. '<br>' .. itemName .. '\n' | ||
out = out .. '|style="font-weight:500;color: crimson"|' .. | out = out .. '|style="font-weight:500;color: crimson;background-color: ' .. backgroundColor .. '"|' .. protBlunt .. '\n' | ||
out = out .. '|style="font-weight:500;color: indianred"|' .. | out = out .. '|style="font-weight:500;color: indianred;background-color: ' .. backgroundColor .. '"|' .. protSlash .. '\n' | ||
out = out .. '|style="font-weight:500;color: darksalmon"|' .. | out = out .. '|style="font-weight:500;color: darksalmon;background-color: ' .. backgroundColor .. '"|' .. protPiercing .. '\n' | ||
out = out .. '|style="font-weight:500;color: orange"|' .. | out = out .. '|style="font-weight:500;color: orange;background-color: ' .. backgroundColor .. '"|' .. protHead .. '\n' | ||
out = out .. '|style="font-weight:500;color: plum"|' .. | out = out .. '|style="font-weight:500;color: plum;background-color: ' .. backgroundColor .. '"|' .. protRadiation .. '\n' | ||
out = out .. '|style="font-weight:500;color: limegreen"|' .. | out = out .. '|style="font-weight:500;color: limegreen;background-color: ' .. backgroundColor .. '"|' .. protCaustic .. '\n' | ||
out = out .. '|style="font-weight:500;color: tan"|' .. | out = out .. '|style="font-weight:500;color: tan;background-color: ' .. backgroundColor .. '"|' .. protExplosion .. '\n' | ||
out = out .. '|\n' .. description .. '\n | out = out .. '|style="background-color: ' .. backgroundColor .. '"|\n' .. description .. '\n' | ||
out = out .. '|style="background-color: ' .. backgroundColor .. '"|\n' .. location .. '\n|-' | |||
return out | return out | ||