Module:Items/SourceTables: Difference between revisions

added a jadestone exception to the things that reference gems
(added another exception to stuff)
(added a jadestone exception to the things that reference gems)
Line 513: Line 513:


   --Gems can be acquired from mining, fishing, and alt. magic
   --Gems can be acquired from mining, fishing, and alt. magic
   if item.type == 'Gem' then
   if item.type == 'Gem' and item.name ~= 'Jadestone' then
     table.insert(lineArray, Icons.Icon({"Fishing", type='skill', notext=true})..' [[Fishing#Special|Special]]')
     table.insert(lineArray, Icons.Icon({"Fishing", type='skill', notext=true})..' [[Fishing#Special|Special]]')
     table.insert(lineArray, Icons.Icon({"Mining", type='skill', notext=true})..' [[Mining#Gems|Gem]]')
     table.insert(lineArray, Icons.Icon({"Mining", type='skill', notext=true})..' [[Mining#Gems|Gem]]')
Line 732: Line 732:


   --Bonus overtime: Special Fishing table & mining gem table. Also Rags to Riches
   --Bonus overtime: Special Fishing table & mining gem table. Also Rags to Riches
   if item.type == 'Gem' then
  --Jadestone is special and doesn't count
   if item.type == 'Gem' and item.name ~= 'Jadestone' then
     local mineType = Icons.Icon({'Mining', type='skill'})
     local mineType = Icons.Icon({'Mining', type='skill'})
     local thisGemChance = Items.GemTable[item.name].chance
     local thisGemChance = Items.GemTable[item.name].chance