Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Added 'Items With Special Attacks' category
(Areas reference no longer needed and was causing problems)
(Added 'Items With Special Attacks' category)
Line 252: Line 252:
   if item.type ~= nil then result = result..'[[Category:'..item.type..']]' end
   if item.type ~= nil then result = result..'[[Category:'..item.type..']]' end
   if item.tier ~= nil then result = result..'[[Category:'..Shared.titleCase(item.tier)..' '..item.type..']]' end
   if item.tier ~= nil then result = result..'[[Category:'..Shared.titleCase(item.tier)..' '..item.type..']]' end
  if item.hasSpecialAttack then result = result..'[[Category:Items With Special Attacks]]' end
   return result
   return result
end
end