Module:Items: Difference between revisions

Fixed some calls to get thieving icons
(Updates to getItemLootSourceTable)
(Fixed some calls to get thieving icons)
Line 289: Line 289:
         if loot[1] == item.id then
         if loot[1] == item.id then
           if string.len(thiefStr) > 0 then
           if string.len(thiefStr) > 0 then
             thiefStr = thiefStr..','..Icons.Icon({npc.name, type="item", notext="true"})
             thiefStr = thiefStr..','..Icons.Icon({npc.name, type="thieving", notext="true"})
           else
           else
             thiefStr = thiefStr..'Pickpocketing: '..Icons.Icon({npc.name, type="item", notext="true"})
             thiefStr = thiefStr..'Pickpocketing: '..Icons.Icon({npc.name, type="thieving", notext="true"})
           end
           end
         end
         end
Line 473: Line 473:
       if wt > 0 then
       if wt > 0 then
         chance = (wt / totalWt) * 75
         chance = (wt / totalWt) * 75
         local sourceTxt = Icons.Icon({npc.name, type='npc'})
         local sourceTxt = Icons.Icon({npc.name, type='thieving'})
         table.insert(dropRows, {source = sourceTxt, type = thiefType, minqty = 1, qty = qty, chance = chance})
         table.insert(dropRows, {source = sourceTxt, type = thiefType, minqty = 1, qty = qty, chance = chance})
       end
       end