From e211c779a2615b56cc8415fd71deae896bbc771d Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 20 Aug 2021 23:15:35 +0200 Subject: [PATCH] fix: regenerate skill liste after deserialization --- sonic-radiance.love/game/abstractmobs/character/init.lua | 2 +- sonic-radiance.love/game/abstractmobs/character/levels.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sonic-radiance.love/game/abstractmobs/character/init.lua b/sonic-radiance.love/game/abstractmobs/character/init.lua index 0c37ebb..082b8fe 100644 --- a/sonic-radiance.love/game/abstractmobs/character/init.lua +++ b/sonic-radiance.love/game/abstractmobs/character/init.lua @@ -68,7 +68,7 @@ function AbstractCharacter:createSkills() end function AbstractCharacter:finishDeserialization() - + self.skills = self:createSkills() end return AbstractCharacter diff --git a/sonic-radiance.love/game/abstractmobs/character/levels.lua b/sonic-radiance.love/game/abstractmobs/character/levels.lua index 60584f4..2fd49d1 100644 --- a/sonic-radiance.love/game/abstractmobs/character/levels.lua +++ b/sonic-radiance.love/game/abstractmobs/character/levels.lua @@ -20,6 +20,7 @@ function CharacterLevel:setLevel(newlevel) self.exp_next = exp_max self:updateHPPP() + self.skills = self:createSkills() end function CharacterLevel:levelUp()