From d3194dba53fe2ddab79df356db979995d53a46e7 Mon Sep 17 00:00:00 2001 From: yuanshuai <243578945@qq.com> Date: Thu, 3 Nov 2022 17:47:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=80=E5=A4=A7=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E4=B8=8A=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua b/Assets/ManagedResources/~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua index 868d191aff..33afee5cdb 100644 --- a/Assets/ManagedResources/~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/NewShenZun/NewShenZunExpExchangePopup.lua @@ -44,6 +44,9 @@ function this:BindEvent() local maxCostNum=maxExchangeNum*onecostnum local costNum=maxCostNum>haveNum and haveNum or maxCostNum this.exchangeNum=math.floor(costNum/onecostnum) + if this.exchangeNum>999 then + this.exchangeNum=999 + end this.changeNumText.text=this.exchangeNum this.costNum.text=this.exchangeNum*onecostnum end)