【角色升级】修复升级错误的问题
parent
763c45ebd0
commit
58b2c30ea9
|
@ -475,7 +475,8 @@ function RoleInfoLayout:LvUpClick(isSingleLvUp)
|
|||
else
|
||||
if isUpLvMaterials then
|
||||
if isSingleLvUp then--是否是单次升级
|
||||
if not curTuPoRankUpConfig or curHeroData.lv >= curTuPoRankUpConfig.OpenLevel then
|
||||
-- 当突破等级为0 最高等级为30级
|
||||
if (not curTuPoRankUpConfig and curHeroData.lv + 1 > 30) or (curTuPoRankUpConfig and curHeroData.lv + 1 > curTuPoRankUpConfig.OpenLevel) then
|
||||
PopupTipPanel.ShowTip("无法升级")
|
||||
return
|
||||
end
|
||||
|
@ -534,7 +535,8 @@ function RoleInfoLayout:LvUpClick(isSingleLvUp)
|
|||
end
|
||||
--长按升级结束后请求协议
|
||||
function RoleInfoLayout:LongLvUpClick(oldLv)
|
||||
if not curTuPoRankUpConfig or curHeroData.lv >= curTuPoRankUpConfig.OpenLevel then
|
||||
-- 当突破等级为0 最高等级为30级
|
||||
if (not curTuPoRankUpConfig and curHeroData.lv > 30) or (curTuPoRankUpConfig and curHeroData.lv > curTuPoRankUpConfig.OpenLevel) then
|
||||
PopupTipPanel.ShowTip("无法升级")
|
||||
return
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue