4,951
edits
Falterfire (talk | contribs) (Updates to getItemLootSourceTable) |
Falterfire (talk | contribs) (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=" | thiefStr = thiefStr..','..Icons.Icon({npc.name, type="thieving", notext="true"}) | ||
else | else | ||
thiefStr = thiefStr..'Pickpocketing: '..Icons.Icon({npc.name, type=" | 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=' | 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 |