Anonymous

Module:Items: Difference between revisions

From Melvor Idle
_getOtherItemBoxText: Lazy adjustment for Augite special attack descriptions
(_getItemStat: Fix typo in skill level stat)
(_getOtherItemBoxText: Lazy adjustment for Augite special attack descriptions)
Line 234: Line 234:
             local spAtt = GameData.getEntityByID('attacks', spAttID)
             local spAtt = GameData.getEntityByID('attacks', spAttID)
             if spAtt ~= nil then
             if spAtt ~= nil then
            local spAttDesc = string.gsub(spAtt.description, '<Attack> ', '')
    table.insert(resultPart, '\r\n* ' .. spAtt.defaultChance .. '% chance for ' .. spAtt.name .. ':')
    table.insert(resultPart, '\r\n* ' .. spAtt.defaultChance .. '% chance for ' .. spAtt.name .. ':')
    table.insert(resultPart, '\r\n** ' .. spAtt.description)
    table.insert(resultPart, '\r\n** ' .. spAttDesc)
             end
             end
end
end