572
edits
No edit summary |
No edit summary |
||
Line 202: | Line 202: | ||
for _, resource in ipairs(resources) do | for _, resource in ipairs(resources) do | ||
resource.itemConversions = {} | resource.itemConversions = {} | ||
if resource.id == 'GP' then | if resource.id == 'melvorF:GP' then | ||
-- No conversions | -- No conversions | ||
elseif resource.id == 'Food' then | elseif resource.id == 'melvorF:Food' then | ||
resource._skill = 'Cooking' | resource._skill = 'Cooking' | ||
for _, food in ipairs(Data.Item.Match('type', 'Food')) do | for _, food in ipairs(Data.Item.Match('type', 'Food')) do | ||
Line 211: | Line 211: | ||
end | end | ||
end | end | ||
elseif resource.id == 'Wood' or resource.id == 'Planks' then | elseif resource.id == 'melvorF:Wood' or resource.id == 'melvorF:Planks' then | ||
resource._skill = 'Woodcutting' | resource._skill = 'Woodcutting' | ||
resource.itemConversions = Data.Item.Match('type', 'Logs') | resource.itemConversions = Data.Item.Match('type', 'Logs') | ||
elseif resource.id == 'Stone' or resource.id == 'Ore' then | elseif resource.id == 'melvorF:Stone' or resource.id == 'melvorF:Ore' then | ||
resource._skill = 'Mining' | resource._skill = 'Mining' | ||
for _, ore in ipairs(Data.Item.Match('type', 'Ore')) do | for _, ore in ipairs(Data.Item.Match('type', 'Ore')) do | ||
Line 221: | Line 221: | ||
end | end | ||
end | end | ||
elseif resource.id == 'Coal' then | elseif resource.id == 'melvorF:Coal' then | ||
resource._skill = 'Mining' | resource._skill = 'Mining' | ||
local coal = 'melvorD:Coal_Ore' | local coal = 'melvorD:Coal_Ore' | ||
table.insert(resource.itemConversions, Data.Item.ByID(coal)) | table.insert(resource.itemConversions, Data.Item.ByID(coal)) | ||
elseif resource.id == 'Bar' then | elseif resource.id == 'melvorF:Bar' then | ||
resource._skill = 'Mining' | resource._skill = 'Mining' | ||
for _, bar in ipairs(Data.Item.Match('type', 'Ore')) do | for _, bar in ipairs(Data.Item.Match('type', 'Ore')) do | ||
Line 232: | Line 232: | ||
end | end | ||
end | end | ||
elseif resource.id == 'Herbs' then | elseif resource.id == 'melvorF:Herbs' then | ||
resource._skill = 'Farming' | resource._skill = 'Farming' | ||
resource.itemConversions = Data.Item.Match('type', 'Herb') | resource.itemConversions = Data.Item.Match('type', 'Herb') | ||
elseif resource.id == 'Rune_Essence' then | elseif resource.id == 'melvorF:Rune_Essence' then | ||
resource._skill = 'Mining' | resource._skill = 'Mining' | ||
local ressence = 'melvorD:Rune_Essence' | local ressence = 'melvorD:Rune_Essence' | ||
Line 241: | Line 241: | ||
table.insert(resource.itemConversions, Data.Item.ByID(ressence)) | table.insert(resource.itemConversions, Data.Item.ByID(ressence)) | ||
table.insert(resource.itemConversions, Data.Item.ByID(pessence)) | table.insert(resource.itemConversions, Data.Item.ByID(pessence)) | ||
elseif resource.id == 'Leather' then | elseif resource.id == 'melvorF:Leather' then | ||
resource._skill = 'Crafting' -- Placeholder - actually no related skill to obtain | resource._skill = 'Crafting' -- Placeholder - actually no related skill to obtain | ||
local leather = 'Leather' | local leather = 'Leather' | ||
table.insert(resource.itemConversions, Data.Item.ByID(leather)) | table.insert(resource.itemConversions, Data.Item.ByID(leather)) | ||
elseif resource.id == 'Potions' then | elseif resource.id == 'melvorF:Potions' then | ||
resource._skill = 'Herblore' | resource._skill = 'Herblore' | ||
for _, potion in ipairs(Data.Item.Match('type', 'Potion')) do | for _, potion in ipairs(Data.Item.Match('type', 'Potion')) do | ||
Line 252: | Line 252: | ||
end | end | ||
end | end | ||
elseif resource.id == 'Clothing' then | elseif resource.id == 'melvorF:Clothing' then | ||
resource._skill = 'Crafting' | resource._skill = 'Crafting' | ||
local matches = {} | local matches = {} |
edits