Fixed an issue with the generic bag randomizer

pull/17/head
Ishaan Bhardwaj 2021-03-09 13:00:43 -05:00
parent 9761ead48f
commit 4ab5e3747a
1 changed files with 1 additions and 0 deletions

View File

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