段位变化展示修改提交
parent
c30f236943
commit
61dddc3c02
|
@ -76,7 +76,7 @@ function WorldArenaUpRewardPanel:OnOpen(data)
|
||||||
this.scoreTxt.text=lastScore.."/"..rankData.ScoreUp
|
this.scoreTxt.text=lastScore.."/"..rankData.ScoreUp
|
||||||
this.progress.fillAmount=(lastScore-minScore)/(maxScore-minScore)
|
this.progress.fillAmount=(lastScore-minScore)/(maxScore-minScore)
|
||||||
--currRank=rankData.RankGrade
|
--currRank=rankData.RankGrade
|
||||||
this.SetStarShow(rankData.RankLevel,rankData.RankGrade,self.sortingOrder)
|
this.SetStarShow(rankData.RankLevel,rankData.RankGrade+1,self.sortingOrder)
|
||||||
this.StartProgressChange(function()
|
this.StartProgressChange(function()
|
||||||
local callList2 = Stack.New()
|
local callList2 = Stack.New()
|
||||||
local itemRandomDataList={}
|
local itemRandomDataList={}
|
||||||
|
@ -192,14 +192,14 @@ function this.StartProgressChange(func)
|
||||||
|
|
||||||
--降低
|
--降低
|
||||||
if lastScore<currScore then
|
if lastScore<currScore then
|
||||||
if maxScore-lastScore>10 and lastScore-currScore>10 then
|
if maxScore-lastScore>15 and currScore-lastScore>15 then
|
||||||
changeNum=8
|
changeNum=12
|
||||||
else
|
else
|
||||||
changeNum=1
|
changeNum=1
|
||||||
end
|
end
|
||||||
lastScore=lastScore+changeNum
|
lastScore=lastScore+changeNum
|
||||||
--经验条走到头
|
--经验条走到头
|
||||||
if lastScore==maxScore then
|
if lastScore==maxScore+1 then
|
||||||
walkNum=walkNum+1
|
walkNum=walkNum+1
|
||||||
if RankConfig[lastRankId+1] then
|
if RankConfig[lastRankId+1] then
|
||||||
lastRankId=lastRankId+1
|
lastRankId=lastRankId+1
|
||||||
|
@ -210,13 +210,13 @@ function this.StartProgressChange(func)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if lastScore-minScore>10 and lastScore-currScore>10 then
|
if lastScore-minScore>15 and lastScore-currScore>15 then
|
||||||
changeNum=8
|
changeNum=12
|
||||||
else
|
else
|
||||||
changeNum=1
|
changeNum=1
|
||||||
end
|
end
|
||||||
lastScore=lastScore-changeNum
|
lastScore=lastScore-changeNum
|
||||||
if lastScore==minScore then
|
if lastScore==minScore-1 then
|
||||||
walkNum=walkNum+1
|
walkNum=walkNum+1
|
||||||
if RankConfig[lastRankId-1] then
|
if RankConfig[lastRankId-1] then
|
||||||
lastRankId=lastRankId-1
|
lastRankId=lastRankId-1
|
||||||
|
|
Loading…
Reference in New Issue