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
|
end
|
||||||
|
|
||||||
function AbstractCharacter:finishDeserialization()
|
function AbstractCharacter:finishDeserialization()
|
||||||
|
self.skills = self:createSkills()
|
||||||
end
|
end
|
||||||
|
|
||||||
return AbstractCharacter
|
return AbstractCharacter
|
||||||
|
|
|
@ -20,6 +20,7 @@ function CharacterLevel:setLevel(newlevel)
|
||||||
self.exp_next = exp_max
|
self.exp_next = exp_max
|
||||||
|
|
||||||
self:updateHPPP()
|
self:updateHPPP()
|
||||||
|
self.skills = self:createSkills()
|
||||||
end
|
end
|
||||||
|
|
||||||
function CharacterLevel:levelUp()
|
function CharacterLevel:levelUp()
|
||||||
|
|
Loading…
Reference in a new issue