Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 44: | Строка 44: | ||
local protRadiation = formatPercentage(coefficients and coefficients.Radiation) | local protRadiation = formatPercentage(coefficients and coefficients.Radiation) | ||
local protCaustic = formatPercentage(coefficients and coefficients.Caustic) | local protCaustic = formatPercentage(coefficients and coefficients.Caustic) | ||
local protExplosion = | |||
local protExplosion = itemData and itemData.ExplosionResistance and itemData.ExplosionResistance.damageCoefficient | |||
-- Получаем значения sprintModifier, walkModifier, fireProtection, и temperatureProtection | -- Получаем значения sprintModifier, walkModifier, fireProtection, и temperatureProtection | ||
local sprintModifier = itemData and itemData.sprintModifier | local sprintModifier = itemData and itemData.sprintModifier | ||
local walkModifier = itemData and itemData.walkModifier | local walkModifier = itemData and itemData.walkModifier | ||
local fireProtection = itemData and itemData.FireProtection | local fireProtection = itemData and itemData.FireProtection and itemData.FireProtection.reduction | ||
local temperatureProtection = itemData and itemData.TemperatureProtection | local temperatureProtection = itemData and itemData.TemperatureProtection | ||
local speedDescription = "" | local speedDescription = "" | ||
| Строка 85: | Строка 86: | ||
local out = '' | local out = '' | ||
out = out .. '!class="' .. class .. '" style="background-color: ' .. backgroundColor .. ';"|' .. frame:preprocess('{{Anchor|' .. anchorName .. '}}') | out = out .. '!class="' .. class .. '" style="background-color: ' .. backgroundColor .. ';"|' .. frame:preprocess('{{Anchor|' .. anchorName .. '}}') | ||
out = out .. frame:preprocess('{{#invoke:Entity Lookup|createimagetooltip|File:' .. id .. '.png|' .. id .. '|Мета=64x64px}}') | out = out .. frame:preprocess('{{#invoke:Entity Lookup|createimagetooltip|File:' .. id .. '.png|' .. id .. '|Мета=64x64px,link=}}') | ||
out = out .. '<br>' .. frame:preprocess('{{#invoke:Entity Lookup|getname|' .. id .. '}}') .. '\n' | out = out .. '<br>' .. frame:preprocess('{{#invoke:Entity Lookup|getname|' .. id .. '}}') .. '\n' | ||