加入deepDrop功能

This commit is contained in:
MrZ626
2021-02-27 02:57:13 +08:00
parent 1e92029b3c
commit 27df62c80b
2 changed files with 11 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ return{
bone=false,
nextCount=6,nextStartPos=1,
holdCount=1,infHold=false,
ospin=true,
ospin=true,deepDrop=false,
RS="TRS",
sequence="bag",
freshMethod=NULL,

View File

@@ -1877,6 +1877,16 @@ function Player.act_softDrop(P)
P.curY=P.curY-1
P:freshBlock("fresh")
P.spinLast=false
elseif P.gameEnv.deepDrop then
local y=P.curY-1
while P:ifoverlap(P.cur.bk,P.curX,y)and y>0 do
y=y-1
end
if y>0 then
P.curY=y
P:freshBlock("move")
SFX.play("swipe")
end
end
end
end