显示fix
This commit is contained in:
parent
1f93123171
commit
5c490ce2b6
@ -89,7 +89,7 @@ end
|
|||||||
|
|
||||||
-- 获取等级当前经验
|
-- 获取等级当前经验
|
||||||
function RunesData:getLevelExp()
|
function RunesData:getLevelExp()
|
||||||
return self.exp
|
return self.exp - self:getLevelConfig()[self:getLevel()].cost
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 获取到下一档的总经验
|
-- 获取到下一档的总经验
|
||||||
|
|||||||
@ -189,8 +189,8 @@ function RunesEntity:getAttrValue(attrType, isBase)
|
|||||||
result = result + self:getHeroEntity():getTotalBaseAtk() * self:getAttrValue(GConst.MATCH_ATTACK_ADD_NAME) // DEFAULT_FACTOR
|
result = result + self:getHeroEntity():getTotalBaseAtk() * self:getAttrValue(GConst.MATCH_ATTACK_ADD_NAME) // DEFAULT_FACTOR
|
||||||
return result
|
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
|
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 = self:getAttrValue(attrType, true)
|
||||||
result = result + self:getAttrValue(GConst.MATCH_ATTACK_ADD_NAME)
|
result = result + self:getAttrValue(GConst.MATCH_ALL_HURTP_NAME, true)
|
||||||
return result
|
return result
|
||||||
else
|
else
|
||||||
local all = self:getAllAttr()
|
local all = self:getAllAttr()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user