Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 31: | Строка 31: | ||
local itemData = findDataById(dataCache, id) | local itemData = findDataById(dataCache, id) | ||
-- Получаем защитные значения из coefficients, если они присутствуют | |||
local coefficients = itemData and itemData.modifiers and itemData.modifiers.coefficients | |||
local protBlunt = formatPercentage(coefficients and coefficients.Blunt) | |||
local protSlash = formatPercentage(coefficients and coefficients.Slash) | |||
local protPiercing = formatPercentage(coefficients and coefficients.Piercing) | |||
local protHeat = formatPercentage(coefficients and coefficients.Heat) | |||
local protRadiation = formatPercentage(coefficients and coefficients.Radiation) | |||
local protCaustic = formatPercentage(coefficients and coefficients.Caustic) | |||
local protExplosion = formatPercentage(itemData and itemData.ExplosionResistance) | local protExplosion = formatPercentage(itemData and itemData.ExplosionResistance) | ||