开启修行等级限制

dev_chengFeng
yuanshuai 2021-09-10 15:08:50 +08:00
parent a89d168e50
commit ee557e993a
1 changed files with 10 additions and 19 deletions

View File

@ -123,27 +123,18 @@ function this:BindEvent()
end)
Util.AddClick(this.upStarBtn, function()
-- if this.CheckXiuxingLv() then
-- local costArr=fourQuadConfig.RankupCost
-- for i = 1, #costArr do
-- if BagManager.GetTotalItemNum(costArr[i][1])<costArr[i][2]then
-- PopupTipPanel.ShowTip("材料不足")
-- return
-- end
-- end
-- NetManager.SendSixiangUpStarRequest(this.professionId,this.UpStarUpdate)
-- else
-- PopupTipPanel.ShowTip("修行等级不满足进阶条件")
-- end
local costArr=fourQuadConfig.RankupCost
for i = 1, #costArr do
if BagManager.GetTotalItemNum(costArr[i][1])<costArr[i][2]then
PopupTipPanel.ShowTip("材料不足")
return
if this.CheckXiuxingLv() then
local costArr=fourQuadConfig.RankupCost
for i = 1, #costArr do
if BagManager.GetTotalItemNum(costArr[i][1])<costArr[i][2]then
PopupTipPanel.ShowTip("材料不足")
return
end
end
NetManager.SendSixiangUpStarRequest(this.professionId,this.UpStarUpdate)
else
PopupTipPanel.ShowTip("修行等级不满足进阶条件")
end
NetManager.SendSixiangUpStarRequest(this.professionId,this.UpStarUpdate)
end)
Util.AddClick(this.helpBtn, function()