4,951
edits
Falterfire (talk | contribs) (added minlevel check to p.canItemBeStolen) |
Falterfire (talk | contribs) (fixed drop chance for normal loot) |
||
Line 653: | Line 653: | ||
end | end | ||
if dropWt > 0 then | if dropWt > 0 then | ||
table.insert(resultArray, {npc = npc.name, minQty = 1, maxQty = dropQty, chance = dropWt / totalWt * | table.insert(resultArray, {npc = npc.name, minQty = 1, maxQty = dropQty, chance = dropWt / totalWt * thievingNormalLootChance, level = npc.level}) | ||
end | end | ||