Now using love.math.random.
parent
f2be04f269
commit
bf2e949def
|
@ -58,7 +58,7 @@ function DTETRandomizer:generatePiece()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- pull piece from 21-bag and update drought counters
|
-- pull piece from 21-bag and update drought counters
|
||||||
local generated = bag[math.random(#bag)]
|
local generated = bag[love.math.random(#bag)]
|
||||||
self:updateDroughts(generated)
|
self:updateDroughts(generated)
|
||||||
return generated
|
return generated
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue