Module:Constants: Difference between revisions

added getSlayerTierName
(Changed free bonfire modifier name)
(added getSlayerTierName)
Line 189: Line 189:
   end
   end
   return nil
   return nil
end
function p.getSkillID(skillName)
  return ConstantData.skill[skillName]
end
end


Line 200: Line 204:
end
end


function p.getSkillID(skillName)
function p.getSlayerTierName(tier)
   return ConstantData.skill[skillName]
   for name, num in Shared.skpairs(ConstantData.slayerTier) do
    if num == tier then
      return name
    end
  end
  return "ERROR: Invalid Slayer tier[[Category:Pages with script errors]]"
end
end