修复swap模式hold和无限hold的冲突

This commit is contained in:
MrZ_26
2023-09-19 14:05:28 +08:00
parent 6a4dfb47bb
commit 8df321b84d

View File

@@ -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