Ti randomizer no longer draws Z as first piece
parent
83de216408
commit
7250bee619
|
@ -28,11 +28,8 @@ end
|
|||
function History6Rolls35PoolRandomizer:generatePiece()
|
||||
local index, x
|
||||
if self.first then
|
||||
local prevent = {"S", "Z", "O"}
|
||||
repeat
|
||||
index = math.random(#self.pool)
|
||||
x = self.pool[index]
|
||||
until not inHistory(x, prevent)
|
||||
index = math.random(20)
|
||||
x = self.pool[index]
|
||||
self.first = false
|
||||
else
|
||||
for i = 1, 6 do
|
||||
|
|
Loading…
Reference in New Issue