fix: regenerate skill liste after deserialization

This commit is contained in:
Kazhnuz 2021-08-20 23:15:35 +02:00
parent 167491ecaa
commit e211c779a2
2 changed files with 2 additions and 1 deletions

View file

@ -68,7 +68,7 @@ function AbstractCharacter:createSkills()
end
function AbstractCharacter:finishDeserialization()
self.skills = self:createSkills()
end
return AbstractCharacter

View file

@ -20,6 +20,7 @@ function CharacterLevel:setLevel(newlevel)
self.exp_next = exp_max
self:updateHPPP()
self.skills = self:createSkills()
end
function CharacterLevel:levelUp()