Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Added exceptions for the Cape of Completion
(Fixed special fishing loot table)
(Added exceptions for the Cape of Completion)
Line 934: Line 934:
    
    
   local ignoreCapes = {'Ranged Skillcape', 'Attack Skillcape', 'Strength Skillcape', 'Hitpoints Skillcape', 'Defence Skillcape'}
   local ignoreCapes = {'Ranged Skillcape', 'Attack Skillcape', 'Strength Skillcape', 'Hitpoints Skillcape', 'Defence Skillcape'}
   if item.name == 'Max Skillcape' or item.name == 'Aorpheat's Signet Ring' then
   if item.name == 'Max Skillcape' or item.name == 'Aorpheat's Signet Ring' or item.name == 'Cape of Completion' then
     table.insert(useArray, '* All skills')
     table.insert(useArray, '* All skills')
   elseif item.name == 'Magic Skillcape' then
   elseif item.name == 'Magic Skillcape' then
Line 944: Line 944:
   end
   end


   if Shared.contains(item.name, 'Skillcape') then table.insert(categoryArray, '[[Category:Skillcapes]]') end
   if Shared.contains(item.name, 'Skillcape') or item.name == 'Cape of Completion' then table.insert(categoryArray, '[[Category:Skillcapes]]') end


   --Special note for Charge Stone of Rhaelyx
   --Special note for Charge Stone of Rhaelyx
Line 1,425: Line 1,425:
   --For right now, only have requirements on Skillcapes
   --For right now, only have requirements on Skillcapes
   result = result..'\r\n|-\r\n!style="text-align:right;"|Requirements\r\n|'
   result = result..'\r\n|-\r\n!style="text-align:right;"|Requirements\r\n|'
   if item.name == 'Max Skillcape' then
   if item.name == 'Cape of Completion' then
    result = result..'100% Completion Log'
  elseif item.name == 'Max Skillcape' then
     result = result..'Level 99 in all [[Skills]]'
     result = result..'Level 99 in all [[Skills]]'
   elseif Shared.contains(item.name, 'Skillcape') then
   elseif Shared.contains(item.name, 'Skillcape') then