use normal spin table for x-spin (#1008)

This commit is contained in:
Imple Lee
2023-10-09 19:18:47 +08:00
committed by GitHub
parent b58f266561
commit bb8a436604

View File

@@ -328,23 +328,20 @@ do
[13]={'+0+0','+0+1','-1+0'}, [13]={'+0+0','+0+1','-1+0'},
[31]={'+0+0','+0-1','+1+0'}, [31]={'+0+0','+0-1','+1+0'},
},-- W },-- W
function(P,d) {
if P.type=='human' then [01]=XspinList[1],
SFX.play('rotate',nil,P:getCenterX()*.15) [12]=XspinList[1],
end [23]=XspinList[1],
local kickData=XspinList[d] [30]=XspinList[1],
for test=1,#kickData do [02]=XspinList[2],
local x,y=P.curX+kickData[test][1],P.curY+kickData[test][2] [13]=XspinList[2],
if not P:ifoverlap(P.cur.bk,x,y) then [20]=XspinList[2],
P.curX,P.curY=x,y [31]=XspinList[2],
P.spinLast=1 [03]=XspinList[3],
P:freshBlock('move') [10]=XspinList[3],
P.stat.rotate=P.stat.rotate+1 [21]=XspinList[3],
return [32]=XspinList[3],
end },-- X
end
P:freshBlock('fresh')
end,-- X
{ {
[01]={'+0+0','-1+0','-1+1','+0-3','-1+1','-1+2','+0+1'}, [01]={'+0+0','-1+0','-1+1','+0-3','-1+1','-1+2','+0+1'},
[10]={'+0+0','-1+0','+1-1','+0+3','+1-1','+1-2','+0+1'}, [10]={'+0+0','-1+0','+1-1','+0+3','+1-1','+1-2','+0+1'},