Refonte pour utiliser le systeme de GUI #112

Merged
kazhnuz merged 102 commits from feat/gui into master 2022-01-06 19:15:16 +01:00
Showing only changes of commit 28f41fcc49 - Show all commits

View file

@ -15,4 +15,18 @@ function CharacterData:getResistences()
return self.data.resists return self.data.resists
end end
function CharacterData:getSkillName(skill)
local skilldata = core.datas:get("skills", skill)
local name = skilldata.fullname
if (skilldata.altName ~= nil) then
if (skilldata.altName[self.simplename] ~= nil) then
name = skilldata.altName[self.simplename]
end
end
print(name)
return name
end
return CharacterData return CharacterData