Anonymous

Module:Items: Difference between revisions

From Melvor Idle
m
Add equipment slot to page categories
m (getShopSkillcapeTable: Move to Module:Shop)
m (Add equipment slot to page categories)
Line 334: Line 334:
   if item.category ~= nil then result = result..'[[Category:'..item.category..']]' end
   if item.category ~= nil then result = result..'[[Category:'..item.category..']]' end
   if item.type ~= nil then result = result..'[[Category:'..item.type..']]' end
   if item.type ~= nil then result = result..'[[Category:'..item.type..']]' end
  if item.equipmentSlot ~= nil then result = result..'[[Category:'..Constants.getEquipmentSlotName(item.equipmentSlot)..']]' 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
   if item.hasSpecialAttack then result = result..'[[Category:Items With Special Attacks]]' end
285

edits