Module:Constants: Difference between revisions

fixed getSkillName with new formatting
(Update modifiers for v1.0)
(fixed getSkillName with new formatting)
Line 382: Line 382:


function p.getSkillName(skillID)
function p.getSkillName(skillID)
  for skName, ID in Shared.skpairs(ConstantData.skill) do
return ConstantData.skill[skillID]
    if ID == skillID then
      return skName
    end
  end
  return nil
end
end


function p.getSkillID(skillName)
function p.getSkillID(skillName)
  return ConstantData.skill[skillName]
return ConstantData.skill[skillName]
end
end