From 8df321b84dd89d27900545e460cd58fd113008fd Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Tue, 19 Sep 2023 14:05:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dswap=E6=A8=A1=E5=BC=8Fhold?= =?UTF-8?q?=E5=92=8C=E6=97=A0=E9=99=90hold=E7=9A=84=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 6dd0bdf9d..e2f51db48 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -1345,6 +1345,8 @@ end function Player:hold_swap(ifpre) local ENV=self.gameEnv local hid=ENV.holdCount-self.holdTime+1 + print(ENV.holdCount,self.holdTime) + print(hid) if self.nextQueue[hid] then local C,H=self.cur,self.nextQueue[hid] self.ctrlCount=0 @@ -1408,8 +1410,9 @@ function Player:hold_swap(ifpre) end self.freshTime=floor(min(self.freshTime+ENV.freshLimit*.25,ENV.freshLimit*((self.holdTime+1)/ENV.holdCount),ENV.freshLimit)) - if not ENV.infHold then - self.holdTime=self.holdTime-1 + self.holdTime=self.holdTime-1 + if ENV.infHold and self.holdTime==0 then + self.holdTime=ENV.holdCount end if self.sound then