From 4e5b16c0e29bd521277873c3d484cd3266da85a8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 14 Jul 2021 22:26:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0ZRS=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E9=94=AE=E9=A1=B6=E5=A2=99=E6=89=8D=E4=BC=9A=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=A2=9D=E5=A4=96=E5=81=8F=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/kickList.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parts/kickList.lua b/parts/kickList.lua index f8f01b01..0d268c6e 100644 --- a/parts/kickList.lua +++ b/parts/kickList.lua @@ -442,8 +442,8 @@ end local ZRS do - local R=vecStrConv{'+0+0','-1+0','+0-1','-1-1','+1-1','-1+1','+1+0','+0+1','+1+1','+0+2'} - local L=vecStrConv{'+0+0','+1+0','+0-1','+1-1','-1-1','+1+1','-1+0','+0+1','-1+1','+0+2'} + local R=vecStrConv{'+0+0','-1+0','+0-1','-1-1','+1-1','-1+1','+0+1','+1+1','+0+2'} + local L=vecStrConv{'+0+0','+1+0','+0-1','+1-1','-1-1','+1+1','+0+1','-1+1','+0+2'} local F=vecStrConv{'+0+0','+0-1','+0+1','+0+2'} local list={ {[02]=L,[20]=R,[13]=R,[31]=L},--Z @@ -491,9 +491,9 @@ do local ix,iy=P.curX+cur.sc[2]-isc[2],P.curY+cur.sc[1]-isc[1] local dx,dy=0,0 do local pressing=P.keyPressing - if pressing[1]then dx=dx-1 end - if pressing[2]then dx=dx+1 end - if pressing[7]then dy=-1 end + if pressing[1]and P:ifoverlap(icb,ix-1,iy)then dx=dx-1 end + if pressing[2]and P:ifoverlap(icb,ix+1,iy)then dx=dx+1 end + if pressing[7]and P:ifoverlap(icb,ix,iy-1)then dy=-1 end end while true do for test=1,#kickList do