bug修改

dev_chengFeng
wangzhenxing 2021-10-15 18:39:46 +08:00
parent d1796fdab6
commit 08f87f8623
3 changed files with 17 additions and 4 deletions

View File

@ -183,7 +183,9 @@ local oldScore
function WorldArenaMainPanel:OnOpen(msg)
-- 参数保存
-- NetManager.CrossYuXuLunDaoGetInfoRequest(function(msg)
local isReset=false
if msg.isFirst then
isReset=true
FormationManager.RefreshFormationData(this.CheckTeamDamage)
end
local currRankId=msg.newLevelId
@ -218,7 +220,7 @@ function WorldArenaMainPanel:OnOpen(msg)
LogError("有升级奖励")
WorldArenaManager.AddReward(msg.updrop)
end
this.CheckIsRankChange(msg.updrop)
this.CheckIsRankChange(isReset)
-- end)
end

View File

@ -102,7 +102,7 @@ end
--根据积分获取段位图标id
function this.GetRankImgByScore(num)
for k, v in ConfigPairs(rankConfig) do
if v.ScoreLow<num and v.ScoreUp>=num then
if num>=v.ScoreLow and num<=v.ScoreUp then
return v.RankGrade+1,v
end
end

View File

@ -188,9 +188,15 @@ function this.StartProgressChange(func)
end
local function _TimeUpdate()
local changeNum=1
--降低
if lastScore<currScore then
lastScore=lastScore+1
if currScore-maxScore>10 then
changeNum=8
else
changeNum=1
end
lastScore=lastScore+changeNum
--经验条走到头
if lastScore==maxScore+1 then
walkNum=walkNum+1
@ -203,7 +209,12 @@ function this.StartProgressChange(func)
end
end
else
lastScore=lastScore-1
if lastScore-minScore>10 then
changeNum=8
else
changeNum=1
end
lastScore=lastScore-changeNum
if lastScore==minScore-1 then
walkNum=walkNum+1
if RankConfig[lastRankId-1] then