行标签调整,垃圾行不区分类型

This commit is contained in:
MrZ626
2020-10-29 16:01:24 +08:00
parent 37d4310863
commit 1d9a9a7000
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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}

View File

@@ -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