fix: regenerate skill liste after deserialization
This commit is contained in:
parent
167491ecaa
commit
e211c779a2
2 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,7 @@ function AbstractCharacter:createSkills()
|
|||
end
|
||||
|
||||
function AbstractCharacter:finishDeserialization()
|
||||
|
||||
self.skills = self:createSkills()
|
||||
end
|
||||
|
||||
return AbstractCharacter
|
||||
|
|
|
@ -20,6 +20,7 @@ function CharacterLevel:setLevel(newlevel)
|
|||
self.exp_next = exp_max
|
||||
|
||||
self:updateHPPP()
|
||||
self.skills = self:createSkills()
|
||||
end
|
||||
|
||||
function CharacterLevel:levelUp()
|
||||
|
|
Loading…
Reference in a new issue