修复ospin锁延刷新时机错误,调整音效

This commit is contained in:
MrZ626
2021-02-27 02:48:08 +08:00
parent c42bb942f1
commit 1e88d8ba46

View File

@@ -121,16 +121,14 @@ do
[31]={{ 0,-1},{ 0, 1},{-1, 0},{ 0,-2},{ 0, 2}},
},--T
function(P,d)
if P.type=="human"then SFX.fieldPlay("rotate",nil,P)end
if not P.gameEnv.ospin then return end
P:freshBlock("fresh")
if P.gameEnv.ospin then
local x,y=P.curX,P.curY
if y==P.ghoY and((P:solid(x-1,y)or P:solid(x-1,y+1)))and(P:solid(x+2,y)or P:solid(x+2,y+1))then
if P.sound then SFX.fieldPlay("rotatekick",nil,P)end
local D=P.spinSeq%100*10+d
P.spinSeq=D
if D<100 then
P:freshBlock("fresh")
return
end
if D<100 then return end
for i=1,#OspinList do
local L=OspinList[i]
if D==L[1]then
@@ -147,14 +145,16 @@ do
P.stat.rotate=P.stat.rotate+1
P:freshBlock("move")
P.spinSeq=0
SFX.fieldPlay("rotatekick",nil,P)
return
end
end
end
else
if P.sound then SFX.fieldPlay("rotate",nil,P)end
P.spinSeq=0
P:freshBlock("fresh")
end
else
if P.sound then SFX.fieldPlay("rotate",nil,P)end
end
end,--O
{