mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 12:59:02 -06:00
Ti randomizer no longer draws Z as first piece
This commit is contained in:
parent
83de216408
commit
7250bee619
@ -28,11 +28,8 @@ end
|
|||||||
function History6Rolls35PoolRandomizer:generatePiece()
|
function History6Rolls35PoolRandomizer:generatePiece()
|
||||||
local index, x
|
local index, x
|
||||||
if self.first then
|
if self.first then
|
||||||
local prevent = {"S", "Z", "O"}
|
index = math.random(20)
|
||||||
repeat
|
x = self.pool[index]
|
||||||
index = math.random(#self.pool)
|
|
||||||
x = self.pool[index]
|
|
||||||
until not inHistory(x, prevent)
|
|
||||||
self.first = false
|
self.first = false
|
||||||
else
|
else
|
||||||
for i = 1, 6 do
|
for i = 1, 6 do
|
||||||
|
Loading…
Reference in New Issue
Block a user