开启修行等级限制
parent
a89d168e50
commit
ee557e993a
|
@ -123,27 +123,18 @@ function this:BindEvent()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Util.AddClick(this.upStarBtn, function()
|
Util.AddClick(this.upStarBtn, function()
|
||||||
-- if this.CheckXiuxingLv() then
|
if this.CheckXiuxingLv() then
|
||||||
-- local costArr=fourQuadConfig.RankupCost
|
local costArr=fourQuadConfig.RankupCost
|
||||||
-- for i = 1, #costArr do
|
for i = 1, #costArr do
|
||||||
-- if BagManager.GetTotalItemNum(costArr[i][1])<costArr[i][2]then
|
if BagManager.GetTotalItemNum(costArr[i][1])<costArr[i][2]then
|
||||||
-- PopupTipPanel.ShowTip("材料不足")
|
PopupTipPanel.ShowTip("材料不足")
|
||||||
-- return
|
return
|
||||||
-- end
|
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
|
|
||||||
end
|
end
|
||||||
|
NetManager.SendSixiangUpStarRequest(this.professionId,this.UpStarUpdate)
|
||||||
|
else
|
||||||
|
PopupTipPanel.ShowTip("修行等级不满足进阶条件")
|
||||||
end
|
end
|
||||||
NetManager.SendSixiangUpStarRequest(this.professionId,this.UpStarUpdate)
|
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Util.AddClick(this.helpBtn, function()
|
Util.AddClick(this.helpBtn, function()
|
||||||
|
|
Loading…
Reference in New Issue