Fixed an issue with the generic bag randomizer

This commit is contained in:
Ishaan Bhardwaj 2021-03-09 13:00:43 -05:00
parent 9761ead48f
commit 4ab5e3747a

View File

@ -4,6 +4,7 @@ local BagRandomizer = Randomizer:extend()
function BagRandomizer:new(pieces) function BagRandomizer:new(pieces)
self.bag = {} self.bag = {}
self.possible_pieces = pieces
self.pieces = pieces self.pieces = pieces
for i = 1, self.pieces do for i = 1, self.pieces do
table.insert(self.bag, i) table.insert(self.bag, i)