From 345223c1597ffd6c85779d52ce4f0e3cae3c7393 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 9 Jul 2021 23:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DIRS=E7=94=9F=E6=95=88?= =?UTF-8?q?=E5=90=8E=E4=B8=8D=E4=BC=9A=E8=87=AA=E5=8A=A8=E6=9D=BE=E5=BC=80?= =?UTF-8?q?=E6=97=8B=E8=BD=AC=E9=94=AE=20close=20#114?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 19bd64c1..6f90213d 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -543,9 +543,9 @@ function Player:resetBlock()--Reset Block's position and execute I*S self.curY=y self.minY=y+self.cur.sc[1] - local _=self.keyPressing + local pressing=self.keyPressing --IMS - if self.gameEnv.ims and(_[1]and self.movDir==-1 or _[2]and self.movDir==1)and self.moving>=self.gameEnv.das then + if self.gameEnv.ims and(pressing[1]and self.movDir==-1 or pressing[2]and self.movDir==1)and self.moving>=self.gameEnv.das then local x=self.curX+self.movDir if not self:ifoverlap(B,x,y)then self.curX=x @@ -554,19 +554,18 @@ function Player:resetBlock()--Reset Block's position and execute I*S --IRS if self.gameEnv.irs then - if _[5]then + if pressing[5]then self:spin(2,true) - else - if _[3]then - if _[4]then - self:spin(2,true) - else - self:spin(1,true) - end - elseif _[4]then - self:spin(3,true) + elseif pressing[3]then + if pressing[4]then + self:spin(2,true) + else + self:spin(1,true) end + elseif pressing[4]then + self:spin(3,true) end + pressing[3],pressing[4],pressing[5]=false,false,false end --DAS cut