段位变化展示修改提交

dev_chengFeng
wangzhenxing 2021-10-16 15:27:03 +08:00
parent c30f236943
commit 61dddc3c02
1 changed files with 7 additions and 7 deletions

View File

@ -76,7 +76,7 @@ function WorldArenaUpRewardPanel:OnOpen(data)
this.scoreTxt.text=lastScore.."/"..rankData.ScoreUp
this.progress.fillAmount=(lastScore-minScore)/(maxScore-minScore)
--currRank=rankData.RankGrade
this.SetStarShow(rankData.RankLevel,rankData.RankGrade,self.sortingOrder)
this.SetStarShow(rankData.RankLevel,rankData.RankGrade+1,self.sortingOrder)
this.StartProgressChange(function()
local callList2 = Stack.New()
local itemRandomDataList={}
@ -192,14 +192,14 @@ function this.StartProgressChange(func)
--降低
if lastScore<currScore then
if maxScore-lastScore>10 and lastScore-currScore>10 then
changeNum=8
if maxScore-lastScore>15 and currScore-lastScore>15 then
changeNum=12
else
changeNum=1
end
lastScore=lastScore+changeNum
--经验条走到头
if lastScore==maxScore then
if lastScore==maxScore+1 then
walkNum=walkNum+1
if RankConfig[lastRankId+1] then
lastRankId=lastRankId+1
@ -210,13 +210,13 @@ function this.StartProgressChange(func)
end
end
else
if lastScore-minScore>10 and lastScore-currScore>10 then
changeNum=8
if lastScore-minScore>15 and lastScore-currScore>15 then
changeNum=12
else
changeNum=1
end
lastScore=lastScore-changeNum
if lastScore==minScore then
if lastScore==minScore-1 then
walkNum=walkNum+1
if RankConfig[lastRankId-1] then
lastRankId=lastRankId-1