Module:Skills/Gathering: Difference between revisions

fixed drop chance for normal loot
(added minlevel check to p.canItemBeStolen)
(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 * 100, level = npc.level})
table.insert(resultArray, {npc = npc.name, minQty = 1, maxQty = dropQty, chance = dropWt / totalWt * thievingNormalLootChance, level = npc.level})
end
end