Module:Items/SourceTables/Sandbox: Difference between revisions

m
Add missing level requirements
m (Fix level concat in table)
m (Add missing level requirements)
Line 847: Line 847:
source = Icons.Icon({iconName, type='monster'}),  
source = Icons.Icon({iconName, type='monster'}),  
type = '[[Monster]]', minqty = drop.minQty,  
type = '[[Monster]]', minqty = drop.minQty,  
level = '[[File:File:Combat.svg|25px|link=Combat]] Level ' .. monster.level,
qty = drop.maxQty,  
qty = drop.maxQty,  
weight = drop.dropWt,  
weight = drop.dropWt,  
Line 861: Line 862:
source = Icons.Icon({drop.name, type='poi'}),  
source = Icons.Icon({drop.name, type='poi'}),  
type = '[[Archaeology|Dig Site]] ('..drop.size..')',  
type = '[[Archaeology|Dig Site]] ('..drop.size..')',  
level = Icons._SkillReq("Archaeology", drop.level),
minqty = drop.minQty,  
minqty = drop.minQty,  
qty = drop.maxQty,  
qty = drop.maxQty,  
Line 876: Line 878:
source = Icons.Icon({dungeon.name, type='dungeon'}),  
source = Icons.Icon({dungeon.name, type='dungeon'}),  
type = '[[Dungeon]]',  
type = '[[Dungeon]]',  
level = nil,
minqty = 1,  
minqty = 1,  
qty = 1,  
qty = 1,  
Line 891: Line 894:
source = sourceTxt,  
source = sourceTxt,  
type = '[[Dungeon]]',  
type = '[[Dungeon]]',  
level = nil,
minqty = 1,  
minqty = 1,  
qty = 1,  
qty = 1,  
Line 919: Line 923:
table.insert(dropRows, {
table.insert(dropRows, {
source = sourceTxt,  
source = sourceTxt,  
type = '[[Chest]]',  
type = '[[Chest]]',
level = nil,
minqty = minQty,  
minqty = minQty,  
qty = maxQty,  
qty = maxQty,  
Line 940: Line 945:
table.insert(dropRows, {
table.insert(dropRows, {
source = sourceTxt,  
source = sourceTxt,  
type = Icons.Icon({SkillData.Thieving.name, type='skill'}),  
type = Icons.Icon({SkillData.Thieving.name, type='skill'}),
level = Icons._SkillReq("Thieving", thiefRow.npc.level),
minqty = thiefRow.minQty,  
minqty = thiefRow.minQty,  
qty = thiefRow.maxQty,  
qty = thiefRow.maxQty,  
Line 956: Line 962:
source = fishSource,  
source = fishSource,  
type = fishType,  
type = fishType,  
level = Icons._SkillReq("Fishing", 1),
minqty = 1,  
minqty = 1,  
qty = 1,  
qty = 1,  
Line 974: Line 981:
source = fishSource,  
source = fishSource,  
type = fishType,  
type = fishType,  
level = Icons._SkillReq("Fishing", 1),
minqty = fishItem.minQuantity,  
minqty = fishItem.minQuantity,  
qty = fishItem.maxQuantity,  
qty = fishItem.maxQuantity,  
Line 1,335: Line 1,343:
local min = found.minQuantity
local min = found.minQuantity
local max = found.maxQuantity
local max = found.maxQuantity
table.insert(resultArray, {id = digSite.id, name = digSite.name, size = sizeName, minQty = min, maxQty = max, dropWt = found.weight, totalWt = sizeWeight})
table.insert(resultArray, {
id = digSite.id,  
name = digSite.name,  
level = digSite.level,
size = sizeName,  
minQty = min,  
maxQty = max,  
dropWt = found.weight,  
totalWt = sizeWeight})
end
end
end
end
964

edits