添加防止死亡延时 close #459

This commit is contained in:
MrZ626
2021-11-16 11:18:32 +08:00
parent d85d92fb43
commit 26682509f7
12 changed files with 22 additions and 2 deletions

View File

@@ -1256,6 +1256,7 @@ do
piece.curX,piece.curY,piece.dir=self.curX,self.curY,C.dir
piece.centX,piece.centY=self.curX+sc[2],self.curY+sc[1]
piece.frame,piece.autoLock=self.frameRun,autoLock
self.waiting=ENV.wait
--Tri-corner spin check
@@ -1642,6 +1643,14 @@ do
end
end
--Prevent sudden death if hang>0
if ENV.hang>ENV.wait and self.nextQueue[1]then
local B=self.nextQueue[1]
if self:ifoverlap(B.bk,int(6-#B.bk[1]*.5),int(ENV.fieldH+1-modf(B.RS.centerPos[B.id][B.dir][1]))+ceil(self.fieldBeneath/30))then
self.waiting=self.waiting+ENV.hang
end
end
--Check bot things
if self.bot then
self.bot:checkDest()