修复pc训练的失败判定bug
This commit is contained in:
@@ -17,14 +17,12 @@ local function task_PC(P)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
local function check(P)
|
local function check(P)
|
||||||
local r=P.field
|
local f=P.field
|
||||||
if r[1]then
|
if #f>0 then
|
||||||
r=r[#r]
|
if #f+P.stat.row%4>4 then
|
||||||
local c=0
|
P:lose()
|
||||||
for i=1,10 do if r[i]>0 then c=c+1 end end
|
end
|
||||||
if c<5 then P:lose()end
|
else
|
||||||
end
|
|
||||||
if #P.field==0 then
|
|
||||||
local type=P.stat.pc<10 and 4 or 5
|
local type=P.stat.pc<10 and 4 or 5
|
||||||
local L=PClist[type][P:RND(#PClist[1])]
|
local L=PClist[type][P:RND(#PClist[1])]
|
||||||
local symmetry=P:RND()>.5
|
local symmetry=P:RND()>.5
|
||||||
|
|||||||
@@ -20,13 +20,11 @@ local function task_PC(P)
|
|||||||
end
|
end
|
||||||
local function check(P)
|
local function check(P)
|
||||||
local r=P.field
|
local r=P.field
|
||||||
if r[1]then
|
if #r>0 then
|
||||||
r=r[#r]
|
if #r+P.stat.row%4>4 then
|
||||||
local c=0
|
P:lose()
|
||||||
for i=1,10 do if r[i]>0 then c=c+1 end end
|
end
|
||||||
if c<5 then P:lose()end
|
else
|
||||||
end
|
|
||||||
if #P.field==0 then
|
|
||||||
local type=PCtype[P.stat.pc+1]or 3
|
local type=PCtype[P.stat.pc+1]or 3
|
||||||
local L=PClist[type][P:RND(#PClist[1])]
|
local L=PClist[type][P:RND(#PClist[1])]
|
||||||
local symmetry=P:RND()>.5
|
local symmetry=P:RND()>.5
|
||||||
|
|||||||
Reference in New Issue
Block a user