From 956b768475de47d3b85fbe51e285e1abb536c6af Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 17 Jul 2021 02:02:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E8=B0=83=E6=95=B4ZRS=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F(=E6=96=B0=E5=A2=9E=C2=B12,0=E8=B8=A2=E5=A2=99)?= =?UTF-8?q?=EF=BC=8C=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/kickList.lua | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/parts/kickList.lua b/parts/kickList.lua index 9a4d8761..d6517850 100644 --- a/parts/kickList.lua +++ b/parts/kickList.lua @@ -442,8 +442,8 @@ end local ZRS do - local R=vecStrConv{'+0+0','-1+0','-1-1','+0-1','+1-1','-1+1','+1+0','+0+1','+1+1','+0+2','-1+2','+1+2'} - local L=vecStrConv{'+0+0','+1+0','+1-1','+0-1','-1-1','+1+1','-1+0','+0+1','-1+1','+0+2','+1+2','-1+2'} + local R=vecStrConv{'+0+0','-1+0','-1-1','+0-1','+1-1','-1+1','+1+0','+0+1','+1+1','+0+2','-1+2','+1+2','-2+0','+2+0'} + local L=vecStrConv{'+0+0','+1+0','+1-1','+0-1','-1-1','+1+1','-1+0','+0+1','-1+1','+0+2','+1+2','-1+2','+2+0','-2+0'} local F=vecStrConv{'+0+0','+0-1','+0+1','+0+2'} local list={ {[02]=L,[20]=R,[13]=R,[31]=L},--Z @@ -499,8 +499,14 @@ do end while true do for test=1,#kickList do - local x,y=ix+kickList[test][1]+dx,iy+kickList[test][2]+dy - if (dx==0 and dy==0 or kickList[test][2]<=0)and(P.freshTime>0 or kickList[test][2]+dy<=0)and not P:ifoverlap(icb,x,y)then + local kick=kickList[test] + local x,y=ix+kick[1]+dx,iy+kick[2]+dy + if + (dx==0 and dy==0 or kick[2]<=0)and + math.abs(dx+kick[2])<=2 and + (P.freshTime>0 or kick[2]+dy<=0)and + not P:ifoverlap(icb,x,y) + then if P.gameEnv.moveFX and P.gameEnv.block then P:createMoveFX() end @@ -512,7 +518,7 @@ do if not ifpre then P:freshBlock('move') end - if kickList[test][2]+dy>0 and P.freshTime==t and P.curY~=P.imgY then + if kick[2]+dy>0 and P.freshTime==t and P.curY~=P.imgY then P.freshTime=P.freshTime-1 end