4,683
edits
(Amended for gameData changes) |
(Add better support for the damageType of items and add a space after some icons) |
||
Line 721: | Line 721: | ||
local resistance, resistanceText = p._getItemResistance(item) | local resistance, resistanceText = p._getItemResistance(item) | ||
local damageType = p._getItemStat(item, 'damageType') | local ns, damageType = Shared.getLocalID(p._getItemStat(item, 'damageType')) | ||
local ico = { | local ico = { | ||
Line 749: | Line 749: | ||
table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"| Damage Type') | table.insert(resultPart, '\r\n|-\r\n!style="text-align:right;"| Damage Type') | ||
table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. ico['DamageType'] .. damageType) | table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. ico['DamageType'] .. ' ' .. damageType) | ||
table.insert(resultPart, '\r\n!style="text-align:right;"| ' .. ico['Resistance'] .. resistanceText) | table.insert(resultPart, '\r\n!style="text-align:right;"| ' .. ico['Resistance'] .. ' ' .. resistanceText) | ||
table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. resistance .. '%') | table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. resistance .. '%') | ||