优化显示

This commit is contained in:
xiekaidong 2023-09-18 11:40:42 +08:00
parent 1979075235
commit c9d73ceaf6

View File

@ -174,15 +174,19 @@ function BattleActPvpResultUI:refreshBountyNode()
lastExp = exp lastExp = exp
end end
local calExp = lastExp if lastLevel ~= curLevel then
for i = lastLevel, curLevel - 1 do local calExp = lastExp
local need = DataManager.ActPvpData:getBountyLevelExp(i) for i = lastLevel, curLevel - 1 do
if need > 0 then local need = DataManager.ActPvpData:getBountyLevelExp(i)
addExp = addExp + need - calExp if need > 0 then
calExp = 0 addExp = addExp + need - calExp
calExp = 0
end
end end
addExp = addExp + exp
else
addExp = exp - lastExp
end end
addExp = addExp + exp
local lastNeedExp = DataManager.ActPvpData:getBountyLevelExp(lastLevel) local lastNeedExp = DataManager.ActPvpData:getBountyLevelExp(lastLevel)
local oldSliderValue = 0 local oldSliderValue = 0