From 25fe724bf83cdba857e86b108eb722f1a0505f08 Mon Sep 17 00:00:00 2001 From: MrZ_26 Date: Mon, 3 Aug 2020 16:37:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/ai.lua | 2 +- parts/tick.lua | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/parts/ai.lua b/parts/ai.lua index f148746c..491d839c 100644 --- a/parts/ai.lua +++ b/parts/ai.lua @@ -207,7 +207,7 @@ return{ Tfield[i][j]=field_org[i][j] end end - + for ifhold=0,P.gameEnv.hold and 1 or 0 do --Get block id local bn diff --git a/parts/tick.lua b/parts/tick.lua index 6bc76470..55a1efef 100644 --- a/parts/tick.lua +++ b/parts/tick.lua @@ -3,9 +3,10 @@ local Tick={} function Tick.finish(P) P.endCounter=P.endCounter+1 if P.endCounter<40 then + --Make field visible for j=1,#P.field do for i=1,10 do if P.visTime[j][i]<20 then P.visTime[j][i]=P.visTime[j][i]+.5 end - end end--Make field visible + end end elseif P.endCounter==60 then return true end @@ -13,9 +14,10 @@ end function Tick.lose(P) P.endCounter=P.endCounter+1 if P.endCounter<40 then + --Make field visible for j=1,#P.field do for i=1,10 do if P.visTime[j][i]<20 then P.visTime[j][i]=P.visTime[j][i]+.5 end - end end--Make field visible + end end elseif P.endCounter>80 then for i=1,#P.field do for j=1,10 do @@ -53,7 +55,7 @@ function Tick.throwBadge(data)--{ifAI,Sender,timer} else x2,y2=R.x+66*R.size,R.y+344*R.size end - + --Generate badge object FX_badge[#FX_badge+1]={x1,y1,x2,y2,t=0}