Anonymous

Module:Items/SourceTables: Difference between revisions

From Melvor Idle
m
j/k really fixed now
(Fixed two issues introduced by rearranging how SkillData is formatted)
m (j/k really fixed now)
Line 90: Line 90:
   if item.type == "Logs" then
   if item.type == "Logs" then
     --Well this feels like cheating, but for as long as logs are the first items by ID it works
     --Well this feels like cheating, but for as long as logs are the first items by ID it works
     local treeData = SkillData.Woodcutting.Logs[item.id + 1]
     local treeData = SkillData.Woodcutting.Trees[item.id + 1]
     skill = 'Woodcutting'
     skill = 'Woodcutting'
     lvl = treeData.level
     lvl = treeData.level
Line 427: Line 427:
   --WoodcuttingCheck
   --WoodcuttingCheck
   if item.type == 'Logs' then
   if item.type == 'Logs' then
     local treeData = SkillData.Woodcutting.Logs[item.id + 1]
     local treeData = SkillData.Woodcutting.Trees[item.id + 1]
     local lvl = treeData.level
     local lvl = treeData.level
     table.insert(lineArray, Icons._SkillReq("Woodcutting", lvl))
     table.insert(lineArray, Icons._SkillReq("Woodcutting", lvl))