Skip to content

Commit

Permalink
use normal spin table for x-spin (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpleLee authored Oct 9, 2023
1 parent b58f266 commit bb8a436
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions parts/RSlist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -328,23 +328,20 @@ do
[13]={'+0+0','+0+1','-1+0'},
[31]={'+0+0','+0-1','+1+0'},
},-- W
function(P,d)
if P.type=='human' then
SFX.play('rotate',nil,P:getCenterX()*.15)
end
local kickData=XspinList[d]
for test=1,#kickData do
local x,y=P.curX+kickData[test][1],P.curY+kickData[test][2]
if not P:ifoverlap(P.cur.bk,x,y) then
P.curX,P.curY=x,y
P.spinLast=1
P:freshBlock('move')
P.stat.rotate=P.stat.rotate+1
return
end
end
P:freshBlock('fresh')
end,-- X
{
[01]=XspinList[1],
[12]=XspinList[1],
[23]=XspinList[1],
[30]=XspinList[1],
[02]=XspinList[2],
[13]=XspinList[2],
[20]=XspinList[2],
[31]=XspinList[2],
[03]=XspinList[3],
[10]=XspinList[3],
[21]=XspinList[3],
[32]=XspinList[3],
},-- X
{
[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'},
Expand Down

0 comments on commit bb8a436

Please sign in to comment.