Module:Items/SourceTables: Difference between revisions

added another exception to stuff
(added cooking support)
(added another exception to stuff)
Line 130: Line 130:
     table.insert(tables, p.buildCreationTable(skill, lvl, xp, req, qty, time, maxTime))
     table.insert(tables, p.buildCreationTable(skill, lvl, xp, req, qty, time, maxTime))
   end
   end
   if item.type == "Harvest" or item.type == "Herb" or item.type == "Logs" or Shared.contains(item.name, '(Perfect)') then
  --had to add cooking to the list of valid categories here to account for cherries/apples
   if item.category == 'Cooking' or item.type == "Harvest" or item.type == "Herb" or item.type == "Logs" or Shared.contains(item.name, '(Perfect)') then
     --Harvest/Herb means farming
     --Harvest/Herb means farming
     --Logs might mean farming or might not. Depends on the logs
     --Logs might mean farming or might not. Depends on the logs