17,105
edits
(Update for v1.1) |
(getSkillName/getSkillID: Fix) |
||
Line 655: | Line 655: | ||
function p.getSkillName(skillID) | function p.getSkillName(skillID) | ||
local skill = GameData. | local skill = GameData.getSkillData(skillID) | ||
if skill ~= nil then | if skill ~= nil then | ||
return skill.data.name | return skill.data.name | ||
Line 662: | Line 662: | ||
function p.getSkillID(skillName) | function p.getSkillID(skillName) | ||
for i, skillData in ipairs(GameData.rawData.skillData) do | |||
if skillData.data.name == skillName then | |||
return skillData.skillID | |||
end | |||
end | end | ||
end | end |