神尊特权兑换上限修改

yuanshuai 2022-11-10 14:19:42 +08:00
parent 298478e182
commit a572de49a7
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ function this:BindEvent()
Util.AddClick(this.addBtn,function ()
local exNum=this.exchangeNum+1
if exNum>maxExchangeNum then
if exNum>maxExchangeNum or exNum>999 then
PopupTipPanel.ShowTip("已达上限")
return
end
@ -150,7 +150,7 @@ function this.OnUpdate()
if _isClickedAdd then
if Time.realtimeSinceStartup - this.timePressStarted > 0.4 then
local exNum=this.exchangeNum+1
if exNum>maxExchangeNum then
if exNum>maxExchangeNum or exNum>999 then
PopupTipPanel.ShowTip("已达上限")
_isClickedAdd = false
return