段位变化展示修改提交
parent
c30f236943
commit
61dddc3c02
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue