模式文件中改用玩家的随机而非系统随机,便于正确回放

This commit is contained in:
MrZ_26
2020-08-09 02:02:43 +08:00
parent 10c3157ad1
commit d4cd90cfea
18 changed files with 70 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
local rnd,min=math.random,math.min
local min=math.min
local function check_c4w(P)
for i=1,#P.clearedRow do
P.field[#P.field+1]=freeRow.get(13)
@@ -33,7 +33,7 @@ return{
P.visTime[i]=freeRow.get(20)
for x=4,7 do F[i][x]=0 end
end
local r=rnd(6)
local r=P:RND(6)
if r==1 then F[1][5],F[1][4],F[2][4]=13,13,13
elseif r==2 then F[1][6],F[1][7],F[2][7]=13,13,13
elseif r==3 then F[1][4],F[2][4],F[2][5]=13,13,13