行标签调整,垃圾行不区分类型
This commit is contained in:
@@ -41,7 +41,7 @@ return{
|
|||||||
for _,P in next,PLAYERS.alive do
|
for _,P in next,PLAYERS.alive do
|
||||||
local t=P.showTime*3
|
local t=P.showTime*3
|
||||||
for y=1,FIELD.h do
|
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)
|
P.visTime[y]=freeRow.get(t)
|
||||||
for x=1,10 do P.field[y][x]=FIELD[y][x]end
|
for x=1,10 do P.field[y][x]=FIELD[y][x]end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ function freeRow.reset(num)
|
|||||||
end
|
end
|
||||||
_=num
|
_=num
|
||||||
end
|
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
|
if _==0 then
|
||||||
for i=1,10 do
|
for i=1,10 do
|
||||||
L[i]={0,0,0,0,0,0,0,0,0,0}
|
L[i]={0,0,0,0,0,0,0,0,0,0}
|
||||||
|
|||||||
@@ -1595,7 +1595,7 @@ function player.garbageRise(P,color,amount,pos)
|
|||||||
local _
|
local _
|
||||||
local t=P.showTime*2
|
local t=P.showTime*2
|
||||||
for _=1,amount do
|
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))
|
ins(P.visTime,1,freeRow.get(t))
|
||||||
P.field[1][pos]=0
|
P.field[1][pos]=0
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user