Anonymous

Module:Items/ComparisonTables: Difference between revisions

From Melvor Idle
Added level requirements to getItemUpgradeTable's comparisons
(Added getItemUpgradeTable)
(Added level requirements to getItemUpgradeTable's comparisons)
Line 370: Line 370:
   local SlayBon2 = Items._getItemModifier(item2, 'increasedSkillXP', 'Slayer')
   local SlayBon2 = Items._getItemModifier(item2, 'increasedSkillXP', 'Slayer')
   getSpecificStatString(SlayBon1, SlayBon2, '{V}% '..Icons.Icon({'Slayer', type='skill', notext=true})..' Bonus XP')
   getSpecificStatString(SlayBon1, SlayBon2, '{V}% '..Icons.Icon({'Slayer', type='skill', notext=true})..' Bonus XP')
  getSpecificStatString(item1.attackLevelRequired, item1.attackLevelRequired, '{V} '..Icons.Icon({'Attack', type='skill', notext=true})..' Level Required')
  getSpecificStatString(item1.defenceLevelRequired, item1.defenceLevelRequired, '{V} '..Icons.Icon({'Defence', type='skill', notext=true})..' Level Required')
  getSpecificStatString(item1.rangedLevelRequired, item1.rangedLevelRequired, '{V} '..Icons.Icon({'Ranged', type='skill', notext=true})..' Level Required')
  getSpecificStatString(item1.magicLevelRequired, item1.magicLevelRequired, '{V} '..Icons.Icon({'Magic', type='skill', notext=true})..' Level Required')


   return table.concat(changeArray, '<br/>')
   return table.concat(changeArray, '<br/>')