bug修复

This commit is contained in:
xiekaidong 2023-09-18 10:36:23 +08:00
parent 28c21af47e
commit 4778ebc5a3
4 changed files with 11 additions and 3 deletions

View File

@ -382,7 +382,7 @@ function ActPvpManager:reqBuyBountyLevel()
costNum = cost.num, costNum = cost.num,
okFunc = function() okFunc = function()
local params = { local params = {
id = level id = DataManager.ActPvpData:getBountyLevelId(level + 1)
} }
self:sendMessage(ProtoMsgType.FromMsgEnum.ActivityPVPBountyClaimByDiamondReq, params, {}, self.rspBuyBountyLevel, BIReport.ITEM_GET_TYPE.ACT_PVP_BUY_BOUNTY_LEVEL) self:sendMessage(ProtoMsgType.FromMsgEnum.ActivityPVPBountyClaimByDiamondReq, params, {}, self.rspBuyBountyLevel, BIReport.ITEM_GET_TYPE.ACT_PVP_BUY_BOUNTY_LEVEL)
end, end,

View File

@ -259,7 +259,9 @@ function ActPvpMainUI:showTalk()
end end
self.showTalkSeq = self.root:createBindTweenSequence() self.showTalkSeq = self.root:createBindTweenSequence()
self.showTalkSeq:AppendCallback(function() self.showTalkSeq:AppendCallback(function()
local desc = self.curTaskDescList[math.random(1, #self.curTaskDescList)] local index = math.random(1, #self.curTaskDescList - 1)
local desc = table.remove(self.curTaskDescList, index)
table.insert(self.curTaskDescList, desc)
popDesc:setText(I18N:getGlobalText(I18N.GlobalConst[desc])) popDesc:setText(I18N:getGlobalText(I18N.GlobalConst[desc]))
popBg:setVisible(false) popBg:setVisible(false)
end) end)

View File

@ -276,7 +276,9 @@ function ActPvpPlayingUI:showTalk()
end end
self.showTalkSeq = self.root:createBindTweenSequence() self.showTalkSeq = self.root:createBindTweenSequence()
self.showTalkSeq:AppendCallback(function() self.showTalkSeq:AppendCallback(function()
local desc = TASK_DESC[math.random(1, #TASK_DESC)] local index = math.random(1, #TASK_DESC - 1)
local desc = table.remove(TASK_DESC, index)
table.insert(TASK_DESC, desc)
popDesc:setText(I18N:getGlobalText(I18N.GlobalConst[desc])) popDesc:setText(I18N:getGlobalText(I18N.GlobalConst[desc]))
popBg:setVisible(false) popBg:setVisible(false)
end) end)

View File

@ -616,6 +616,10 @@ function ActPvpData:getBountyLevelEnough(level)
return self.level + self.minBountyBaseLv >= level return self.level + self.minBountyBaseLv >= level
end end
function ActPvpData:getBountyLevelId(level)
return level + self.minBountyBaseLv
end
function ActPvpData:getProActId() function ActPvpData:getProActId()
return PRO_ACT_ID return PRO_ACT_ID
end end