【角色升级】添加突破最大等级判断

dev_chengFeng
gaoxin 2021-07-10 17:29:31 +08:00
parent 5dd8dded1d
commit 96475f3085
1 changed files with 8 additions and 0 deletions

View File

@ -472,6 +472,10 @@ function RoleInfoLayout:LvUpClick(isSingleLvUp)
else
if isUpLvMaterials then
if isSingleLvUp then--是否是单次升级
if not curTuPoRankUpConfig or curHeroData.lv >= curTuPoRankUpConfig.OpenLevel then
PopupTipPanel.ShowTip("无法升级")
return
end
NetManager.HeroLvUpEvent(curHeroData.dynamicId,curHeroData.lv + 1,curHeroData.lv,function (msg)
this:DeleteLvUpMaterials(isSingleLvUp,msg)
end)
@ -527,6 +531,10 @@ function RoleInfoLayout:LvUpClick(isSingleLvUp)
end
--长按升级结束后请求协议
function RoleInfoLayout:LongLvUpClick(oldLv)
if not curTuPoRankUpConfig or curHeroData.lv >= curTuPoRankUpConfig.OpenLevel then
PopupTipPanel.ShowTip("无法升级")
return
end
NetManager.HeroLvUpEvent(curHeroData.dynamicId,curHeroData.lv,oldLv,function (msg)
this:DeleteLvUpMaterials2(msg)
end)