diff --git a/classes/dataholders/competenceholder.lua b/classes/dataholders/competenceholder.lua index bb95ee7..d6c7797 100644 --- a/classes/dataholders/competenceholder.lua +++ b/classes/dataholders/competenceholder.lua @@ -10,9 +10,11 @@ function Competence:new(name) end function Competence:reduce(level) + local baseValue = self.base + (self.lvl * level) + self.bonus + self.add + return { name = self.name, - value = self.base + (self.lvl * level) + self.bonus + self.add + value = math.floor(baseValue / 5) * 5 } end