修改小程序trp的next生成

This commit is contained in:
MrZ626
2021-11-30 22:31:22 +08:00
parent 9b752d540e
commit 4ccee0f1de

View File

@@ -45,24 +45,27 @@ local tileTexts=setmetatable({
local player={x=340,y=90}
function player:newTile()
if rnd()<.026 then
local r=rnd()
if r<.006 then
return self.maxTile
elseif r<.026 then
return -2
else
local r=1
local t=1
if rnd()<.3 then
r=r+1
if rnd()<.3 then r=r+1 end
t=t+1
if rnd()<.3 then t=t+1 end
end
if self.maxTile>=4 and rnd()<.3 then
r=r+1
t=t+1
if self.maxTile>=6 and rnd()<.3 then
r=r+1
t=t+1
if self.maxTile>=8 and rnd()<.3 then
r=r+1
t=t+1
end
end
end
return r
return t
end
end