diff --git a/lua/app/userdata/runes/runes_data.lua b/lua/app/userdata/runes/runes_data.lua index b0d0bd0c..92bc7bdd 100644 --- a/lua/app/userdata/runes/runes_data.lua +++ b/lua/app/userdata/runes/runes_data.lua @@ -89,7 +89,7 @@ end -- 获取等级当前经验 function RunesData:getLevelExp() - return self.exp + return self.exp - self:getLevelConfig()[self:getLevel()].cost end -- 获取到下一档的总经验 diff --git a/lua/app/userdata/runes/runes_entity.lua b/lua/app/userdata/runes/runes_entity.lua index fba86feb..3cc979b6 100644 --- a/lua/app/userdata/runes/runes_entity.lua +++ b/lua/app/userdata/runes/runes_entity.lua @@ -189,8 +189,8 @@ function RunesEntity:getAttrValue(attrType, isBase) result = result + self:getHeroEntity():getTotalBaseAtk() * self:getAttrValue(GConst.MATCH_ATTACK_ADD_NAME) // DEFAULT_FACTOR return result elseif not isBase and (attrType == GConst.MATCH_NORMAL_HURTP_NAME[self:getHeroEntity():getMatchType()] or attrType == GConst.MATCH_SKILL_HURTP_NAME[self:getHeroEntity():getMatchType()]) then - result = self:getAttrValue(GConst.MATCH_ALL_HURTP_NAME[self:getHeroEntity():getMatchType()]) - result = result + self:getAttrValue(GConst.MATCH_ATTACK_ADD_NAME) + result = self:getAttrValue(attrType, true) + result = result + self:getAttrValue(GConst.MATCH_ALL_HURTP_NAME, true) return result else local all = self:getAllAttr()