From 1d9a9a7000675682fc83d061098427b13ac2e5ca Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 29 Oct 2020 16:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E6=A0=87=E7=AD=BE=E8=B0=83=E6=95=B4?= =?UTF-8?q?=EF=BC=8C=E5=9E=83=E5=9C=BE=E8=A1=8C=E4=B8=8D=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modes/custom_clear.lua | 2 +- parts/freeRow.lua | 2 +- parts/player.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modes/custom_clear.lua b/modes/custom_clear.lua index 231cc1da..abfee28b 100644 --- a/modes/custom_clear.lua +++ b/modes/custom_clear.lua @@ -41,7 +41,7 @@ return{ for _,P in next,PLAYERS.alive do local t=P.showTime*3 for y=1,FIELD.h do - P.field[y]=freeRow.get(0,0) + P.field[y]=freeRow.get(0,true) P.visTime[y]=freeRow.get(t) for x=1,10 do P.field[y][x]=FIELD[y][x]end end diff --git a/parts/freeRow.lua b/parts/freeRow.lua index e09aea88..343aac80 100644 --- a/parts/freeRow.lua +++ b/parts/freeRow.lua @@ -13,7 +13,7 @@ function freeRow.reset(num) end _=num end -function freeRow.get(val,type)--type: nil=norm, 0=garbage, 1=bomb +function freeRow.get(val,type)--type: nil=norm, true=garbage if _==0 then for i=1,10 do L[i]={0,0,0,0,0,0,0,0,0,0} diff --git a/parts/player.lua b/parts/player.lua index dc980681..1c2155fa 100644 --- a/parts/player.lua +++ b/parts/player.lua @@ -1595,7 +1595,7 @@ function player.garbageRise(P,color,amount,pos) local _ local t=P.showTime*2 for _=1,amount do - ins(P.field,1,freeRow.get(color,0)) + ins(P.field,1,freeRow.get(color,true)) ins(P.visTime,1,freeRow.get(t)) P.field[1][pos]=0 end