开启修行等级限制
parent
a89d168e50
commit
ee557e993a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue